From e0e15ba3358ea6ccb182064d63ace86246605336 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 23 Dec 2024 05:12:52 +0000 Subject: [PATCH 1/3] [Automation] External Change --- eng/versioning/version_client.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index f242c0b59acf..72f3e6baa53a 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -316,7 +316,7 @@ com.azure.resourcemanager:azure-resourcemanager-kubernetesconfiguration;1.1.0;1. com.azure.resourcemanager:azure-resourcemanager-changeanalysis;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-resourcegraph;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-delegatednetwork;1.0.0-beta.3;1.0.0-beta.4 -com.azure.resourcemanager:azure-resourcemanager-synapse;1.0.0-beta.8;1.0.0-beta.9 +com.azure.resourcemanager:azure-resourcemanager-synapse;1.0.0-beta.8;1.0.0 com.azure.resourcemanager:azure-resourcemanager-resourcehealth;1.0.0;1.1.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-databricks;1.0.0-beta.5;1.0.0-beta.6 com.azure.resourcemanager:azure-resourcemanager-databoxedge;1.0.0-beta.3;1.0.0-beta.4 From 868e02c59246b124fa757765bcc83f79bb0798e0 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 23 Dec 2024 05:13:00 +0000 Subject: [PATCH 2/3] [Automation] Generate Fluent Lite from Swagger synapse#package-2021-03 --- .../CHANGELOG.md | 521 ++- .../azure-resourcemanager-synapse/README.md | 4 +- .../azure-resourcemanager-synapse/SAMPLE.md | 2332 ++---------- .../azure-resourcemanager-synapse/pom.xml | 5 +- .../synapse/SynapseManager.java | 600 +-- .../AzureADOnlyAuthenticationsClient.java | 166 - .../synapse/fluent/BigDataPoolsClient.java | 21 +- .../synapse/fluent/GetsClient.java | 130 - .../synapse/fluent/IpFirewallRulesClient.java | 19 +- .../synapse/fluent/KustoOperationsClient.java | 38 - ...lAttachedDatabaseConfigurationsClient.java | 224 -- .../fluent/KustoPoolChildResourcesClient.java | 50 - .../KustoPoolDataConnectionsClient.java | 418 --- ...oolDatabasePrincipalAssignmentsClient.java | 273 -- .../fluent/KustoPoolDatabasesClient.java | 284 -- .../KustoPoolPrincipalAssignmentsClient.java | 256 -- ...lPrivateLinkResourcesOperationsClient.java | 50 - .../synapse/fluent/KustoPoolsClient.java | 742 ---- ...pointConnectionsPrivateLinkHubsClient.java | 32 - ...t.java => PrivateLinkResourcesClient.java} | 4 +- .../fluent/SparkConfigurationsClient.java | 50 - .../SparkConfigurationsOperationsClient.java | 48 - .../SqlPoolMetadataSyncConfigsClient.java | 8 - .../fluent/SqlPoolOperationResultsClient.java | 51 +- .../synapse/fluent/SqlPoolsClient.java | 101 +- .../fluent/SynapseManagementClient.java | 272 +- ...rDedicatedSqlMinimalTlsSettingsClient.java | 170 - .../synapse/fluent/WorkspacesClient.java | 17 +- .../AttachedDatabaseConfigurationInner.java | 305 -- ...tachedDatabaseConfigurationProperties.java | 250 -- .../AzureADOnlyAuthenticationInner.java | 182 - .../AzureADOnlyAuthenticationProperties.java | 132 - .../fluent/models/AzureResourceSkuInner.java | 157 - .../models/BigDataPoolResourceInfoInner.java | 42 +- .../models/BigDataPoolResourceProperties.java | 52 +- .../fluent/models/CheckNameResultInner.java | 180 - .../ClusterPrincipalAssignmentInner.java | 289 -- .../models/ClusterPrincipalProperties.java | 267 -- .../fluent/models/DataConnectionInner.java | 223 -- .../models/DataConnectionValidationInner.java | 125 - ...taConnectionValidationListResultInner.java | 102 - .../synapse/fluent/models/DatabaseInner.java | 220 -- .../DatabasePrincipalAssignmentInner.java | 289 -- .../models/DatabasePrincipalProperties.java | 268 -- .../DedicatedSQLminimalTlsSettingsInner.java | 178 - ...icatedSQLminimalTlsSettingsProperties.java | 95 - .../models/EventGridConnectionProperties.java | 341 -- .../models/EventHubConnectionProperties.java | 335 -- ...ExtendedServerBlobAuditingPolicyInner.java | 49 - ...dedServerBlobAuditingPolicyProperties.java | 69 - .../FollowerDatabaseDefinitionInner.java | 156 - ...ionRuntimeEnableinteractivequeryInner.java | 181 - ...ntegrationRuntimeOperationStatusInner.java | 181 - ...rationRuntimeStopOperationStatusInner.java | 181 - .../models/IotHubConnectionProperties.java | 308 -- .../synapse/fluent/models/KustoPoolInner.java | 384 -- .../models/KustoPoolListResultInner.java | 98 - .../KustoPoolPrivateLinkResourcesInner.java | 194 - .../fluent/models/KustoPoolProperties.java | 284 -- .../fluent/models/LanguageExtensionInner.java | 96 - ...RuntimeManagedVirtualNetworkReference.java | 153 - .../synapse/fluent/models/OperationInner.java | 181 - .../PrivateLinkResourcesProperties.java | 135 - .../ReadOnlyFollowingDatabaseProperties.java | 205 - .../models/ReadWriteDatabaseProperties.java | 181 - ...ntegrationRuntimeStatusTypeProperties.java | 92 - .../models/ServerBlobAuditingPolicyInner.java | 49 - .../ServerBlobAuditingPolicyProperties.java | 69 - .../fluent/models/SkuDescriptionInner.java | 170 - .../fluent/models/SparkConfigurationInfo.java | 282 -- .../SparkConfigurationResourceInner.java | 328 -- .../synapse/fluent/models/SqlPoolInner.java | 47 +- .../models/SqlPoolResourceProperties.java | 57 +- .../synapse/fluent/models/WorkspaceInner.java | 97 +- .../fluent/models/WorkspaceProperties.java | 131 +- .../AttachedDatabaseConfigurationImpl.java | 211 -- .../AzureADOnlyAuthenticationImpl.java | 111 - .../AzureADOnlyAuthenticationsClientImpl.java | 770 ---- .../AzureADOnlyAuthenticationsImpl.java | 123 - .../implementation/AzureResourceSkuImpl.java | 42 - .../BigDataPoolResourceInfoImpl.java | 19 +- .../BigDataPoolsClientImpl.java | 101 +- .../implementation/BigDataPoolsImpl.java | 25 +- .../implementation/CheckNameResultImpl.java | 45 - .../ClusterPrincipalAssignmentImpl.java | 185 - .../implementation/DataConnectionImpl.java | 54 - .../DataConnectionValidationImpl.java | 43 - ...ataConnectionValidationListResultImpl.java | 40 - .../DataMaskingPoliciesClientImpl.java | 20 +- .../DataMaskingRulesClientImpl.java | 34 +- .../synapse/implementation/DatabaseImpl.java | 53 - .../DatabasePrincipalAssignmentImpl.java | 191 - .../DedicatedSQLminimalTlsSettingsImpl.java | 48 - .../ExtendedServerBlobAuditingPolicyImpl.java | 9 - ...SqlPoolBlobAuditingPoliciesClientImpl.java | 28 +- .../FollowerDatabaseDefinitionImpl.java | 40 - .../implementation/GetsClientImpl.java | 598 --- .../synapse/implementation/GetsImpl.java | 115 - ...onRuntimeAuthKeysOperationsClientImpl.java | 24 +- ...ationRuntimeConnectionInfosClientImpl.java | 11 +- ...tegrationRuntimeCredentialsClientImpl.java | 11 +- ...tionRuntimeEnableinteractivequeryImpl.java | 45 - ...ationRuntimeMonitoringDatasClientImpl.java | 11 +- ...timeNodeIpAddressOperationsClientImpl.java | 11 +- .../IntegrationRuntimeNodesClientImpl.java | 32 +- ...ationRuntimeObjectMetadatasClientImpl.java | 21 +- ...IntegrationRuntimeOperationStatusImpl.java | 45 - ...tionRuntimeStatusOperationsClientImpl.java | 11 +- ...grationRuntimeStopOperationStatusImpl.java | 45 - .../IntegrationRuntimesClientImpl.java | 112 +- .../IpFirewallRulesClientImpl.java | 98 +- .../implementation/IpFirewallRulesImpl.java | 23 +- .../implementation/KeysClientImpl.java | 38 +- .../KustoOperationsClientImpl.java | 231 -- .../implementation/KustoOperationsImpl.java | 45 - ...achedDatabaseConfigurationsClientImpl.java | 976 ----- ...oolAttachedDatabaseConfigurationsImpl.java | 196 - .../KustoPoolChildResourcesClientImpl.java | 226 -- .../KustoPoolChildResourcesImpl.java | 60 - .../KustoPoolDataConnectionsClientImpl.java | 1817 --------- .../KustoPoolDataConnectionsImpl.java | 186 - ...atabasePrincipalAssignmentsClientImpl.java | 1222 ------ ...oPoolDatabasePrincipalAssignmentsImpl.java | 243 -- .../KustoPoolDatabasesClientImpl.java | 1210 ------ .../KustoPoolDatabasesImpl.java | 125 - .../synapse/implementation/KustoPoolImpl.java | 364 -- .../KustoPoolListResultImpl.java | 43 - ...stoPoolPrincipalAssignmentsClientImpl.java | 1132 ------ .../KustoPoolPrincipalAssignmentsImpl.java | 215 -- .../KustoPoolPrivateLinkResourcesImpl.java | 74 - ...vateLinkResourcesOperationsClientImpl.java | 236 -- ...oolPrivateLinkResourcesOperationsImpl.java | 51 - .../implementation/KustoPoolsClientImpl.java | 3316 ----------------- .../implementation/KustoPoolsImpl.java | 310 -- .../implementation/LanguageExtensionImpl.java | 33 - .../implementation/LibrariesClientImpl.java | 10 +- .../LibrariesOperationsClientImpl.java | 8 +- .../synapse/implementation/OperationImpl.java | 44 - .../implementation/OperationsClientImpl.java | 32 +- .../PrivateEndpointConnectionsClientImpl.java | 45 +- ...tConnectionsPrivateLinkHubsClientImpl.java | 162 +- ...ndpointConnectionsPrivateLinkHubsImpl.java | 25 - ...LinkHubPrivateLinkResourcesClientImpl.java | 21 +- .../PrivateLinkHubsClientImpl.java | 55 +- ...va => PrivateLinkResourcesClientImpl.java} | 41 +- ...mpl.java => PrivateLinkResourcesImpl.java} | 14 +- .../RestorableDroppedSqlPoolsClientImpl.java | 19 +- .../ServerBlobAuditingPolicyImpl.java | 9 - .../implementation/SkuDescriptionImpl.java | 70 - .../SparkConfigurationResourceImpl.java | 91 - .../SparkConfigurationsClientImpl.java | 217 -- .../SparkConfigurationsImpl.java | 59 - ...arkConfigurationsOperationsClientImpl.java | 296 -- .../SparkConfigurationsOperationsImpl.java | 50 - ...SqlPoolBlobAuditingPoliciesClientImpl.java | 28 +- .../SqlPoolColumnsClientImpl.java | 11 +- .../SqlPoolConnectionPoliciesClientImpl.java | 11 +- ...DataWarehouseUserActivitiesClientImpl.java | 11 +- .../SqlPoolGeoBackupPoliciesClientImpl.java | 30 +- .../synapse/implementation/SqlPoolImpl.java | 61 +- ...oolMaintenanceWindowOptionsClientImpl.java | 11 +- .../SqlPoolMaintenanceWindowsClientImpl.java | 20 +- .../SqlPoolMetadataSyncConfigsClientImpl.java | 36 +- .../SqlPoolOperationResultsClientImpl.java | 161 +- .../SqlPoolOperationResultsImpl.java | 28 +- .../SqlPoolOperationsClientImpl.java | 10 +- ...ecommendedSensitivityLabelsClientImpl.java | 8 +- .../SqlPoolReplicationLinksClientImpl.java | 22 +- .../SqlPoolRestorePointsClientImpl.java | 45 +- .../SqlPoolSchemasClientImpl.java | 22 +- ...qlPoolSecurityAlertPoliciesClientImpl.java | 30 +- .../SqlPoolSensitivityLabelsClientImpl.java | 85 +- .../SqlPoolTableColumnsClientImpl.java | 8 +- .../SqlPoolTablesClientImpl.java | 23 +- ...lTransparentDataEncryptionsClientImpl.java | 30 +- .../SqlPoolUsagesClientImpl.java | 10 +- ...lityAssessmentRuleBaselinesClientImpl.java | 31 +- ...ulnerabilityAssessmentScansClientImpl.java | 43 +- ...oolVulnerabilityAssessmentsClientImpl.java | 42 +- .../SqlPoolWorkloadClassifiersClientImpl.java | 45 +- .../SqlPoolWorkloadGroupsClientImpl.java | 42 +- .../implementation/SqlPoolsClientImpl.java | 361 +- .../synapse/implementation/SqlPoolsImpl.java | 58 +- .../SynapseManagementClientImpl.java | 601 +-- .../WorkspaceAadAdminsClientImpl.java | 26 +- .../synapse/implementation/WorkspaceImpl.java | 51 +- ...dIdentitySqlControlSettingsClientImpl.java | 19 +- ...lServerBlobAuditingPoliciesClientImpl.java | 28 +- ...icatedSqlMinimalTlsSettingsClientImpl.java | 770 ---- ...verDedicatedSqlMinimalTlsSettingsImpl.java | 103 - ...lServerEncryptionProtectorsClientImpl.java | 38 +- ...xtendedBlobAuditingPoliciesClientImpl.java | 28 +- ...qlServerRecoverableSqlPoolsClientImpl.java | 20 +- ...ServerSecurityAlertPoliciesClientImpl.java | 30 +- ...spaceManagedSqlServerUsagesClientImpl.java | 10 +- ...verVulnerabilityAssessmentsClientImpl.java | 42 +- .../WorkspaceSqlAadAdminsClientImpl.java | 26 +- .../implementation/WorkspacesClientImpl.java | 100 +- .../implementation/WorkspacesImpl.java | 22 +- .../synapse/models/ActualState.java | 71 - .../models/AttachedDatabaseConfiguration.java | 364 -- ...tachedDatabaseConfigurationListResult.java | 102 - .../models/AzureADOnlyAuthentication.java | 144 - .../AzureADOnlyAuthenticationListResult.java | 106 - .../models/AzureADOnlyAuthenticationName.java | 46 - .../models/AzureADOnlyAuthentications.java | 113 - .../synapse/models/AzureCapacity.java | 185 - .../synapse/models/AzureResourceSku.java | 40 - .../synapse/models/AzureScaleType.java | 56 - .../synapse/models/AzureSku.java | 161 - .../models/BigDataPoolResourceInfo.java | 53 +- .../synapse/models/BigDataPools.java | 17 +- .../synapse/models/BlobStorageEventType.java | 53 - .../synapse/models/CheckNameResult.java | 48 - .../models/ClusterPrincipalAssignment.java | 324 -- ...erPrincipalAssignmentCheckNameRequest.java | 130 - .../ClusterPrincipalAssignmentListResult.java | 102 - .../synapse/models/ClusterPrincipalRole.java | 51 - .../synapse/models/Compression.java | 51 - .../synapse/models/ConfigurationType.java | 51 - .../models/CspWorkspaceAdminProperties.java | 93 - .../models/CustomerManagedKeyDetails.java | 31 - .../synapse/models/DataConnection.java | 62 - .../DataConnectionCheckNameRequest.java | 129 - .../synapse/models/DataConnectionKind.java | 56 - .../models/DataConnectionListResult.java | 100 - .../models/DataConnectionValidation.java | 33 - .../DataConnectionValidationListResult.java | 27 - .../DataConnectionValidationResult.java | 94 - .../models/DataLakeStorageAccountDetails.java | 57 - .../synapse/models/Database.java | 62 - .../models/DatabaseCheckNameRequest.java | 133 - .../synapse/models/DatabaseListResult.java | 99 - .../models/DatabasePrincipalAssignment.java | 326 -- ...sePrincipalAssignmentCheckNameRequest.java | 132 - ...DatabasePrincipalAssignmentListResult.java | 102 - .../synapse/models/DatabasePrincipalRole.java | 71 - .../synapse/models/DatabaseStatistics.java | 93 - .../DedicatedSQLminimalTlsSettings.java | 54 - ...icatedSQLminimalTlsSettingsListResult.java | 106 - .../DedicatedSqlMinimalTlsSettingsName.java | 46 - .../DefaultPrincipalsModificationKind.java | 56 - .../synapse/models/DesiredState.java | 56 - .../models/DynamicExecutorAllocation.java | 56 - .../models/EventGridDataConnection.java | 389 -- .../synapse/models/EventGridDataFormat.java | 121 - .../models/EventHubDataConnection.java | 389 -- .../synapse/models/EventHubDataFormat.java | 121 - .../ExtendedServerBlobAuditingPolicy.java | 138 +- .../models/FollowerDatabaseDefinition.java | 42 - .../models/FollowerDatabaseListResult.java | 100 - .../resourcemanager/synapse/models/Gets.java | 119 - .../IntegrationRuntimeDataFlowProperties.java | 32 - ...egrationRuntimeEnableinteractivequery.java | 48 - .../IntegrationRuntimeOperationStatus.java | 47 - ...IntegrationRuntimeStopOperationStatus.java | 47 - .../synapse/models/IotHubDataConnection.java | 364 -- .../synapse/models/IotHubDataFormat.java | 121 - .../synapse/models/IpFirewallRules.java | 16 +- .../synapse/models/KekIdentityProperties.java | 121 - .../resourcemanager/synapse/models/Key.java | 15 +- .../resourcemanager/synapse/models/Kind.java | 51 - .../synapse/models/KustoOperations.java | 33 - .../synapse/models/KustoPool.java | 627 ---- ...stoPoolAttachedDatabaseConfigurations.java | 157 - .../models/KustoPoolCheckNameRequest.java | 127 - .../models/KustoPoolChildResources.java | 44 - .../models/KustoPoolDataConnections.java | 247 -- ...KustoPoolDatabasePrincipalAssignments.java | 197 - .../synapse/models/KustoPoolDatabases.java | 167 - .../synapse/models/KustoPoolListResult.java | 27 - .../models/KustoPoolPrincipalAssignments.java | 187 - .../models/KustoPoolPrivateLinkResources.java | 77 - ...stoPoolPrivateLinkResourcesOperations.java | 44 - .../synapse/models/KustoPoolUpdate.java | 345 -- .../synapse/models/KustoPools.java | 420 --- .../synapse/models/LanguageExtension.java | 26 - .../synapse/models/LanguageExtensionName.java | 51 - .../models/LanguageExtensionsList.java | 100 - .../models/ListResourceSkusResult.java | 100 - .../synapse/models/ManagedIdentity.java | 39 - ...rtiesGrantSqlControlToManagedIdentity.java | 18 +- ...qlControlToManagedIdentityActualState.java | 85 + ...lControlToManagedIdentityDesiredState.java | 65 + .../models/ManagedIntegrationRuntime.java | 91 - .../ManagedIntegrationRuntimeStatus.java | 36 +- .../synapse/models/Operation.java | 47 - .../synapse/models/OperationDisplay.java | 177 - .../synapse/models/OperationListResult.java | 116 - .../synapse/models/OptimizedAutoscale.java | 178 - .../synapse/models/PrincipalType.java | 56 - .../models/PrincipalsModificationKind.java | 56 - ...ateEndpointConnectionsPrivateLinkHubs.java | 30 - .../synapse/models/PrivateLinkResources.java | 125 +- .../PrivateLinkResourcesOperations.java | 75 - .../models/ReadOnlyFollowingDatabase.java | 267 -- .../synapse/models/ReadWriteDatabase.java | 263 -- .../synapse/models/Reason.java | 51 - .../synapse/models/ResourceIdentityType.java | 7 +- .../models/ResourceProvisioningState.java | 76 - .../SelfHostedIntegrationRuntimeStatus.java | 100 +- .../models/ServerBlobAuditingPolicy.java | 277 +- .../models/ServerSecurityAlertPolicy.java | 76 +- .../models/ServerVulnerabilityAssessment.java | 19 +- .../synapse/models/SkuDescription.java | 62 - .../synapse/models/SkuDescriptionList.java | 88 - .../synapse/models/SkuLocationInfoItem.java | 131 - .../synapse/models/SkuName.java | 51 - .../synapse/models/SkuSize.java | 61 - .../synapse/models/SparkConfigProperties.java | 172 - .../SparkConfigurationListResponse.java | 137 - .../models/SparkConfigurationResource.java | 99 - .../synapse/models/SparkConfigurations.java | 45 - .../models/SparkConfigurationsOperations.java | 43 - .../synapse/models/SqlPool.java | 119 +- .../models/SqlPoolBlobAuditingPolicy.java | 30 +- .../models/SqlPoolMetadataSyncConfigs.java | 8 - .../models/SqlPoolOperationResults.java | 13 +- .../synapse/models/SqlPoolPatchInfo.java | 47 +- .../models/SqlPoolSecurityAlertPolicy.java | 34 +- .../synapse/models/SqlPools.java | 32 +- .../resourcemanager/synapse/models/State.java | 86 - .../synapse/models/StateValue.java | 56 - .../synapse/models/StorageAccountType.java | 5 + .../models/TableLevelSharingProperties.java | 246 -- .../resourcemanager/synapse/models/Type.java | 57 - .../models/UserAssignedManagedIdentity.java | 100 - .../synapse/models/Workspace.java | 97 +- ...lServerDedicatedSqlMinimalTlsSettings.java | 116 - .../synapse/models/WorkspaceStatus.java | 56 - .../synapse/models/Workspaces.java | 16 +- .../proxy-config.json | 2 +- ...ureADOnlyAuthenticationsCreateSamples.java | 30 - .../AzureADOnlyAuthenticationsGetSamples.java | 29 - ...AzureADOnlyAuthenticationsListSamples.java | 25 - .../BigDataPoolsCreateOrUpdateSamples.java | 6 +- .../generated/BigDataPoolsDeleteSamples.java | 3 +- .../generated/BigDataPoolsGetSamples.java | 2 +- .../BigDataPoolsListByWorkspaceSamples.java | 5 +- .../generated/BigDataPoolsUpdateSamples.java | 3 +- ...aMaskingPoliciesCreateOrUpdateSamples.java | 4 +- .../DataMaskingPoliciesGetSamples.java | 2 +- ...DataMaskingRulesCreateOrUpdateSamples.java | 8 +- .../generated/DataMaskingRulesGetSamples.java | 2 +- .../DataMaskingRulesListBySqlPoolSamples.java | 2 +- ...AuditingPoliciesCreateOrUpdateSamples.java | 6 +- ...SqlPoolBlobAuditingPoliciesGetSamples.java | 2 +- ...bAuditingPoliciesListBySqlPoolSamples.java | 2 +- ...nRuntimeEnableInteractivequerySamples.java | 26 - .../GetIntegrationRuntimeStartSamples.java | 25 - .../GetIntegrationRuntimeStopSamples.java | 25 - ...onRuntimeAuthKeysOperationListSamples.java | 2 +- ...imeAuthKeysOperationRegenerateSamples.java | 2 +- ...ationRuntimeConnectionInfosGetSamples.java | 2 +- ...egrationRuntimeCredentialsSyncSamples.java | 2 +- ...ationRuntimeMonitoringDataListSamples.java | 2 +- ...ntimeNodeIpAddressOperationGetSamples.java | 2 +- .../IntegrationRuntimeNodesDeleteSamples.java | 2 +- .../IntegrationRuntimeNodesGetSamples.java | 5 +- .../IntegrationRuntimeNodesUpdateSamples.java | 2 +- ...ationRuntimeObjectMetadataListSamples.java | 2 +- ...onRuntimeObjectMetadataRefreshSamples.java | 2 +- ...ationRuntimeStatusOperationGetSamples.java | 5 +- .../IntegrationRuntimesCreateSamples.java | 5 +- .../IntegrationRuntimesDeleteSamples.java | 5 +- ...untimesDisableInteractiveQuerySamples.java | 2 +- ...RuntimesEnableInteractiveQuerySamples.java | 2 +- .../IntegrationRuntimesGetSamples.java | 4 +- ...grationRuntimesListByWorkspaceSamples.java | 2 +- ...ndNetworkDependenciesEndpointsSamples.java | 2 +- .../IntegrationRuntimesStartSamples.java | 5 +- .../IntegrationRuntimesStopSamples.java | 4 +- .../IntegrationRuntimesUpdateSamples.java | 5 +- .../IntegrationRuntimesUpgradeSamples.java | 5 +- .../IpFirewallRulesCreateOrUpdateSamples.java | 2 +- .../IpFirewallRulesDeleteSamples.java | 2 +- .../generated/IpFirewallRulesGetSamples.java | 6 +- ...IpFirewallRulesListByWorkspaceSamples.java | 2 +- .../IpFirewallRulesReplaceAllSamples.java | 2 +- .../generated/KeysCreateOrUpdateSamples.java | 2 +- .../synapse/generated/KeysDeleteSamples.java | 2 +- .../synapse/generated/KeysGetSamples.java | 2 +- .../generated/KeysListByWorkspaceSamples.java | 2 +- .../generated/KustoOperationsListSamples.java | 24 - ...seConfigurationsCreateOrUpdateSamples.java | 43 - ...edDatabaseConfigurationsDeleteSamples.java | 26 - ...achedDatabaseConfigurationsGetSamples.java | 26 - ...eConfigurationsListByKustoPoolSamples.java | 25 - ...dResourceCheckNameAvailabilitySamples.java | 49 - ...nnectionsCheckNameAvailabilitySamples.java | 29 - ...lDataConnectionsCreateOrUpdateSamples.java | 33 - ...ctionsDataConnectionValidationSamples.java | 30 - ...KustoPoolDataConnectionsDeleteSamples.java | 25 - .../KustoPoolDataConnectionsGetSamples.java | 25 - ...lDataConnectionsListByDatabaseSamples.java | 26 - ...KustoPoolDataConnectionsUpdateSamples.java | 31 - ...signmentsCheckNameAvailabilitySamples.java | 29 - ...cipalAssignmentsCreateOrUpdateSamples.java | 34 - ...basePrincipalAssignmentsDeleteSamples.java | 26 - ...atabasePrincipalAssignmentsGetSamples.java | 26 - ...tabasePrincipalAssignmentsListSamples.java | 26 - ...stoPoolDatabasesCreateOrUpdateSamples.java | 29 - .../KustoPoolDatabasesDeleteSamples.java | 25 - .../KustoPoolDatabasesGetSamples.java | 25 - ...toPoolDatabasesListByKustoPoolSamples.java | 25 - .../KustoPoolDatabasesUpdateSamples.java | 28 - ...signmentsCheckNameAvailabilitySamples.java | 29 - ...cipalAssignmentsCreateOrUpdateSamples.java | 34 - ...PoolPrincipalAssignmentsDeleteSamples.java | 25 - ...stoPoolPrincipalAssignmentsGetSamples.java | 25 - ...toPoolPrincipalAssignmentsListSamples.java | 24 - ...vateLinkResourcesOperationListSamples.java | 24 - ...ustoPoolsAddLanguageExtensionsSamples.java | 33 - ...ustoPoolsCheckNameAvailabilitySamples.java | 27 - .../KustoPoolsCreateOrUpdateSamples.java | 35 - .../generated/KustoPoolsDeleteSamples.java | 25 - ...toPoolsDetachFollowerDatabasesSamples.java | 30 - .../generated/KustoPoolsGetSamples.java | 25 - .../KustoPoolsListByWorkspaceSamples.java | 24 - ...ustoPoolsListFollowerDatabasesSamples.java | 25 - ...stoPoolsListLanguageExtensionsSamples.java | 25 - .../generated/KustoPoolsListSamples.java | 24 - .../KustoPoolsListSkusByResourceSamples.java | 25 - ...oPoolsRemoveLanguageExtensionsSamples.java | 33 - .../generated/KustoPoolsStartSamples.java | 24 - .../generated/KustoPoolsStopSamples.java | 24 - .../generated/KustoPoolsUpdateSamples.java | 37 - ...rariesOperationListByWorkspaceSamples.java | 5 +- .../synapse/generated/LibraryGetSamples.java | 2 +- ...perationsCheckNameAvailabilitySamples.java | 4 +- ...tionsGetAzureAsyncHeaderResultSamples.java | 2 +- ...rationsGetLocationHeaderResultSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- ...ivateEndpointConnectionsCreateSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...PrivateEndpointConnectionsListSamples.java | 2 +- ...ntConnectionsPrivateLinkHubGetSamples.java | 25 - ...tConnectionsPrivateLinkHubListSamples.java | 2 +- ...LinkHubPrivateLinkResourcesGetSamples.java | 2 +- ...inkHubPrivateLinkResourcesListSamples.java | 2 +- .../PrivateLinkHubsCreateOrUpdateSamples.java | 2 +- .../PrivateLinkHubsDeleteSamples.java | 2 +- ...vateLinkHubsGetByResourceGroupSamples.java | 2 +- ...ateLinkHubsListByResourceGroupSamples.java | 2 +- .../generated/PrivateLinkHubsListSamples.java | 2 +- .../PrivateLinkHubsUpdateSamples.java | 2 +- ...va => PrivateLinkResourcesGetSamples.java} | 8 +- ...a => PrivateLinkResourcesListSamples.java} | 8 +- .../RestorableDroppedSqlPoolsGetSamples.java | 2 +- ...DroppedSqlPoolsListByWorkspaceSamples.java | 2 +- .../SparkConfigurationGetSamples.java | 25 - ...ationsOperationListByWorkspaceSamples.java | 24 - ...AuditingPoliciesCreateOrUpdateSamples.java | 4 +- ...SqlPoolBlobAuditingPoliciesGetSamples.java | 2 +- ...bAuditingPoliciesListBySqlPoolSamples.java | 2 +- .../generated/SqlPoolColumnsGetSamples.java | 2 +- .../SqlPoolConnectionPoliciesGetSamples.java | 2 +- ...DataWarehouseUserActivitiesGetSamples.java | 2 +- ...eoBackupPoliciesCreateOrUpdateSamples.java | 2 +- .../SqlPoolGeoBackupPoliciesGetSamples.java | 2 +- .../SqlPoolGeoBackupPoliciesListSamples.java | 2 +- ...oolMaintenanceWindowOptionsGetSamples.java | 2 +- ...intenanceWindowsCreateOrUpdateSamples.java | 2 +- .../SqlPoolMaintenanceWindowsGetSamples.java | 2 +- ...lPoolMetadataSyncConfigsCreateSamples.java | 2 +- .../SqlPoolMetadataSyncConfigsGetSamples.java | 2 +- ...ResultsGetLocationHeaderResultSamples.java | 4 +- .../SqlPoolOperationsListSamples.java | 2 +- ...mmendedSensitivityLabelsUpdateSamples.java | 2 +- ...lPoolReplicationLinksGetByNameSamples.java | 2 +- .../SqlPoolReplicationLinksListSamples.java | 2 +- .../SqlPoolRestorePointsCreateSamples.java | 2 +- .../SqlPoolRestorePointsDeleteSamples.java | 2 +- .../SqlPoolRestorePointsGetSamples.java | 2 +- .../SqlPoolRestorePointsListSamples.java | 2 +- .../generated/SqlPoolSchemasGetSamples.java | 2 +- .../generated/SqlPoolSchemasListSamples.java | 2 +- ...ityAlertPoliciesCreateOrUpdateSamples.java | 7 +- ...qlPoolSecurityAlertPoliciesGetSamples.java | 2 +- ...lPoolSecurityAlertPoliciesListSamples.java | 2 +- ...SqlPoolSensitivityLabelsDeleteSamples.java | 2 +- ...ityLabelsDisableRecommendationSamples.java | 2 +- ...vityLabelsEnableRecommendationSamples.java | 2 +- .../SqlPoolSensitivityLabelsGetSamples.java | 2 +- ...olSensitivityLabelsListCurrentSamples.java | 2 +- ...nsitivityLabelsListRecommendedSamples.java | 2 +- ...SqlPoolSensitivityLabelsUpdateSamples.java | 2 +- ...oolTableColumnsListByTableNameSamples.java | 2 +- .../generated/SqlPoolTablesGetSamples.java | 2 +- .../SqlPoolTablesListBySchemaSamples.java | 2 +- ...tDataEncryptionsCreateOrUpdateSamples.java | 2 +- ...lTransparentDataEncryptionsGetSamples.java | 2 +- ...TransparentDataEncryptionsListSamples.java | 2 +- .../generated/SqlPoolUsagesListSamples.java | 2 +- ...entRuleBaselinesCreateOrUpdateSamples.java | 2 +- ...yAssessmentRuleBaselinesDeleteSamples.java | 2 +- ...lityAssessmentRuleBaselinesGetSamples.java | 2 +- ...erabilityAssessmentScansExportSamples.java | 2 +- ...ulnerabilityAssessmentScansGetSamples.java | 2 +- ...ityAssessmentScansInitiateScanSamples.java | 2 +- ...lnerabilityAssessmentScansListSamples.java | 2 +- ...ilityAssessmentsCreateOrUpdateSamples.java | 6 +- ...VulnerabilityAssessmentsDeleteSamples.java | 2 +- ...oolVulnerabilityAssessmentsGetSamples.java | 2 +- ...olVulnerabilityAssessmentsListSamples.java | 2 +- ...rkloadClassifierCreateOrUpdateSamples.java | 4 +- ...qlPoolWorkloadClassifierDeleteSamples.java | 2 +- .../SqlPoolWorkloadClassifierGetSamples.java | 2 +- .../SqlPoolWorkloadClassifierListSamples.java | 2 +- ...oolWorkloadGroupCreateOrUpdateSamples.java | 4 +- .../SqlPoolWorkloadGroupDeleteSamples.java | 2 +- .../SqlPoolWorkloadGroupGetSamples.java | 2 +- .../SqlPoolWorkloadGroupListSamples.java | 2 +- .../generated/SqlPoolsCreateSamples.java | 2 +- .../generated/SqlPoolsDeleteSamples.java | 2 +- .../synapse/generated/SqlPoolsGetSamples.java | 2 +- .../SqlPoolsListByWorkspaceSamples.java | 4 +- .../generated/SqlPoolsPauseSamples.java | 2 +- .../generated/SqlPoolsResumeSamples.java | 2 +- .../generated/SqlPoolsUpdateSamples.java | 16 +- ...rkspaceAadAdminsCreateOrUpdateSamples.java | 2 +- .../WorkspaceAadAdminsDeleteSamples.java | 2 +- .../WorkspaceAadAdminsGetSamples.java | 2 +- ...lControlSettingsCreateOrUpdateSamples.java | 7 +- ...dIdentitySqlControlSettingsGetSamples.java | 2 +- ...AuditingPoliciesCreateOrUpdateSamples.java | 4 +- ...lServerBlobAuditingPoliciesGetSamples.java | 2 +- ...uditingPoliciesListByWorkspaceSamples.java | 2 +- ...icatedSqlMinimalTlsSettingsGetSamples.java | 25 - ...catedSqlMinimalTlsSettingsListSamples.java | 25 - ...tedSqlMinimalTlsSettingsUpdateSamples.java | 30 - ...ryptionProtectorCreateOrUpdateSamples.java | 4 +- ...qlServerEncryptionProtectorGetSamples.java | 2 +- ...lServerEncryptionProtectorListSamples.java | 2 +- ...rEncryptionProtectorRevalidateSamples.java | 2 +- ...AuditingPoliciesCreateOrUpdateSamples.java | 4 +- ...xtendedBlobAuditingPoliciesGetSamples.java | 2 +- ...uditingPoliciesListByWorkspaceSamples.java | 2 +- ...qlServerRecoverableSqlPoolsGetSamples.java | 2 +- ...lServerRecoverableSqlPoolsListSamples.java | 2 +- ...urityAlertPolicyCreateOrUpdateSamples.java | 12 +- ...qlServerSecurityAlertPolicyGetSamples.java | 2 +- ...lServerSecurityAlertPolicyListSamples.java | 2 +- ...paceManagedSqlServerUsagesListSamples.java | 2 +- ...ilityAssessmentsCreateOrUpdateSamples.java | 6 +- ...VulnerabilityAssessmentsDeleteSamples.java | 2 +- ...verVulnerabilityAssessmentsGetSamples.java | 2 +- ...erVulnerabilityAssessmentsListSamples.java | 2 +- ...paceSqlAadAdminsCreateOrUpdateSamples.java | 2 +- .../WorkspaceSqlAadAdminsDeleteSamples.java | 2 +- .../WorkspaceSqlAadAdminsGetSamples.java | 2 +- .../WorkspacesCreateOrUpdateSamples.java | 17 +- .../generated/WorkspacesDeleteSamples.java | 2 +- .../WorkspacesGetByResourceGroupSamples.java | 2 +- .../WorkspacesListByResourceGroupSamples.java | 2 +- .../generated/WorkspacesListSamples.java | 2 +- .../generated/WorkspacesUpdateSamples.java | 2 +- .../generated/AadAdminPropertiesTests.java | 26 +- ...tachedDatabaseConfigurationInnerTests.java | 57 - ...dDatabaseConfigurationListResultTests.java | 95 - ...dDatabaseConfigurationPropertiesTests.java | 59 - .../generated/AutoPausePropertiesTests.java | 8 +- .../generated/AutoScalePropertiesTests.java | 16 +- .../AvailableRpOperationDisplayInfoTests.java | 26 +- .../AvailableRpOperationInnerTests.java | 160 +- .../AzureADOnlyAuthenticationInnerTests.java | 26 - ...reADOnlyAuthenticationListResultTests.java | 23 - ...reADOnlyAuthenticationPropertiesTests.java | 27 - ...eADOnlyAuthenticationsCreateMockTests.java | 42 - ...thenticationsGetWithResponseMockTests.java | 41 - ...ureADOnlyAuthenticationsListMockTests.java | 39 - .../synapse/generated/AzureCapacityTests.java | 36 - .../generated/AzureEntityResourceTests.java | 2 +- .../generated/AzureResourceSkuInnerTests.java | 50 - .../synapse/generated/AzureSkuTests.java | 33 - .../generated/BigDataPoolPatchInfoTests.java | 12 +- .../BigDataPoolResourceInfoInnerTests.java | 163 +- ...igDataPoolResourceInfoListResultTests.java | 337 +- .../BigDataPoolResourcePropertiesTests.java | 154 +- .../BigDataPoolsCreateOrUpdateMockTests.java | 108 +- .../BigDataPoolsDeleteMockTests.java | 42 +- .../BigDataPoolsGetWithResponseMockTests.java | 56 +- .../BigDataPoolsListByWorkspaceMockTests.java | 60 +- .../CheckNameAvailabilityRequestTests.java | 16 +- ...eckNameAvailabilityResponseInnerTests.java | 26 +- .../generated/CheckNameResultInnerTests.java | 36 - ...ncipalAssignmentCheckNameRequestTests.java | 26 - .../ClusterPrincipalAssignmentInnerTests.java | 37 - ...terPrincipalAssignmentListResultTests.java | 48 - .../ClusterPrincipalPropertiesTests.java | 37 - ...ateSqlPoolRestorePointDefinitionTests.java | 8 +- .../CspWorkspaceAdminPropertiesTests.java | 25 - .../DataConnectionCheckNameRequestTests.java | 25 - .../generated/DataConnectionInnerTests.java | 26 - .../DataConnectionListResultTests.java | 30 - .../DataConnectionValidationInnerTests.java | 30 - ...nectionValidationListResultInnerTests.java | 31 - .../DataConnectionValidationResultTests.java | 25 - .../DataLakeStorageAccountDetailsTests.java | 24 +- ...esCreateOrUpdateWithResponseMockTests.java | 12 +- ...skingPoliciesGetWithResponseMockTests.java | 8 +- .../DataMaskingPolicyInnerTests.java | 8 +- .../DataMaskingPolicyPropertiesTests.java | 14 +- .../generated/DataMaskingRuleInnerTests.java | 62 +- .../DataMaskingRuleListResultTests.java | 97 +- .../DataMaskingRulePropertiesTests.java | 68 +- ...esCreateOrUpdateWithResponseMockTests.java | 46 +- ...aMaskingRulesGetWithResponseMockTests.java | 24 +- ...ataMaskingRulesListBySqlPoolMockTests.java | 24 +- ...DataWarehouseUserActivitiesInnerTests.java | 2 +- ...arehouseUserActivitiesPropertiesTests.java | 2 +- .../DatabaseCheckNameRequestTests.java | 30 - .../synapse/generated/DatabaseInnerTests.java | 26 - .../generated/DatabaseListResultTests.java | 29 - ...ncipalAssignmentCheckNameRequestTests.java | 26 - ...DatabasePrincipalAssignmentInnerTests.java | 38 - ...asePrincipalAssignmentListResultTests.java | 53 - .../DatabasePrincipalPropertiesTests.java | 37 - .../generated/DatabaseStatisticsTests.java | 24 - ...icatedSQLminimalTlsSettingsInnerTests.java | 27 - ...dSQLminimalTlsSettingsListResultTests.java | 23 - ...dSQLminimalTlsSettingsPropertiesTests.java | 27 - .../DynamicExecutorAllocationTests.java | 15 +- .../generated/EntityReferenceTests.java | 14 +- .../generated/EntityResourceTests.java | 7 +- .../EnvironmentVariableSetupTests.java | 12 +- ...nmentVariableSetupTypePropertiesTests.java | 12 +- .../EventGridConnectionPropertiesTests.java | 50 - .../EventGridDataConnectionTests.java | 52 - .../EventHubConnectionPropertiesTests.java | 50 - .../EventHubDataConnectionTests.java | 53 - .../FollowerDatabaseDefinitionInnerTests.java | 29 - .../FollowerDatabaseListResultTests.java | 32 - .../generated/GeoBackupPolicyInnerTests.java | 8 +- .../GeoBackupPolicyListResultTests.java | 5 +- .../GeoBackupPolicyPropertiesTests.java | 2 +- .../GetSsisObjectMetadataRequestTests.java | 10 +- ...InteractivequeryWithResponseMockTests.java | 43 - ...tionRuntimeStartWithResponseMockTests.java | 43 - ...ationRuntimeStopWithResponseMockTests.java | 43 - ...egrationRuntimeComputePropertiesTests.java | 71 +- ...eCredentialsSyncWithResponseMockTests.java | 2 +- ...grationRuntimeDataFlowPropertiesTests.java | 23 +- ...rationRuntimeDataProxyPropertiesTests.java | 32 +- ...ntimeEnableinteractivequeryInnerTests.java | 35 - .../IntegrationRuntimeListResponseTests.java | 32 +- ...rationRuntimeMonitoringDataInnerTests.java | 25 +- ...itoringDatasListWithResponseMockTests.java | 6 +- ...grationRuntimeNodeIpAddressInnerTests.java | 4 +- ...essOperationsGetWithResponseMockTests.java | 4 +- ...grationRuntimeNodeMonitoringDataTests.java | 8 +- ...ntimeNodesDeleteWithResponseMockTests.java | 3 +- ...nRuntimeNodesGetWithResponseMockTests.java | 4 +- ...ntimeNodesUpdateWithResponseMockTests.java | 6 +- ...ectMetadatasListWithResponseMockTests.java | 14 +- ...untimeObjectMetadatasRefreshMockTests.java | 13 +- ...ationRuntimeOperationStatusInnerTests.java | 35 - ...workDependenciesCategoryEndpointTests.java | 45 +- ...tworkDependenciesEndpointDetailsTests.java | 8 +- ...boundNetworkDependenciesEndpointTests.java | 17 +- ...pendenciesEndpointsResponseInnerTests.java | 59 +- .../IntegrationRuntimeResourceInnerTests.java | 10 +- ...tusOperationsGetWithResponseMockTests.java | 4 +- ...rationRuntimeStatusResponseInnerTests.java | 4 +- .../IntegrationRuntimeStatusTests.java | 4 +- ...nRuntimeStopOperationStatusInnerTests.java | 35 - .../generated/IntegrationRuntimeTests.java | 8 +- ...IntegrationRuntimeVNetPropertiesTests.java | 26 +- .../IntegrationRuntimesCreateMockTests.java | 12 +- .../IntegrationRuntimesDeleteMockTests.java | 2 +- ...timesDisableInteractiveQueryMockTests.java | 2 +- ...ntimesEnableInteractiveQueryMockTests.java | 2 +- ...ationRuntimesGetWithResponseMockTests.java | 6 +- ...ationRuntimesListByWorkspaceMockTests.java | 6 +- ...denciesEndpointsWithResponseMockTests.java | 8 +- .../IntegrationRuntimesStartMockTests.java | 4 +- .../IntegrationRuntimesStopMockTests.java | 2 +- ...nRuntimesUpgradeWithResponseMockTests.java | 2 +- .../IotHubConnectionPropertiesTests.java | 46 - .../generated/IotHubDataConnectionTests.java | 49 - .../IpFirewallRuleInfoInnerTests.java | 13 +- .../IpFirewallRuleInfoListResultTests.java | 20 +- .../IpFirewallRulePropertiesTests.java | 15 +- ...pFirewallRulesCreateOrUpdateMockTests.java | 14 +- .../IpFirewallRulesDeleteMockTests.java | 11 +- ...FirewallRulesGetWithResponseMockTests.java | 8 +- ...FirewallRulesListByWorkspaceMockTests.java | 10 +- .../IpFirewallRulesReplaceAllMockTests.java | 14 +- .../generated/KekIdentityPropertiesTests.java | 27 - .../KustoOperationsListMockTests.java | 43 - ...ConfigurationsCreateOrUpdateMockTests.java | 65 - ...onfigurationsGetWithResponseMockTests.java | 51 - ...onfigurationsListByKustoPoolMockTests.java | 56 - .../KustoPoolCheckNameRequestTests.java | 25 - ...NameAvailabilityWithResponseMockTests.java | 48 - ...NameAvailabilityWithResponseMockTests.java | 45 - ...ataConnectionsCreateOrUpdateMockTests.java | 40 - ...ionsDataConnectionValidationMockTests.java | 43 - ...stoPoolDataConnectionsDeleteMockTests.java | 35 - ...taConnectionsGetWithResponseMockTests.java | 40 - ...ataConnectionsListByDatabaseMockTests.java | 39 - ...stoPoolDataConnectionsUpdateMockTests.java | 40 - ...NameAvailabilityWithResponseMockTests.java | 45 - ...palAssignmentsCreateOrUpdateMockTests.java | 49 - ...sePrincipalAssignmentsDeleteMockTests.java | 34 - ...alAssignmentsGetWithResponseMockTests.java | 45 - ...basePrincipalAssignmentsListMockTests.java | 44 - ...oPoolDatabasesCreateOrUpdateMockTests.java | 40 - .../KustoPoolDatabasesDeleteMockTests.java | 34 - ...PoolDatabasesGetWithResponseMockTests.java | 39 - ...PoolDatabasesListByKustoPoolMockTests.java | 39 - .../KustoPoolDatabasesUpdateMockTests.java | 40 - .../generated/KustoPoolInnerTests.java | 77 - .../KustoPoolListResultInnerTests.java | 114 - ...NameAvailabilityWithResponseMockTests.java | 45 - ...palAssignmentsCreateOrUpdateMockTests.java | 49 - ...olPrincipalAssignmentsDeleteMockTests.java | 34 - ...alAssignmentsGetWithResponseMockTests.java | 44 - ...PoolPrincipalAssignmentsListMockTests.java | 44 - ...stoPoolPrivateLinkResourcesInnerTests.java | 23 - ...eLinkResourcesOperationsListMockTests.java | 37 - .../generated/KustoPoolPropertiesTests.java | 46 - .../generated/KustoPoolUpdateTests.java | 75 - ...toPoolsAddLanguageExtensionsMockTests.java | 44 - ...NameAvailabilityWithResponseMockTests.java | 45 - .../KustoPoolsCreateOrUpdateMockTests.java | 82 - ...PoolsDetachFollowerDatabasesMockTests.java | 38 - .../KustoPoolsGetWithResponseMockTests.java | 52 - ...sListByWorkspaceWithResponseMockTests.java | 52 - ...toPoolsListFollowerDatabasesMockTests.java | 40 - ...oPoolsListLanguageExtensionsMockTests.java | 39 - .../generated/KustoPoolsListMockTests.java | 36 - ...KustoPoolsListSkusByResourceMockTests.java | 49 - ...oolsRemoveLanguageExtensionsMockTests.java | 42 - .../generated/KustoPoolsStartMockTests.java | 33 - .../generated/KustoPoolsStopMockTests.java | 33 - .../LanguageExtensionInnerTests.java | 27 - .../LanguageExtensionsListTests.java | 31 - .../LibrariesGetWithResponseMockTests.java | 12 +- ...iesOperationsListByWorkspaceMockTests.java | 12 +- .../synapse/generated/LibraryInfoTests.java | 24 +- .../generated/LibraryListResponseTests.java | 52 +- .../generated/LibraryRequirementsTests.java | 16 +- .../generated/LibraryResourceInnerTests.java | 26 +- .../LinkedIntegrationRuntimeTests.java | 2 +- .../ListResourceSkusResultTests.java | 69 - .../MaintenanceWindowOptionsInnerTests.java | 64 +- ...intenanceWindowOptionsPropertiesTests.java | 66 +- .../MaintenanceWindowTimeRangeTests.java | 18 +- .../MaintenanceWindowsInnerTests.java | 38 +- .../MaintenanceWindowsPropertiesTests.java | 30 +- ...titySqlControlSettingsModelInnerTests.java | 16 +- ...GrantSqlControlToManagedIdentityTests.java | 16 +- ...qlControlSettingsModelPropertiesTests.java | 16 +- .../generated/ManagedIdentityTests.java | 26 +- ...meManagedVirtualNetworkReferenceTests.java | 33 - .../ManagedVirtualNetworkSettingsTests.java | 14 +- .../MetadataSyncConfigInnerTests.java | 12 +- .../MetadataSyncConfigPropertiesTests.java | 8 +- .../generated/OperationDisplayTests.java | 36 - .../generated/OperationInnerTests.java | 43 - .../generated/OperationListResultTests.java | 46 - .../OperationMetaLogSpecificationTests.java | 20 +- ...MetaMetricDimensionSpecificationTests.java | 24 +- ...OperationMetaMetricSpecificationTests.java | 93 +- .../OperationMetaPropertyInfoTests.java | 179 +- ...perationMetaServiceSpecificationTests.java | 191 +- ...NameAvailabilityWithResponseMockTests.java | 10 +- ...tionHeaderResultWithResponseMockTests.java | 2 +- .../OperationsListWithResponseMockTests.java | 16 +- .../generated/OptimizedAutoscaleTests.java | 35 - ...PrivateLinkHubBasicAutoGeneratedTests.java | 18 +- ...ConnectionForPrivateLinkHubBasicTests.java | 18 +- ...ConnectionForPrivateLinkHubInnerTests.java | 30 +- ...inkHubResourceCollectionResponseTests.java | 46 +- .../PrivateEndpointConnectionInnerTests.java | 12 +- .../PrivateEndpointConnectionListTests.java | 2 +- ...vateEndpointConnectionPropertiesTests.java | 12 +- ...ateEndpointConnectionsCreateMockTests.java | 12 +- ...ntConnectionsGetWithResponseMockTests.java | 8 +- ...ivateEndpointConnectionsListMockTests.java | 8 +- ...ivateLinkHubsGetWithResponseMockTests.java | 44 - ...nnectionsPrivateLinkHubsListMockTests.java | 14 +- .../generated/PrivateEndpointTests.java | 2 +- .../PrivateLinkHubInfoListResultTests.java | 36 +- .../generated/PrivateLinkHubInnerTests.java | 20 +- .../PrivateLinkHubPatchInfoTests.java | 15 +- ...LinkResourcesGetWithResponseMockTests.java | 4 +- ...kHubPrivateLinkResourcesListMockTests.java | 4 +- .../PrivateLinkHubPropertiesTests.java | 8 +- ...bsCreateOrUpdateWithResponseMockTests.java | 18 +- .../PrivateLinkHubsDeleteMockTests.java | 2 +- ...tByResourceGroupWithResponseMockTests.java | 10 +- ...eLinkHubsListByResourceGroupMockTests.java | 10 +- .../PrivateLinkHubsListMockTests.java | 8 +- .../PrivateLinkResourceInnerTests.java | 2 +- .../PrivateLinkResourceListResultTests.java | 2 +- .../PrivateLinkResourcePropertiesTests.java | 2 +- ...inkResourcesGetWithResponseMockTests.java} | 8 +- ...=> PrivateLinkResourcesListMockTests.java} | 6 +- .../PrivateLinkResourcesPropertiesTests.java | 23 - .../generated/PrivateLinkResourcesTests.java | 26 - ...rivateLinkServiceConnectionStateTests.java | 12 +- .../generated/PurviewConfigurationTests.java | 8 +- ...dOnlyFollowingDatabasePropertiesTests.java | 28 - .../ReadOnlyFollowingDatabaseTests.java | 30 - .../ReadWriteDatabasePropertiesTests.java | 31 - .../generated/ReadWriteDatabaseTests.java | 33 - ...mendedSensitivityLabelUpdateListTests.java | 33 +- ...SensitivityLabelUpdatePropertiesTests.java | 26 +- ...ecommendedSensitivityLabelUpdateTests.java | 20 +- .../RecoverableSqlPoolInnerTests.java | 2 +- .../RecoverableSqlPoolListResultTests.java | 2 +- .../RecoverableSqlPoolPropertiesTests.java | 2 +- ...ewallRulesOperationResponseInnerTests.java | 11 +- ...ReplaceAllIpFirewallRulesRequestTests.java | 17 +- .../generated/ReplicationLinkInnerTests.java | 2 +- .../ReplicationLinkListResultTests.java | 5 +- .../ReplicationLinkPropertiesTests.java | 2 +- .../RestorableDroppedSqlPoolInnerTests.java | 2 +- ...storableDroppedSqlPoolListResultTests.java | 7 +- ...storableDroppedSqlPoolPropertiesTests.java | 2 +- ...oppedSqlPoolsGetWithResponseMockTests.java | 4 +- ...oppedSqlPoolsListByWorkspaceMockTests.java | 4 +- .../generated/RestorePointInnerTests.java | 2 +- .../RestorePointListResultTests.java | 2 +- .../RestorePointPropertiesTests.java | 2 +- .../synapse/generated/SecureStringTests.java | 10 +- ...ostedIntegrationRuntimeNodeInnerTests.java | 22 +- ...lfHostedIntegrationRuntimeStatusTests.java | 74 +- ...ationRuntimeStatusTypePropertiesTests.java | 41 +- .../generated/SensitivityLabelInnerTests.java | 26 +- .../SensitivityLabelListResultTests.java | 2 +- .../SensitivityLabelPropertiesTests.java | 32 +- .../SensitivityLabelUpdateInnerTests.java | 50 +- .../SensitivityLabelUpdateListTests.java | 67 +- ...tivityLabelUpdatePropertiesInnerTests.java | 50 +- .../generated/ServerUsageInnerTests.java | 2 +- .../generated/ServerUsageListResultTests.java | 5 +- .../generated/SkuDescriptionInnerTests.java | 23 - .../generated/SkuDescriptionListTests.java | 23 - .../generated/SkuLocationInfoItemTests.java | 30 - .../synapse/generated/SkuTests.java | 18 +- .../generated/SparkConfigPropertiesTests.java | 33 - .../SparkConfigurationInfoTests.java | 60 - .../SparkConfigurationListResponseTests.java | 82 - .../SparkConfigurationResourceInnerTests.java | 61 - ...onfigurationsGetWithResponseMockTests.java | 45 - ...onsOperationsListByWorkspaceMockTests.java | 45 - .../generated/SqlPoolColumnInnerTests.java | 8 +- .../SqlPoolColumnListResultTests.java | 2 +- .../SqlPoolColumnPropertiesTests.java | 8 +- ...qlPoolColumnsGetWithResponseMockTests.java | 6 +- ...ctionPoliciesGetWithResponseMockTests.java | 19 +- .../SqlPoolConnectionPolicyInnerTests.java | 45 +- ...qlPoolConnectionPolicyPropertiesTests.java | 44 +- ...serActivitiesGetWithResponseMockTests.java | 4 +- ...esCreateOrUpdateWithResponseMockTests.java | 6 +- ...ackupPoliciesGetWithResponseMockTests.java | 4 +- ...SqlPoolGeoBackupPoliciesListMockTests.java | 6 +- .../generated/SqlPoolInfoListResultTests.java | 140 +- .../synapse/generated/SqlPoolInnerTests.java | 86 +- ...WindowOptionsGetWithResponseMockTests.java | 20 +- ...wsCreateOrUpdateWithResponseMockTests.java | 22 +- ...enanceWindowsGetWithResponseMockTests.java | 10 +- ...yncConfigsCreateWithResponseMockTests.java | 10 +- ...taSyncConfigsGetWithResponseMockTests.java | 8 +- ...ionHeaderResultWithResponseMockTests.java} | 12 +- .../generated/SqlPoolPatchInfoTests.java | 86 +- ...vityLabelsUpdateWithResponseMockTests.java | 28 +- ...onLinksGetByNameWithResponseMockTests.java | 4 +- .../SqlPoolReplicationLinksListMockTests.java | 6 +- .../SqlPoolResourcePropertiesTests.java | 59 +- .../SqlPoolRestorePointsCreateMockTests.java | 6 +- ...torePointsDeleteWithResponseMockTests.java | 3 +- ...RestorePointsGetWithResponseMockTests.java | 5 +- .../SqlPoolRestorePointsListMockTests.java | 4 +- .../generated/SqlPoolSchemaInnerTests.java | 2 +- .../SqlPoolSchemaListResultTests.java | 2 +- ...qlPoolSchemasGetWithResponseMockTests.java | 4 +- .../SqlPoolSchemasListMockTests.java | 6 +- ...lsCreateOrUpdateWithResponseMockTests.java | 20 +- ...vityLabelsDeleteWithResponseMockTests.java | 2 +- ...leRecommendationWithResponseMockTests.java | 4 +- ...leRecommendationWithResponseMockTests.java | 4 +- ...itivityLabelsGetWithResponseMockTests.java | 16 +- ...SensitivityLabelsListCurrentMockTests.java | 12 +- ...itivityLabelsListRecommendedMockTests.java | 14 +- ...vityLabelsUpdateWithResponseMockTests.java | 17 +- ...lTableColumnsListByTableNameMockTests.java | 6 +- .../generated/SqlPoolTableInnerTests.java | 5 +- .../SqlPoolTableListResultTests.java | 2 +- ...SqlPoolTablesGetWithResponseMockTests.java | 4 +- .../SqlPoolTablesListBySchemaMockTests.java | 5 +- ...nsCreateOrUpdateWithResponseMockTests.java | 6 +- ...taEncryptionsGetWithResponseMockTests.java | 6 +- ...ansparentDataEncryptionsListMockTests.java | 4 +- .../generated/SqlPoolUsageInnerTests.java | 2 +- .../SqlPoolUsageListResultTests.java | 5 +- .../generated/SqlPoolUsagesListMockTests.java | 4 +- ...ilityAssessmentRuleBaselineInnerTests.java | 13 +- ...bilityAssessmentRuleBaselineItemTests.java | 8 +- ...AssessmentRuleBaselinePropertiesTests.java | 19 +- ...esCreateOrUpdateWithResponseMockTests.java | 14 +- ...eBaselinesDeleteWithResponseMockTests.java | 4 +- ...RuleBaselinesGetWithResponseMockTests.java | 9 +- ...tyAssessmentScanExportPropertiesTests.java | 2 +- ...bilityAssessmentScansExportInnerTests.java | 2 +- ...smentScansExportWithResponseMockTests.java | 4 +- ...yAssessmentScansInitiateScanMockTests.java | 2 +- ...ssessmentsDeleteWithResponseMockTests.java | 2 +- ...oadClassifiersCreateOrUpdateMockTests.java | 30 +- ...oolWorkloadClassifiersDeleteMockTests.java | 2 +- ...adClassifiersGetWithResponseMockTests.java | 16 +- ...lPoolWorkloadClassifiersListMockTests.java | 16 +- ...WorkloadGroupsCreateOrUpdateMockTests.java | 30 +- .../SqlPoolWorkloadGroupsDeleteMockTests.java | 2 +- ...orkloadGroupsGetWithResponseMockTests.java | 16 +- .../SqlPoolWorkloadGroupsListMockTests.java | 18 +- .../generated/SqlPoolsCreateMockTests.java | 56 +- .../generated/SqlPoolsDeleteMockTests.java | 25 +- .../SqlPoolsGetWithResponseMockTests.java | 31 +- .../SqlPoolsListByWorkspaceMockTests.java | 35 +- .../generated/SqlPoolsPauseMockTests.java | 25 +- .../generated/SqlPoolsResumeMockTests.java | 24 +- .../SsisEnvironmentReferenceTests.java | 26 +- .../generated/SsisEnvironmentTests.java | 99 +- .../synapse/generated/SsisFolderTests.java | 16 +- ...sObjectMetadataListResponseInnerTests.java | 24 +- ...bjectMetadataStatusResponseInnerTests.java | 27 +- .../generated/SsisObjectMetadataTests.java | 19 +- .../synapse/generated/SsisPackageTests.java | 128 +- .../synapse/generated/SsisParameterTests.java | 68 +- .../synapse/generated/SsisProjectTests.java | 194 +- .../synapse/generated/SsisVariableTests.java | 44 +- .../TableLevelSharingPropertiesTests.java | 43 - .../TransparentDataEncryptionInnerTests.java | 2 +- ...nsparentDataEncryptionListResultTests.java | 2 +- ...nsparentDataEncryptionPropertiesTests.java | 8 +- ...ateIntegrationRuntimeNodeRequestTests.java | 8 +- .../UpdateIntegrationRuntimeRequestTests.java | 8 +- .../UserAssignedManagedIdentityTests.java | 23 - .../generated/VirtualNetworkProfileTests.java | 8 +- ...sessmentRecurringScansPropertiesTests.java | 17 +- .../WorkloadClassifierInnerTests.java | 38 +- .../WorkloadClassifierListResultTests.java | 2 +- .../WorkloadClassifierPropertiesTests.java | 38 +- .../generated/WorkloadGroupInnerTests.java | 38 +- .../WorkloadGroupListResultTests.java | 2 +- .../WorkloadGroupPropertiesTests.java | 38 +- .../WorkspaceAadAdminInfoInnerTests.java | 26 +- ...spaceAadAdminsCreateOrUpdateMockTests.java | 20 +- .../WorkspaceAadAdminsDeleteMockTests.java | 2 +- ...paceAadAdminsGetWithResponseMockTests.java | 15 +- ...ontrolSettingsCreateOrUpdateMockTests.java | 13 +- ...ntrolSettingsGetWithResponseMockTests.java | 10 +- ...alTlsSettingsGetWithResponseMockTests.java | 39 - ...tedSqlMinimalTlsSettingsListMockTests.java | 40 - ...dSqlMinimalTlsSettingsUpdateMockTests.java | 42 - ...cryptionProtectorsRevalidateMockTests.java | 2 +- ...rableSqlPoolsGetWithResponseMockTests.java | 4 +- ...erverRecoverableSqlPoolsListMockTests.java | 4 +- ...ceManagedSqlServerUsagesListMockTests.java | 6 +- ...ssessmentsDeleteWithResponseMockTests.java | 2 +- ...WorkspaceRepositoryConfigurationTests.java | 56 +- ...ceSqlAadAdminsCreateOrUpdateMockTests.java | 20 +- .../WorkspaceSqlAadAdminsDeleteMockTests.java | 2 +- ...eSqlAadAdminsGetWithResponseMockTests.java | 12 +- ...ts.java => WorkspacesDeleteMockTests.java} | 6 +- 970 files changed, 6746 insertions(+), 56362 deletions(-) delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/GetsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java rename sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/{PrivateLinkResourcesOperationsClient.java => PrivateLinkResourcesClient.java} (97%) delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventGridConnectionProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventHubConnectionProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeEnableinteractivequeryInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOperationStatusInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStopOperationStatusInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AttachedDatabaseConfigurationImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureResourceSkuImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameResultImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ClusterPrincipalAssignmentImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationListResultImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabaseImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabasePrincipalAssignmentImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/FollowerDatabaseDefinitionImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeEnableinteractivequeryImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeOperationStatusImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStopOperationStatusImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolListResultImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LanguageExtensionImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationImpl.java rename sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/{PrivateLinkResourcesOperationsClientImpl.java => PrivateLinkResourcesClientImpl.java} (94%) rename sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/{PrivateLinkResourcesOperationsImpl.java => PrivateLinkResourcesImpl.java} (87%) delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SkuDescriptionImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationResourceImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentication.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationName.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureResourceSku.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureScaleType.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobStorageEventType.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignment.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalRole.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Compression.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConfigurationType.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnection.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionKind.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidation.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Database.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignment.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalRole.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DefaultPrincipalsModificationKind.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataFormat.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataFormat.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseDefinition.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Gets.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEnableinteractivequery.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOperationStatus.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStopOperationStatus.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataFormat.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Kind.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolChildResources.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtension.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionName.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operation.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalType.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Reason.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceProvisioningState.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescription.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuName.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuSize.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationResource.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurations.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/State.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StateValue.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Type.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceStatus.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeEnableInteractivequerySamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStartSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStopSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourceCheckNameAvailabilitySamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilitySamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilitySamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubGetSamples.java rename sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/{PrivateLinkResourcesOperationGetSamples.java => PrivateLinkResourcesGetSamples.java} (76%) rename sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/{PrivateLinkResourcesOperationListSamples.java => PrivateLinkResourcesListSamples.java} (75%) delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationListByWorkspaceSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureCapacityTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureResourceSkuInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureSkuTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameResultInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentCheckNameRequestTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CspWorkspaceAdminPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionCheckNameRequestTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationListResultInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseCheckNameRequestTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentCheckNameRequestTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseStatisticsTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridConnectionPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridDataConnectionTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubConnectionPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubDataConnectionTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseDefinitionInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStartWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStopWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeEnableinteractivequeryInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOperationStatusInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStopOperationStatusInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubConnectionPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubDataConnectionTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KekIdentityPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolCheckNameRequestTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolListResultInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationsListMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolUpdateTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilityWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionsListTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ListResourceSkusResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationDisplayTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationListResultTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OptimizedAutoscaleTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests.java rename sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/{PrivateLinkResourcesOperationsGetWithResponseMockTests.java => PrivateLinkResourcesGetWithResponseMockTests.java} (76%) rename sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/{PrivateLinkResourcesOperationsListMockTests.java => PrivateLinkResourcesListMockTests.java} (76%) delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabasePropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabaseTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabasePropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabaseTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionListTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuLocationInfoItemTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationInfoTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationListResponseTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationResourceInnerTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationsListByWorkspaceMockTests.java rename sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/{KustoPoolAttachedDatabaseConfigurationsDeleteMockTests.java => SqlPoolOperationResultsGetLocationHeaderResultWithResponseMockTests.java} (71%) delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TableLevelSharingPropertiesTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UserAssignedManagedIdentityTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests.java rename sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/{KustoPoolsDeleteMockTests.java => WorkspacesDeleteMockTests.java} (84%) diff --git a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md index 0bbbf5bac753..68d7963db6ce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md +++ b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md @@ -1,14 +1,527 @@ # Release History -## 1.0.0-beta.9 (Unreleased) +## 1.0.0 (2024-12-23) -### Features Added +- Azure Resource Manager Synapse client library for Java. This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.DefaultPrincipalsModificationKind` was removed + +#### `models.DataConnectionCheckNameRequest` was removed + +#### `models.AttachedDatabaseConfiguration` was removed + +#### `models.UserAssignedManagedIdentity` was removed + +#### `models.KustoPoolDatabasePrincipalAssignments` was removed + +#### `models.ClusterPrincipalAssignmentCheckNameRequest` was removed + +#### `models.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings` was removed + +#### `models.KustoPool$UpdateStages` was removed + +#### `models.ResourceProvisioningState` was removed + +#### `models.SkuName` was removed + +#### `models.AzureCapacity` was removed + +#### `models.AzureADOnlyAuthenticationListResult` was removed + +#### `models.KustoPool$DefinitionStages` was removed + +#### `models.DatabasePrincipalAssignmentCheckNameRequest` was removed + +#### `models.AzureADOnlyAuthentications` was removed + +#### `models.DataConnectionValidationResult` was removed + +#### `models.KustoPool$Update` was removed + +#### `models.AzureScaleType` was removed + +#### `models.DatabaseStatistics` was removed + +#### `models.EventHubDataFormat` was removed + +#### `models.KustoPoolPrincipalAssignments` was removed + +#### `models.ConfigurationType` was removed + +#### `models.WorkspaceStatus` was removed + +#### `models.DataConnection` was removed + +#### `models.Compression` was removed + +#### `models.AttachedDatabaseConfiguration$Update` was removed + +#### `models.SkuDescription` was removed + +#### `models.DatabasePrincipalAssignment$Update` was removed + +#### `models.Gets` was removed + +#### `models.Database` was removed + +#### `models.IntegrationRuntimeStopOperationStatus` was removed + +#### `models.LanguageExtension` was removed + +#### `models.ClusterPrincipalAssignment$Update` was removed + +#### `models.IntegrationRuntimeOperationStatus` was removed + +#### `models.PrincipalType` was removed + +#### `models.Kind` was removed + +#### `models.KustoPoolListResult` was removed + +#### `models.DatabasePrincipalAssignment` was removed + +#### `models.Operation` was removed + +#### `models.SkuSize` was removed + +#### `models.KustoPoolPrivateLinkResources` was removed + +#### `models.KustoPoolUpdate` was removed + +#### `models.IotHubDataConnection` was removed + +#### `models.KustoPools` was removed + +#### `models.EventGridDataConnection` was removed + +#### `models.AzureSku` was removed + +#### `models.CspWorkspaceAdminProperties` was removed + +#### `models.DatabasePrincipalAssignment$UpdateStages` was removed + +#### `models.ClusterPrincipalAssignment$UpdateStages` was removed + +#### `models.AttachedDatabaseConfigurationListResult` was removed + +#### `models.OperationDisplay` was removed + +#### `models.ClusterPrincipalAssignmentListResult` was removed + +#### `models.DatabaseCheckNameRequest` was removed + +#### `models.AttachedDatabaseConfiguration$DefinitionStages` was removed + +#### `models.KustoPoolCheckNameRequest` was removed + +#### `models.KustoPool$Definition` was removed + +#### `models.LanguageExtensionsList` was removed + +#### `models.StateValue` was removed + +#### `models.DatabasePrincipalAssignment$DefinitionStages` was removed + +#### `models.DataConnectionKind` was removed + +#### `models.DatabasePrincipalAssignment$Definition` was removed + +#### `models.SparkConfigProperties` was removed + +#### `models.ClusterPrincipalAssignment$DefinitionStages` was removed + +#### `models.DedicatedSQLminimalTlsSettingsListResult` was removed + +#### `models.ActualState` was removed + +#### `models.AttachedDatabaseConfiguration$UpdateStages` was removed + +#### `models.DedicatedSqlMinimalTlsSettingsName` was removed + +#### `models.FollowerDatabaseListResult` was removed + +#### `models.SparkConfigurations` was removed + +#### `models.EventHubDataConnection` was removed + +#### `models.AzureADOnlyAuthenticationName` was removed + +#### `models.SkuLocationInfoItem` was removed + +#### `models.DataConnectionValidationListResult` was removed + +#### `models.OptimizedAutoscale` was removed + +#### `models.KustoPoolChildResources` was removed + +#### `models.FollowerDatabaseDefinition` was removed + +#### `models.Reason` was removed + +#### `models.ClusterPrincipalAssignment$Definition` was removed + +#### `models.State` was removed + +#### `models.DataConnectionListResult` was removed + +#### `models.DataConnectionValidation` was removed + +#### `models.CheckNameResult` was removed + +#### `models.SparkConfigurationsOperations` was removed + +#### `models.DatabasePrincipalAssignmentListResult` was removed + +#### `models.KustoPoolDataConnections` was removed + +#### `models.OperationListResult` was removed + +#### `models.EventGridDataFormat` was removed + +#### `models.IntegrationRuntimeEnableinteractivequery` was removed + +#### `models.IotHubDataFormat` was removed + +#### `models.DedicatedSQLminimalTlsSettings` was removed + +#### `models.AzureADOnlyAuthentication$DefinitionStages` was removed + +#### `models.AttachedDatabaseConfiguration$Definition` was removed + +#### `models.ClusterPrincipalAssignment` was removed + +#### `models.KustoPoolAttachedDatabaseConfigurations` was removed + +#### `models.SparkConfigurationResource` was removed + +#### `models.SkuDescriptionList` was removed + +#### `models.KustoPoolPrivateLinkResourcesOperations` was removed + +#### `models.TableLevelSharingProperties` was removed + +#### `models.LanguageExtensionName` was removed + +#### `models.ClusterPrincipalRole` was removed + +#### `models.SparkConfigurationListResponse` was removed + +#### `models.AzureADOnlyAuthentication$Definition` was removed + +#### `models.BlobStorageEventType` was removed + +#### `models.AzureADOnlyAuthentication` was removed + +#### `models.Type` was removed + +#### `models.PrincipalsModificationKind` was removed + +#### `models.ReadOnlyFollowingDatabase` was removed + +#### `models.KustoPoolDatabases` was removed + +#### `models.DatabaseListResult` was removed + +#### `models.KustoOperations` was removed + +#### `models.KekIdentityProperties` was removed + +#### `models.ReadWriteDatabase` was removed + +#### `models.AzureResourceSku` was removed + +#### `models.PrivateLinkResourcesOperations` was removed + +#### `models.DatabasePrincipalRole` was removed + +#### `models.DesiredState` was removed + +#### `models.KustoPool` was removed + +#### `models.ListResourceSkusResult` was removed + +#### `models.ServerBlobAuditingPolicy$Update` was modified + +* `withIsDevopsAuditEnabled(java.lang.Boolean)` was removed + +#### `models.ServerBlobAuditingPolicy` was modified + +* `isDevopsAuditEnabled()` was removed + +#### `models.SqlPoolPatchInfo` was modified + +* `sourceDatabaseDeletionDate()` was removed +* `withSourceDatabaseDeletionDate(java.time.OffsetDateTime)` was removed + +#### `models.SqlPoolOperationResults` was modified + +* `models.SqlPool getLocationHeaderResult(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object getLocationHeaderResult(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` +* `getLocationHeaderResult(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed + +#### `models.IntegrationRuntimeDataFlowProperties` was modified + +* `withCleanup(java.lang.Boolean)` was removed +* `cleanup()` was removed + +#### `models.SelfHostedIntegrationRuntimeStatus` was modified + +* `serviceRegion()` was removed +* `withNewerVersions(java.util.List)` was removed +* `osType()` was removed +* `newerVersions()` was removed +* `dataFactoryName()` was removed +* `state()` was removed +* `withServiceRegion(java.lang.String)` was removed +* `targetFramework()` was removed + +#### `models.IpFirewallRules` was modified + +* `models.IpFirewallRuleInfo delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `models.IpFirewallRuleInfo deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `models.IpFirewallRuleInfo deleteById(java.lang.String)` -> `java.lang.Object deleteById(java.lang.String)` +* `models.IpFirewallRuleInfo delete(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String)` + +#### `models.ManagedIntegrationRuntime` was modified + +* `withReferenceName(java.lang.String)` was removed +* `withTypeManagedVirtualNetworkType(java.lang.String)` was removed +* `typeManagedVirtualNetworkType()` was removed +* `id()` was removed +* `referenceName()` was removed +* `withId(java.lang.String)` was removed + +#### `models.ManagedIntegrationRuntimeStatus` was modified + +* `state()` was removed +* `dataFactoryName()` was removed + +#### `models.PrivateEndpointConnectionsPrivateLinkHubs` was modified + +* `getWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed +* `get(java.lang.String,java.lang.String,java.lang.String)` was removed + +#### `models.BigDataPools` was modified + +* `models.BigDataPoolResourceInfo deleteById(java.lang.String)` -> `java.lang.Object deleteById(java.lang.String)` +* `models.BigDataPoolResourceInfo deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `models.BigDataPoolResourceInfo delete(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String)` +* `models.BigDataPoolResourceInfo delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` + +#### `models.SqlPool$Definition` was modified + +* `withSourceDatabaseDeletionDate(java.time.OffsetDateTime)` was removed + +#### `models.ExtendedServerBlobAuditingPolicy$Update` was modified + +* `withIsDevopsAuditEnabled(java.lang.Boolean)` was removed + +#### `models.DataLakeStorageAccountDetails` was modified + +* `withResourceId(java.lang.String)` was removed +* `resourceId()` was removed +* `withCreateManagedPrivateEndpoint(java.lang.Boolean)` was removed +* `createManagedPrivateEndpoint()` was removed + +#### `models.Workspaces` was modified + +* `models.Workspace deleteById(java.lang.String)` -> `java.lang.Object deleteById(java.lang.String)` +* `models.Workspace deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `models.Workspace delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `models.Workspace deleteByResourceGroup(java.lang.String,java.lang.String)` -> `java.lang.Object deleteByResourceGroup(java.lang.String,java.lang.String)` + +#### `models.BigDataPoolResourceInfo` was modified + +* `models.SparkConfigProperties sparkConfigProperties()` -> `models.LibraryRequirements sparkConfigProperties()` +* `isAutotuneEnabled()` was removed + +#### `models.BigDataPoolResourceInfo$Definition` was modified + +* `withSparkConfigProperties(models.SparkConfigProperties)` was removed +* `withIsAutotuneEnabled(java.lang.Boolean)` was removed + +#### `models.Workspace` was modified + +* `java.lang.Object extraProperties()` -> `java.util.Map extraProperties()` +* `cspWorkspaceAdminProperties()` was removed +* `azureADOnlyAuthentication()` was removed +* `settings()` was removed +* `trustedServiceBypassEnabled()` was removed + +#### `models.SqlPool` was modified + +* `models.SqlPool pause()` -> `java.lang.Object pause()` +* `models.SqlPool pause(com.azure.core.util.Context)` -> `java.lang.Object pause(com.azure.core.util.Context)` +* `models.SqlPool resume()` -> `java.lang.Object resume()` +* `sourceDatabaseDeletionDate()` was removed +* `models.SqlPool resume(com.azure.core.util.Context)` -> `java.lang.Object resume(com.azure.core.util.Context)` + +#### `models.ManagedIdentity` was modified + +* `userAssignedIdentities()` was removed +* `withUserAssignedIdentities(java.util.Map)` was removed + +#### `models.CustomerManagedKeyDetails` was modified + +* `withKekIdentity(models.KekIdentityProperties)` was removed +* `kekIdentity()` was removed + +#### `models.ExtendedServerBlobAuditingPolicy` was modified + +* `isDevopsAuditEnabled()` was removed + +#### `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity` was modified + +* `withDesiredState(models.DesiredState)` was removed +* `models.DesiredState desiredState()` -> `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState desiredState()` +* `models.ActualState actualState()` -> `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState actualState()` + +#### `models.ServerBlobAuditingPolicy$Definition` was modified + +* `withIsDevopsAuditEnabled(java.lang.Boolean)` was removed + +#### `models.DynamicExecutorAllocation` was modified + +* `minExecutors()` was removed +* `withMinExecutors(java.lang.Integer)` was removed +* `maxExecutors()` was removed +* `withMaxExecutors(java.lang.Integer)` was removed + +#### `models.PrivateLinkResources` was modified + +* `fromJson(com.azure.json.JsonReader)` was removed +* `value()` was removed +* `withValue(java.util.List)` was removed +* `toJson(com.azure.json.JsonWriter)` was removed +* `validate()` was removed + +#### `SynapseManager` was modified + +* `kustoPoolPrincipalAssignments()` was removed +* `kustoOperations()` was removed +* `sparkConfigurationsOperations()` was removed +* `kustoPoolDataConnections()` was removed +* `kustoPoolPrivateLinkResourcesOperations()` was removed +* `privateLinkResourcesOperations()` was removed +* `kustoPoolAttachedDatabaseConfigurations()` was removed +* `gets()` was removed +* `kustoPoolDatabases()` was removed +* `kustoPools()` was removed +* `sparkConfigurations()` was removed +* `kustoPoolChildResources()` was removed +* `workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings()` was removed +* `azureADOnlyAuthentications()` was removed +* `kustoPoolDatabasePrincipalAssignments()` was removed + +#### `models.SqlPools` was modified + +* `models.SqlPool resume(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object resume(java.lang.String,java.lang.String,java.lang.String)` +* `models.SqlPool delete(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String)` +* `models.SqlPool deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `models.SqlPool delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `models.SqlPool deleteById(java.lang.String)` -> `java.lang.Object deleteById(java.lang.String)` +* `models.SqlPool pause(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object pause(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `models.SqlPool pause(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object pause(java.lang.String,java.lang.String,java.lang.String)` +* `models.SqlPool resume(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object resume(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` + +#### `models.Workspace$Definition` was modified + +* `withTrustedServiceBypassEnabled(java.lang.Boolean)` was removed +* `withAzureADOnlyAuthentication(java.lang.Boolean)` was removed +* `withCspWorkspaceAdminProperties(models.CspWorkspaceAdminProperties)` was removed + +#### `models.ExtendedServerBlobAuditingPolicy$Definition` was modified + +* `withIsDevopsAuditEnabled(java.lang.Boolean)` was removed + +### Features Added + +* `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState` was added + +* `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState` was added + +#### `models.ServerBlobAuditingPolicy$Update` was modified + +* `withStorageAccountSubscriptionId(java.util.UUID)` was added +* `withAuditActionsAndGroups(java.util.List)` was added +* `withRetentionDays(java.lang.Integer)` was added + +#### `models.SqlPoolPatchInfo` was modified + +* `withCreationDate(java.time.OffsetDateTime)` was added +* `withStatus(java.lang.String)` was added + +#### `models.SqlPoolOperationResults` was modified + +* `getLocationHeaderResultWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `models.SqlPoolSecurityAlertPolicy$Update` was modified + +* `withDisabledAlerts(java.util.List)` was added +* `withEmailAddresses(java.util.List)` was added + +#### `models.ServerVulnerabilityAssessment$Update` was modified + +* `withStorageContainerPath(java.lang.String)` was added + +#### `models.SqlPool$Definition` was modified + +* `withStatus(java.lang.String)` was added +* `withCreationDate(java.time.OffsetDateTime)` was added + +#### `models.ExtendedServerBlobAuditingPolicy$Update` was modified + +* `withStorageAccountSubscriptionId(java.util.UUID)` was added +* `withRetentionDays(java.lang.Integer)` was added + +#### `models.ServerSecurityAlertPolicy$Update` was modified + +* `withEmailAddresses(java.util.List)` was added +* `withDisabledAlerts(java.util.List)` was added +* `withRetentionDays(java.lang.Integer)` was added +* `withEmailAccountAdmins(java.lang.Boolean)` was added +* `withStorageEndpoint(java.lang.String)` was added + +#### `models.SqlPoolBlobAuditingPolicy$Update` was modified + +* `withStorageAccountSubscriptionId(java.util.UUID)` was added +* `withRetentionDays(java.lang.Integer)` was added + +#### `models.BigDataPoolResourceInfo$Definition` was modified + +* `withSparkConfigProperties(models.LibraryRequirements)` was added +* `withCreationDate(java.time.OffsetDateTime)` was added + +#### `models.Key$Update` was modified + +* `withKeyVaultUrl(java.lang.String)` was added + +#### `models.SqlPool$Update` was modified + +* `withCollation(java.lang.String)` was added +* `withStatus(java.lang.String)` was added +* `withRestorePointInTime(java.time.OffsetDateTime)` was added +* `withCreationDate(java.time.OffsetDateTime)` was added + +#### `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity` was modified + +* `withDesiredState(models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState)` was added + +#### `models.PrivateLinkResources` was modified + +* `list(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `get(java.lang.String,java.lang.String,java.lang.String)` was added +* `getWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `list(java.lang.String,java.lang.String)` was added + +#### `SynapseManager` was modified + +* `privateLinkResources()` was added + +#### `models.Workspace$Definition` was modified -### Other Changes +* `withConnectivityEndpoints(java.util.Map)` was added ## 1.0.0-beta.8 (2024-10-31) diff --git a/sdk/synapse/azure-resourcemanager-synapse/README.md b/sdk/synapse/azure-resourcemanager-synapse/README.md index 7d77093801a6..c0a3a541f737 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/README.md +++ b/sdk/synapse/azure-resourcemanager-synapse/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Synapse client library for Java. -This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-composite-v2. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-synapse - 1.0.0-beta.8 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md index 01762bee4cfa..02765b2aecb3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md +++ b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md @@ -1,12 +1,6 @@ # Code snippets and samples -## AzureADOnlyAuthentications - -- [Create](#azureadonlyauthentications_create) -- [Get](#azureadonlyauthentications_get) -- [List](#azureadonlyauthentications_list) - ## BigDataPools - [CreateOrUpdate](#bigdatapools_createorupdate) @@ -32,12 +26,6 @@ - [Get](#extendedsqlpoolblobauditingpolicies_get) - [ListBySqlPool](#extendedsqlpoolblobauditingpolicies_listbysqlpool) -## Get - -- [IntegrationRuntimeEnableInteractivequery](#get_integrationruntimeenableinteractivequery) -- [IntegrationRuntimeStart](#get_integrationruntimestart) -- [IntegrationRuntimeStop](#get_integrationruntimestop) - ## IntegrationRuntimeAuthKeysOperation - [List](#integrationruntimeauthkeysoperation_list) @@ -103,77 +91,6 @@ - [Get](#keys_get) - [ListByWorkspace](#keys_listbyworkspace) -## KustoOperations - -- [List](#kustooperations_list) - -## KustoPoolAttachedDatabaseConfigurations - -- [CreateOrUpdate](#kustopoolattacheddatabaseconfigurations_createorupdate) -- [Delete](#kustopoolattacheddatabaseconfigurations_delete) -- [Get](#kustopoolattacheddatabaseconfigurations_get) -- [ListByKustoPool](#kustopoolattacheddatabaseconfigurations_listbykustopool) - -## KustoPoolChildResource - -- [CheckNameAvailability](#kustopoolchildresource_checknameavailability) - -## KustoPoolDataConnections - -- [CheckNameAvailability](#kustopooldataconnections_checknameavailability) -- [CreateOrUpdate](#kustopooldataconnections_createorupdate) -- [DataConnectionValidation](#kustopooldataconnections_dataconnectionvalidation) -- [Delete](#kustopooldataconnections_delete) -- [Get](#kustopooldataconnections_get) -- [ListByDatabase](#kustopooldataconnections_listbydatabase) -- [Update](#kustopooldataconnections_update) - -## KustoPoolDatabasePrincipalAssignments - -- [CheckNameAvailability](#kustopooldatabaseprincipalassignments_checknameavailability) -- [CreateOrUpdate](#kustopooldatabaseprincipalassignments_createorupdate) -- [Delete](#kustopooldatabaseprincipalassignments_delete) -- [Get](#kustopooldatabaseprincipalassignments_get) -- [List](#kustopooldatabaseprincipalassignments_list) - -## KustoPoolDatabases - -- [CreateOrUpdate](#kustopooldatabases_createorupdate) -- [Delete](#kustopooldatabases_delete) -- [Get](#kustopooldatabases_get) -- [ListByKustoPool](#kustopooldatabases_listbykustopool) -- [Update](#kustopooldatabases_update) - -## KustoPoolPrincipalAssignments - -- [CheckNameAvailability](#kustopoolprincipalassignments_checknameavailability) -- [CreateOrUpdate](#kustopoolprincipalassignments_createorupdate) -- [Delete](#kustopoolprincipalassignments_delete) -- [Get](#kustopoolprincipalassignments_get) -- [List](#kustopoolprincipalassignments_list) - -## KustoPoolPrivateLinkResourcesOperation - -- [List](#kustopoolprivatelinkresourcesoperation_list) - -## KustoPools - -- [AddLanguageExtensions](#kustopools_addlanguageextensions) -- [CheckNameAvailability](#kustopools_checknameavailability) -- [CreateOrUpdate](#kustopools_createorupdate) -- [Delete](#kustopools_delete) -- [DetachFollowerDatabases](#kustopools_detachfollowerdatabases) -- [Get](#kustopools_get) -- [List](#kustopools_list) -- [ListByWorkspace](#kustopools_listbyworkspace) -- [ListFollowerDatabases](#kustopools_listfollowerdatabases) -- [ListLanguageExtensions](#kustopools_listlanguageextensions) -- [ListSkusByResource](#kustopools_listskusbyresource) -- [RemoveLanguageExtensions](#kustopools_removelanguageextensions) -- [Start](#kustopools_start) -- [Stop](#kustopools_stop) -- [Update](#kustopools_update) - ## LibrariesOperation - [ListByWorkspace](#librariesoperation_listbyworkspace) @@ -198,7 +115,6 @@ ## PrivateEndpointConnectionsPrivateLinkHub -- [Get](#privateendpointconnectionsprivatelinkhub_get) - [List](#privateendpointconnectionsprivatelinkhub_list) ## PrivateLinkHubPrivateLinkResources @@ -215,24 +131,16 @@ - [ListByResourceGroup](#privatelinkhubs_listbyresourcegroup) - [Update](#privatelinkhubs_update) -## PrivateLinkResourcesOperation +## PrivateLinkResources -- [Get](#privatelinkresourcesoperation_get) -- [List](#privatelinkresourcesoperation_list) +- [Get](#privatelinkresources_get) +- [List](#privatelinkresources_list) ## RestorableDroppedSqlPools - [Get](#restorabledroppedsqlpools_get) - [ListByWorkspace](#restorabledroppedsqlpools_listbyworkspace) -## SparkConfiguration - -- [Get](#sparkconfiguration_get) - -## SparkConfigurationsOperation - -- [ListByWorkspace](#sparkconfigurationsoperation_listbyworkspace) - ## SqlPoolBlobAuditingPolicies - [CreateOrUpdate](#sqlpoolblobauditingpolicies_createorupdate) @@ -396,12 +304,6 @@ - [Get](#workspacemanagedsqlserverblobauditingpolicies_get) - [ListByWorkspace](#workspacemanagedsqlserverblobauditingpolicies_listbyworkspace) -## WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings - -- [Get](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_get) -- [List](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_list) -- [Update](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_update) - ## WorkspaceManagedSqlServerEncryptionProtector - [CreateOrUpdate](#workspacemanagedsqlserverencryptionprotector_createorupdate) @@ -451,87 +353,6 @@ - [List](#workspaces_list) - [ListByResourceGroup](#workspaces_listbyresourcegroup) - [Update](#workspaces_update) -### AzureADOnlyAuthentications_Create - -```java -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; - -/** - * Samples for AzureADOnlyAuthentications Create. - */ -public final class AzureADOnlyAuthenticationsCreateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * CreateOrUpdateAzureADOnlyAuthentication.json - */ - /** - * Sample code: Create or Update Azure Active Directory Only Authentication property. - * - * @param manager Entry point to SynapseManager. - */ - public static void createOrUpdateAzureActiveDirectoryOnlyAuthenticationProperty( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.azureADOnlyAuthentications() - .define(AzureADOnlyAuthenticationName.DEFAULT) - .withExistingWorkspace("workspace-6852", "workspace-2080") - .withAzureADOnlyAuthentication(true) - .create(); - } -} -``` - -### AzureADOnlyAuthentications_Get - -```java -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; - -/** - * Samples for AzureADOnlyAuthentications Get. - */ -public final class AzureADOnlyAuthenticationsGetSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureADOnlyAuthentication. - * json - */ - /** - * Sample code: Get Azure Active Directory Only Authentication property. - * - * @param manager Entry point to SynapseManager. - */ - public static void - getAzureActiveDirectoryOnlyAuthenticationProperty(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.azureADOnlyAuthentications() - .getWithResponse("workspace-6852", "workspace-2080", AzureADOnlyAuthenticationName.DEFAULT, - com.azure.core.util.Context.NONE); - } -} -``` - -### AzureADOnlyAuthentications_List - -```java -/** - * Samples for AzureADOnlyAuthentications List. - */ -public final class AzureADOnlyAuthenticationsListSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListAzureADOnlyAuthentication - * .json - */ - /** - * Sample code: Get a list of Azure Active Directory Only Authentication property. - * - * @param manager Entry point to SynapseManager. - */ - public static void getAListOfAzureActiveDirectoryOnlyAuthenticationProperty( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.azureADOnlyAuthentications().list("workspace-6852", "workspace-2080", com.azure.core.util.Context.NONE); - } -} -``` - ### BigDataPools_CreateOrUpdate ```java @@ -548,8 +369,9 @@ import java.util.Map; */ public final class BigDataPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * CreateOrUpdateBigDataPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateOrUpdateBigDataPool. + * json */ /** * Sample code: Create or update a Big Data pool. @@ -564,7 +386,6 @@ public final class BigDataPoolsCreateOrUpdateSamples { .withTags(mapOf("key", "fakeTokenPlaceholder")) .withAutoScale(new AutoScaleProperties().withMinNodeCount(3).withEnabled(true).withMaxNodeCount(50)) .withAutoPause(new AutoPauseProperties().withDelayInMinutes(15).withEnabled(true)) - .withIsAutotuneEnabled(false) .withSparkEventsFolder("/events") .withNodeCount(4) .withLibraryRequirements(new LibraryRequirements().withContent("").withFilename("requirements.txt")) @@ -598,8 +419,7 @@ public final class BigDataPoolsCreateOrUpdateSamples { public final class BigDataPoolsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/DeleteBigDataPool. - * json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteBigDataPool.json */ /** * Sample code: Delete a Big Data pool. @@ -622,7 +442,7 @@ public final class BigDataPoolsDeleteSamples { public final class BigDataPoolsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetBigDataPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetBigDataPool.json */ /** * Sample code: Get a Big Data pool. @@ -645,8 +465,9 @@ public final class BigDataPoolsGetSamples { */ public final class BigDataPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * ListBigDataPoolsInWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListBigDataPoolsInWorkspace. + * json */ /** * Sample code: List Big Data pools in a workspace. @@ -673,8 +494,7 @@ import java.util.Map; public final class BigDataPoolsUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/UpdateBigDataPool. - * json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/UpdateBigDataPool.json */ /** * Sample code: Update a Big Data pool. @@ -713,7 +533,7 @@ import com.azure.resourcemanager.synapse.models.DataMaskingState; */ public final class DataMaskingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingPolicyCreateOrUpdateMin.json */ /** @@ -730,7 +550,7 @@ public final class DataMaskingPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingPolicyCreateOrUpdateMax.json */ /** @@ -758,7 +578,7 @@ public final class DataMaskingPoliciesCreateOrUpdateSamples { public final class DataMaskingPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DataMaskingPolicyGet.json */ /** * Sample code: Get data masking policy. @@ -784,7 +604,7 @@ import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; */ public final class DataMaskingRulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingRuleCreateOrUpdateDefaultMin.json */ /** @@ -805,7 +625,7 @@ public final class DataMaskingRulesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingRuleCreateOrUpdateDefaultMax.json */ /** @@ -828,7 +648,7 @@ public final class DataMaskingRulesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingRuleCreateOrUpdateText.json */ /** @@ -851,7 +671,7 @@ public final class DataMaskingRulesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingRuleCreateOrUpdateNumber.json */ /** @@ -883,7 +703,7 @@ public final class DataMaskingRulesCreateOrUpdateSamples { public final class DataMaskingRulesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DataMaskingRuleGet.json */ /** * Sample code: Get data masking rule. @@ -907,7 +727,7 @@ public final class DataMaskingRulesGetSamples { public final class DataMaskingRulesListBySqlPoolSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleList.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DataMaskingRuleList.json */ /** * Sample code: List data masking rules. @@ -933,7 +753,7 @@ import java.util.UUID; */ public final class ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExtendedSqlPoolBlobAuditingCreateMax.json */ /** @@ -961,7 +781,7 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExtendedSqlPoolAzureMonitorAuditingCreateMin.json */ /** @@ -980,7 +800,7 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExtendedSqlPoolBlobAuditingCreateMin.json */ /** @@ -1010,7 +830,7 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { */ public final class ExtendedSqlPoolBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExtendedSqlPoolBlobAuditingGet.json */ /** @@ -1035,7 +855,7 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesGetSamples { */ public final class ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolExtendedAuditingSettingsList.json */ /** @@ -1052,79 +872,6 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples { } ``` -### Get_IntegrationRuntimeEnableInteractivequery - -```java -/** - * Samples for Get IntegrationRuntimeEnableInteractivequery. - */ -public final class GetIntegrationRuntimeEnableInteractivequerySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * EnableInteractivequery_IntegrationRuntimes.json - */ - /** - * Sample code: Get integration runtime operation status. - * - * @param manager Entry point to SynapseManager. - */ - public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.gets() - .integrationRuntimeEnableInteractivequeryWithResponse("drage-felles-prod-rg", - "felles-prod-synapse-workspace", "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", - com.azure.core.util.Context.NONE); - } -} -``` - -### Get_IntegrationRuntimeStart - -```java -/** - * Samples for Get IntegrationRuntimeStart. - */ -public final class GetIntegrationRuntimeStartSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Start_OperationStatus.json - */ - /** - * Sample code: Get integration runtime operation status. - * - * @param manager Entry point to SynapseManager. - */ - public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.gets() - .integrationRuntimeStartWithResponse("drage-felles-prod-rg", "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", com.azure.core.util.Context.NONE); - } -} -``` - -### Get_IntegrationRuntimeStop - -```java -/** - * Samples for Get IntegrationRuntimeStop. - */ -public final class GetIntegrationRuntimeStopSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Stop_OperationStatus.json - */ - /** - * Sample code: Get integration runtime operation status. - * - * @param manager Entry point to SynapseManager. - */ - public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.gets() - .integrationRuntimeStopWithResponse("drage-felles-prod-rg", "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", com.azure.core.util.Context.NONE); - } -} -``` - ### IntegrationRuntimeAuthKeysOperation_List ```java @@ -1133,7 +880,7 @@ public final class GetIntegrationRuntimeStopSamples { */ public final class IntegrationRuntimeAuthKeysOperationListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_ListAuthKeys.json */ /** @@ -1160,7 +907,7 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeRegenerateKeyP */ public final class IntegrationRuntimeAuthKeysOperationRegenerateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_RegenerateAuthKey.json */ /** @@ -1185,7 +932,7 @@ public final class IntegrationRuntimeAuthKeysOperationRegenerateSamples { */ public final class IntegrationRuntimeConnectionInfosGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_GetConnectionInfo.json */ /** @@ -1209,7 +956,7 @@ public final class IntegrationRuntimeConnectionInfosGetSamples { */ public final class IntegrationRuntimeCredentialsSyncSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_SyncCredentials.json */ /** @@ -1233,7 +980,7 @@ public final class IntegrationRuntimeCredentialsSyncSamples { */ public final class IntegrationRuntimeMonitoringDataListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeMonitoringData_List.json */ /** @@ -1257,7 +1004,7 @@ public final class IntegrationRuntimeMonitoringDataListSamples { */ public final class IntegrationRuntimeNodeIpAddressOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeNodes_GetIpAddress.json */ /** @@ -1281,7 +1028,7 @@ public final class IntegrationRuntimeNodeIpAddressOperationGetSamples { */ public final class IntegrationRuntimeNodesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeNodes_Delete.json */ /** @@ -1305,8 +1052,9 @@ public final class IntegrationRuntimeNodesDeleteSamples { */ public final class IntegrationRuntimeNodesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimeNodes_Get.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimeNodes_Get. + * json */ /** * Sample code: Get integration runtime node. @@ -1331,7 +1079,7 @@ import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequ */ public final class IntegrationRuntimeNodesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeNodes_Update.json */ /** @@ -1357,7 +1105,7 @@ import com.azure.resourcemanager.synapse.models.GetSsisObjectMetadataRequest; */ public final class IntegrationRuntimeObjectMetadataListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeObjectMetadata_List.json */ /** @@ -1381,7 +1129,7 @@ public final class IntegrationRuntimeObjectMetadataListSamples { */ public final class IntegrationRuntimeObjectMetadataRefreshSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeObjectMetadata_Refresh.json */ /** @@ -1404,8 +1152,9 @@ public final class IntegrationRuntimeObjectMetadataRefreshSamples { */ public final class IntegrationRuntimeStatusOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_GetStatus.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_GetStatus + * .json */ /** * Sample code: Get status. @@ -1430,8 +1179,9 @@ import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntime; */ public final class IntegrationRuntimesCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Create.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Create. + * json */ /** * Sample code: Create integration runtime. @@ -1456,8 +1206,9 @@ public final class IntegrationRuntimesCreateSamples { */ public final class IntegrationRuntimesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Delete.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Delete. + * json */ /** * Sample code: Delete integration runtime. @@ -1480,7 +1231,7 @@ public final class IntegrationRuntimesDeleteSamples { */ public final class IntegrationRuntimesDisableInteractiveQuerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_DisableInteractiveQuery.json */ /** @@ -1504,7 +1255,7 @@ public final class IntegrationRuntimesDisableInteractiveQuerySamples { */ public final class IntegrationRuntimesEnableInteractiveQuerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_EnableInteractiveQuery.json */ /** @@ -1528,8 +1279,8 @@ public final class IntegrationRuntimesEnableInteractiveQuerySamples { */ public final class IntegrationRuntimesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Get.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Get.json */ /** * Sample code: Get integration runtime. @@ -1552,7 +1303,7 @@ public final class IntegrationRuntimesGetSamples { */ public final class IntegrationRuntimesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_ListByWorkspace.json */ /** @@ -1575,7 +1326,7 @@ public final class IntegrationRuntimesListByWorkspaceSamples { */ public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json */ /** @@ -1599,8 +1350,9 @@ public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSa */ public final class IntegrationRuntimesStartSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Start.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Start. + * json */ /** * Sample code: Start integration runtime. @@ -1615,1517 +1367,321 @@ public final class IntegrationRuntimesStartSamples { } ``` -### IntegrationRuntimes_Stop - -```java -/** - * Samples for IntegrationRuntimes Stop. - */ -public final class IntegrationRuntimesStopSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Stop.json - */ - /** - * Sample code: Stop integration runtime. - * - * @param manager Entry point to SynapseManager. - */ - public static void stopIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.integrationRuntimes() - .stop("exampleResourceGroup", "exampleWorkspace", "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); - } -} -``` - -### IntegrationRuntimes_Update - -```java -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeResource; - -/** - * Samples for IntegrationRuntimes Update. - */ -public final class IntegrationRuntimesUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Update.json - */ - /** - * Sample code: Update integration runtime. - * - * @param manager Entry point to SynapseManager. - */ - public static void updateIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - IntegrationRuntimeResource resource = manager.integrationRuntimes() - .getWithResponse("exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", null, - com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply(); - } -} -``` - -### IntegrationRuntimes_Upgrade - -```java -/** - * Samples for IntegrationRuntimes Upgrade. - */ -public final class IntegrationRuntimesUpgradeSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Upgrade.json - */ - /** - * Sample code: Upgrade integration runtime. - * - * @param manager Entry point to SynapseManager. - */ - public static void upgradeIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.integrationRuntimes() - .upgradeWithResponse("exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); - } -} -``` - -### IpFirewallRules_CreateOrUpdate - -```java -/** - * Samples for IpFirewallRules CreateOrUpdate. - */ -public final class IpFirewallRulesCreateOrUpdateSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateIpFirewallRule.json - */ - /** - * Sample code: Create an IP firewall rule. - * - * @param manager Entry point to SynapseManager. - */ - public static void createAnIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.ipFirewallRules() - .define("ExampleIpFirewallRule") - .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withEndIpAddress("10.0.0.254") - .withStartIpAddress("10.0.0.0") - .create(); - } -} -``` - -### IpFirewallRules_Delete - -```java -/** - * Samples for IpFirewallRules Delete. - */ -public final class IpFirewallRulesDeleteSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteIpFirewallRule.json - */ - /** - * Sample code: Delete an IP firewall rule from a workspace. - * - * @param manager Entry point to SynapseManager. - */ - public static void deleteAnIPFirewallRuleFromAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.ipFirewallRules() - .delete("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", - com.azure.core.util.Context.NONE); - } -} -``` - -### IpFirewallRules_Get - -```java -/** - * Samples for IpFirewallRules Get. - */ -public final class IpFirewallRulesGetSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetIpFirewallRule.json - */ - /** - * Sample code: Get IP firewall rule. - * - * @param manager Entry point to SynapseManager. - */ - public static void getIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.ipFirewallRules() - .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", - com.azure.core.util.Context.NONE); - } -} -``` - -### IpFirewallRules_ListByWorkspace - -```java -/** - * Samples for IpFirewallRules ListByWorkspace. - */ -public final class IpFirewallRulesListByWorkspaceSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListIpFirewallRules.json - */ - /** - * Sample code: List IP firewall rules in a workspace. - * - * @param manager Entry point to SynapseManager. - */ - public static void listIPFirewallRulesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.ipFirewallRules() - .listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); - } -} -``` - -### IpFirewallRules_ReplaceAll - -```java -import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleProperties; -import com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for IpFirewallRules ReplaceAll. - */ -public final class IpFirewallRulesReplaceAllSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ReplaceAllIpFirewallRules. - * json - */ - /** - * Sample code: Replace all IP firewall rules in a workspace. - * - * @param manager Entry point to SynapseManager. - */ - public static void replaceAllIPFirewallRulesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.ipFirewallRules() - .replaceAll("ExampleResourceGroup", "ExampleWorkspace", - new ReplaceAllIpFirewallRulesRequest().withIpFirewallRules(mapOf("AnotherExampleFirewallRule", - new IpFirewallRuleProperties().withEndIpAddress("10.0.1.254").withStartIpAddress("10.0.1.0"), - "ExampleFirewallRule", - new IpFirewallRuleProperties().withEndIpAddress("10.0.0.254").withStartIpAddress("10.0.0.0"))), - com.azure.core.util.Context.NONE); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} -``` - -### Keys_CreateOrUpdate - -```java -/** - * Samples for Keys CreateOrUpdate. - */ -public final class KeysCreateOrUpdateSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateKey.json - */ - /** - * Sample code: Create or update a workspace key. - * - * @param manager Entry point to SynapseManager. - */ - public static void createOrUpdateAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.keys() - .define("somekey") - .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withIsActiveCmk(true) - .withKeyVaultUrl("https://vault.azure.net/keys/somesecret") - .create(); - } -} -``` - -### Keys_Delete - -```java -/** - * Samples for Keys Delete. - */ -public final class KeysDeleteSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteKey.json - */ - /** - * Sample code: Delete a workspace key. - * - * @param manager Entry point to SynapseManager. - */ - public static void deleteAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.keys() - .deleteWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", - com.azure.core.util.Context.NONE); - } -} -``` - -### Keys_Get - -```java -/** - * Samples for Keys Get. - */ -public final class KeysGetSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetKey.json - */ - /** - * Sample code: Get a workspace key. - * - * @param manager Entry point to SynapseManager. - */ - public static void getAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.keys() - .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", com.azure.core.util.Context.NONE); - } -} -``` - -### Keys_ListByWorkspace - -```java -/** - * Samples for Keys ListByWorkspace. - */ -public final class KeysListByWorkspaceSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListKeysInWorkspace.json - */ - /** - * Sample code: List keys in workspace. - * - * @param manager Entry point to SynapseManager. - */ - public static void listKeysInWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.keys().listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); - } -} -``` - -### KustoOperations_List - -```java -/** - * Samples for KustoOperations List. - */ -public final class KustoOperationsListSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoOperationsList. - * json - */ - /** - * Sample code: KustoOperationsList. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoOperationsList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoOperations().list(com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolAttachedDatabaseConfigurations_CreateOrUpdate - -```java -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; - -/** - * Samples for KustoPoolAttachedDatabaseConfigurations CreateOrUpdate. - */ -public final class KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolAttachedDatabaseConfigurationsCreateOrUpdate( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolAttachedDatabaseConfigurations() - .define("attachedDatabaseConfigurations1") - .withExistingKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest") - .withRegion("westus") - .withDatabaseName("kustodatabase") - .withKustoPoolResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) - .withTableLevelSharingProperties( - new TableLevelSharingProperties().withTablesToInclude(Arrays.asList("Table1")) - .withTablesToExclude(Arrays.asList("Table2")) - .withExternalTablesToInclude(Arrays.asList("ExternalTable1")) - .withExternalTablesToExclude(Arrays.asList("ExternalTable2")) - .withMaterializedViewsToInclude(Arrays.asList("MaterializedViewTable1")) - .withMaterializedViewsToExclude(Arrays.asList("MaterializedViewTable2"))) - .create(); - } -} -``` - -### KustoPoolAttachedDatabaseConfigurations_Delete - -```java -/** - * Samples for KustoPoolAttachedDatabaseConfigurations Delete. - */ -public final class KustoPoolAttachedDatabaseConfigurationsDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationsDelete.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolAttachedDatabaseConfigurationsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolAttachedDatabaseConfigurations() - .delete("kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolAttachedDatabaseConfigurations_Get - -```java -/** - * Samples for KustoPoolAttachedDatabaseConfigurations Get. - */ -public final class KustoPoolAttachedDatabaseConfigurationsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationsGet.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolAttachedDatabaseConfigurationsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolAttachedDatabaseConfigurations() - .getWithResponse("kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolAttachedDatabaseConfigurations_ListByKustoPool - -```java -/** - * Samples for KustoPoolAttachedDatabaseConfigurations ListByKustoPool. - */ -public final class KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationsListByKustoPool.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationsListByKustoPool. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolAttachedDatabaseConfigurationsListByKustoPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolAttachedDatabaseConfigurations() - .listByKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolChildResource_CheckNameAvailability - -```java -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Type; - -/** - * Samples for KustoPoolChildResource CheckNameAvailability. - */ -public final class KustoPoolChildResourceCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolAttachedDatabaseConfigurationCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolChildResources() - .checkNameAvailabilityWithResponse("kustorptest", "kustoclusterrptest4", "kustorptest", - new DatabaseCheckNameRequest().withName("adc1") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS), - com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolDatabasesCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasesCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolChildResources() - .checkNameAvailabilityWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", - new DatabaseCheckNameRequest().withName("database1") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDataConnections_CheckNameAvailability - -```java -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; - -/** - * Samples for KustoPoolDataConnections CheckNameAvailability. - */ -public final class KustoPoolDataConnectionsCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolDataConnectionsCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDataConnectionsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .checkNameAvailabilityWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", - "Kustodatabase8", new DataConnectionCheckNameRequest().withName("DataConnections8"), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDataConnections_CreateOrUpdate - -```java -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; - -/** - * Samples for KustoPoolDataConnections CreateOrUpdate. - */ -public final class KustoPoolDataConnectionsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolDataConnectionsCreateOrUpdate.json. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDataConnectionsCreateOrUpdateJson(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .createOrUpdate("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - "DataConnections8", - new EventHubDataConnection().withLocation("westus") - .withEventHubResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") - .withConsumerGroup("testConsumerGroup1"), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDataConnections_DataConnectionValidation - -```java -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; - -/** - * Samples for KustoPoolDataConnections DataConnectionValidation. - */ -public final class KustoPoolDataConnectionsDataConnectionValidationSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionValidation.json - */ - /** - * Sample code: KustoPoolDataConnectionValidation. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDataConnectionValidation(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .dataConnectionValidation("kustorptest", "kustorptest", "kustoclusterrptest4", "KustoDatabase8", - new DataConnectionValidationInner().withDataConnectionName("DataConnections8") - .withProperties(new EventHubDataConnection()), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDataConnections_Delete - -```java -/** - * Samples for KustoPoolDataConnections Delete. - */ -public final class KustoPoolDataConnectionsDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsDelete.json - */ - /** - * Sample code: KustoPoolDataConnectionsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDataConnectionsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .delete("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - "kustoeventhubconnection1", com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDataConnections_Get - -```java -/** - * Samples for KustoPoolDataConnections Get. - */ -public final class KustoPoolDataConnectionsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsGet.json - */ - /** - * Sample code: KustoPoolDataConnectionsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDataConnectionsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .getWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - "DataConnections8", com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDataConnections_ListByDatabase - -```java -/** - * Samples for KustoPoolDataConnections ListByDatabase. - */ -public final class KustoPoolDataConnectionsListByDatabaseSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsListByDatabase.json - */ - /** - * Sample code: KustoPoolDataConnectionsListByDatabase. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDataConnectionsListByDatabase(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .listByDatabase("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDataConnections_Update - -```java -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; - -/** - * Samples for KustoPoolDataConnections Update. - */ -public final class KustoPoolDataConnectionsUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsUpdate.json - */ - /** - * Sample code: KustoPoolDataConnectionsUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDataConnectionsUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .update("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", "DataConnections8", - new EventHubDataConnection().withLocation("westus") - .withEventHubResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") - .withConsumerGroup("testConsumerGroup1"), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabasePrincipalAssignments_CheckNameAvailability - -```java -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; - -/** - * Samples for KustoPoolDatabasePrincipalAssignments CheckNameAvailability. - */ -public final class KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasePrincipalAssignmentsCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .checkNameAvailabilityWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", - "kustorptest", new DatabasePrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabasePrincipalAssignments_CreateOrUpdate - -```java -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; - -/** - * Samples for KustoPoolDatabasePrincipalAssignments CreateOrUpdate. - */ -public final class KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasePrincipalAssignmentsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .define("kustoprincipal1") - .withExistingDatabase("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustorptest") - .withPrincipalId("87654321-1234-1234-1234-123456789123") - .withRole(DatabasePrincipalRole.ADMIN) - .withTenantId("12345678-1234-1234-1234-123456789123") - .withPrincipalType(PrincipalType.APP) - .create(); - } -} -``` - -### KustoPoolDatabasePrincipalAssignments_Delete - -```java -/** - * Samples for KustoPoolDatabasePrincipalAssignments Delete. - */ -public final class KustoPoolDatabasePrincipalAssignmentsDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsDelete.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasePrincipalAssignmentsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .delete("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabasePrincipalAssignments_Get - -```java -/** - * Samples for KustoPoolDatabasePrincipalAssignments Get. - */ -public final class KustoPoolDatabasePrincipalAssignmentsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsGet.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasePrincipalAssignmentsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", - "kustorptest", com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabasePrincipalAssignments_List - -```java -/** - * Samples for KustoPoolDatabasePrincipalAssignments List. - */ -public final class KustoPoolDatabasePrincipalAssignmentsListSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsList.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsList. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasePrincipalAssignmentsList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .list("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustorptest", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabases_CreateOrUpdate - -```java -import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; -import java.time.Duration; - -/** - * Samples for KustoPoolDatabases CreateOrUpdate. - */ -public final class KustoPoolDatabasesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolDatabasesCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasesCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .createOrUpdate("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - new ReadWriteDatabase().withLocation("westus").withSoftDeletePeriod(Duration.parse("P1D")), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabases_Delete - -```java -/** - * Samples for KustoPoolDatabases Delete. - */ -public final class KustoPoolDatabasesDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesDelete.json - */ - /** - * Sample code: KustoPoolDatabasesDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasesDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .delete("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabases_Get - -```java -/** - * Samples for KustoPoolDatabases Get. - */ -public final class KustoPoolDatabasesGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesGet.json - */ - /** - * Sample code: KustoPoolDatabasesGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasesGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .getWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabases_ListByKustoPool - -```java -/** - * Samples for KustoPoolDatabases ListByKustoPool. - */ -public final class KustoPoolDatabasesListByKustoPoolSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoDatabasesListByKustoPool.json - */ - /** - * Sample code: KustoDatabasesListByKustoPool. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoDatabasesListByKustoPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .listByKustoPool("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolDatabases_Update - -```java -import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; -import java.time.Duration; - -/** - * Samples for KustoPoolDatabases Update. - */ -public final class KustoPoolDatabasesUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesUpdate.json - */ - /** - * Sample code: KustoPoolDatabasesUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasesUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .update("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - new ReadWriteDatabase().withSoftDeletePeriod(Duration.parse("P1D")), com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolPrincipalAssignments_CheckNameAvailability - -```java -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; - -/** - * Samples for KustoPoolPrincipalAssignments CheckNameAvailability. - */ -public final class KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolPrincipalAssignmentsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .checkNameAvailabilityWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", - new ClusterPrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolPrincipalAssignments_CreateOrUpdate - -```java -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; - -/** - * Samples for KustoPoolPrincipalAssignments CreateOrUpdate. - */ -public final class KustoPoolPrincipalAssignmentsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolPrincipalAssignmentsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .define("kustoprincipal1") - .withExistingKustoPool("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest") - .withPrincipalId("87654321-1234-1234-1234-123456789123") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("12345678-1234-1234-1234-123456789123") - .withPrincipalType(PrincipalType.APP) - .create(); - } -} -``` - -### KustoPoolPrincipalAssignments_Delete - -```java -/** - * Samples for KustoPoolPrincipalAssignments Delete. - */ -public final class KustoPoolPrincipalAssignmentsDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsDelete.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolPrincipalAssignmentsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .delete("synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolPrincipalAssignments_Get - -```java -/** - * Samples for KustoPoolPrincipalAssignments Get. - */ -public final class KustoPoolPrincipalAssignmentsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsGet.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolPrincipalAssignmentsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolPrincipalAssignments_List - -```java -/** - * Samples for KustoPoolPrincipalAssignments List. - */ -public final class KustoPoolPrincipalAssignmentsListSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsList.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsList. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolPrincipalAssignmentsList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .list("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPoolPrivateLinkResourcesOperation_List - -```java -/** - * Samples for KustoPoolPrivateLinkResourcesOperation List. - */ -public final class KustoPoolPrivateLinkResourcesOperationListSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrivateLinkResourcesList.json - */ - /** - * Sample code: KustoPoolPrivateLinkResourcesList. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolPrivateLinkResourcesList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrivateLinkResourcesOperations() - .list("DP-900", "synapse-ws-ebi-data", "dataexplorerpool900", com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPools_AddLanguageExtensions - -```java -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.util.Arrays; - -/** - * Samples for KustoPools AddLanguageExtensions. - */ -public final class KustoPoolsAddLanguageExtensionsSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolLanguageExtensionsAdd.json - */ - /** - * Sample code: KustoPoolAddLanguageExtensions. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolAddLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .addLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", - new LanguageExtensionsList().withValue( - Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPools_CheckNameAvailability - -```java -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; - -/** - * Samples for KustoPools CheckNameAvailability. - */ -public final class KustoPoolsCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolsCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolsCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .checkNameAvailabilityWithResponse("westus", - new KustoPoolCheckNameRequest().withName("kustoclusterrptest4"), com.azure.core.util.Context.NONE); - } -} -``` - -### KustoPools_CreateOrUpdate - -```java -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; - -/** - * Samples for KustoPools CreateOrUpdate. - */ -public final class KustoPoolsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolsCreateOrUpdate.json - */ - /** - * Sample code: kustoPoolsCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .define("kustoclusterrptest4") - .withRegion("westus") - .withExistingWorkspace("synapseWorkspaceName", "kustorptest") - .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(2).withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .withWorkspaceUid("11111111-2222-3333-444444444444") - .create(); - } -} -``` - -### KustoPools_Delete +### IntegrationRuntimes_Stop ```java /** - * Samples for KustoPools Delete. + * Samples for IntegrationRuntimes Stop. */ -public final class KustoPoolsDeleteSamples { +public final class IntegrationRuntimesStopSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsDelete. - * json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Stop.json */ /** - * Sample code: kustoPoolsDelete. + * Sample code: Stop integration runtime. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .delete("kustorptest", "kustorptest", "kustoclusterrptest4", com.azure.core.util.Context.NONE); + public static void stopIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.integrationRuntimes() + .stop("exampleResourceGroup", "exampleWorkspace", "exampleManagedIntegrationRuntime", + com.azure.core.util.Context.NONE); } } ``` -### KustoPools_DetachFollowerDatabases +### IntegrationRuntimes_Update ```java -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; +import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAutoUpdate; +import com.azure.resourcemanager.synapse.models.IntegrationRuntimeResource; /** - * Samples for KustoPools DetachFollowerDatabases. + * Samples for IntegrationRuntimes Update. */ -public final class KustoPoolsDetachFollowerDatabasesSamples { +public final class IntegrationRuntimesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolFollowerDatabasesDetach.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Update. + * json */ /** - * Sample code: KustoPoolDetachFollowerDatabases. + * Sample code: Update integration runtime. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDetachFollowerDatabases(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .detachFollowerDatabases("kustorptest", "kustoclusterrptest4", "kustorptest", - new FollowerDatabaseDefinitionInner().withKustoPoolResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/leader4") - .withAttachedDatabaseConfigurationName("myAttachedDatabaseConfiguration"), - com.azure.core.util.Context.NONE); + public static void updateIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { + IntegrationRuntimeResource resource = manager.integrationRuntimes() + .getWithResponse("exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", null, + com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply(); } } ``` -### KustoPools_Get +### IntegrationRuntimes_Upgrade ```java /** - * Samples for KustoPools Get. + * Samples for IntegrationRuntimes Upgrade. */ -public final class KustoPoolsGetSamples { +public final class IntegrationRuntimesUpgradeSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Upgrade. + * json */ /** - * Sample code: kustoPoolsGet. + * Sample code: Upgrade integration runtime. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", + public static void upgradeIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.integrationRuntimes() + .upgradeWithResponse("exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` -### KustoPools_List +### IpFirewallRules_CreateOrUpdate ```java /** - * Samples for KustoPools List. + * Samples for IpFirewallRules CreateOrUpdate. */ -public final class KustoPoolsListSamples { +public final class IpFirewallRulesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListSkus. - * json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateIpFirewallRule.json */ /** - * Sample code: KustoPoolsListSkus. + * Sample code: Create an IP firewall rule. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolsListSkus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools().list(com.azure.core.util.Context.NONE); + public static void createAnIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.ipFirewallRules() + .define("ExampleIpFirewallRule") + .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") + .withEndIpAddress("10.0.0.254") + .withStartIpAddress("10.0.0.0") + .create(); } } ``` -### KustoPools_ListByWorkspace +### IpFirewallRules_Delete ```java /** - * Samples for KustoPools ListByWorkspace. + * Samples for IpFirewallRules Delete. */ -public final class KustoPoolsListByWorkspaceSamples { +public final class IpFirewallRulesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolsListByWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteIpFirewallRule.json */ /** - * Sample code: List Kusto pools in a workspace. + * Sample code: Delete an IP firewall rule from a workspace. * * @param manager Entry point to SynapseManager. */ - public static void listKustoPoolsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .listByWorkspaceWithResponse("kustorptest", "kustorptest", com.azure.core.util.Context.NONE); + public static void deleteAnIPFirewallRuleFromAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.ipFirewallRules() + .delete("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", + com.azure.core.util.Context.NONE); } } ``` -### KustoPools_ListFollowerDatabases +### IpFirewallRules_Get ```java /** - * Samples for KustoPools ListFollowerDatabases. + * Samples for IpFirewallRules Get. */ -public final class KustoPoolsListFollowerDatabasesSamples { +public final class IpFirewallRulesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolFollowerDatabasesList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetIpFirewallRule.json */ /** - * Sample code: KustoPoolListFollowerDatabases. + * Sample code: Create an IP firewall rule. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolListFollowerDatabases(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .listFollowerDatabases("kustorptest", "kustoclusterrptest4", "kustorptest", + public static void createAnIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.ipFirewallRules() + .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", com.azure.core.util.Context.NONE); } } ``` -### KustoPools_ListLanguageExtensions +### IpFirewallRules_ListByWorkspace ```java /** - * Samples for KustoPools ListLanguageExtensions. + * Samples for IpFirewallRules ListByWorkspace. */ -public final class KustoPoolsListLanguageExtensionsSamples { +public final class IpFirewallRulesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolLanguageExtensionsList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListIpFirewallRules.json */ /** - * Sample code: KustoPoolListLanguageExtensions. + * Sample code: List IP firewall rules in a workspace. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolListLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .listLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", - com.azure.core.util.Context.NONE); + public static void listIPFirewallRulesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.ipFirewallRules() + .listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); } } ``` -### KustoPools_ListSkusByResource +### IpFirewallRules_ReplaceAll ```java +import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleProperties; +import com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest; +import java.util.HashMap; +import java.util.Map; + /** - * Samples for KustoPools ListSkusByResource. + * Samples for IpFirewallRules ReplaceAll. */ -public final class KustoPoolsListSkusByResourceSamples { +public final class IpFirewallRulesReplaceAllSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolsListResourceSkus.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ReplaceAllIpFirewallRules. + * json */ /** - * Sample code: KustoPoolsListResourceSkus. + * Sample code: Replace all IP firewall rules in a workspace. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolsListResourceSkus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .listSkusByResource("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", + public static void replaceAllIPFirewallRulesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.ipFirewallRules() + .replaceAll("ExampleResourceGroup", "ExampleWorkspace", + new ReplaceAllIpFirewallRulesRequest().withIpFirewallRules(mapOf("AnotherExampleFirewallRule", + new IpFirewallRuleProperties().withEndIpAddress("10.0.1.254").withStartIpAddress("10.0.1.0"), + "ExampleFirewallRule", + new IpFirewallRuleProperties().withEndIpAddress("10.0.0.254").withStartIpAddress("10.0.0.0"))), com.azure.core.util.Context.NONE); } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } } ``` -### KustoPools_RemoveLanguageExtensions +### Keys_CreateOrUpdate ```java -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.util.Arrays; - /** - * Samples for KustoPools RemoveLanguageExtensions. + * Samples for Keys CreateOrUpdate. */ -public final class KustoPoolsRemoveLanguageExtensionsSamples { +public final class KeysCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolLanguageExtensionsRemove.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateOrUpdateKey.json */ /** - * Sample code: KustoPoolRemoveLanguageExtensions. + * Sample code: Create or update a workspace key. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolRemoveLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .removeLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", - new LanguageExtensionsList().withValue( - Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); + public static void createOrUpdateAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.keys() + .define("somekey") + .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") + .withIsActiveCmk(true) + .withKeyVaultUrl("https://vault.azure.net/keys/somesecret") + .create(); } } ``` -### KustoPools_Start +### Keys_Delete ```java /** - * Samples for KustoPools Start. + * Samples for Keys Delete. */ -public final class KustoPoolsStartSamples { +public final class KeysDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStart.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteKey.json */ /** - * Sample code: kustoPoolsStop. + * Sample code: Delete a workspace key. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolsStop(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .start("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + public static void deleteAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.keys() + .deleteWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", + com.azure.core.util.Context.NONE); } } ``` -### KustoPools_Stop +### Keys_Get ```java /** - * Samples for KustoPools Stop. + * Samples for Keys Get. */ -public final class KustoPoolsStopSamples { +public final class KeysGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStop.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetKey.json */ /** - * Sample code: kustoPoolsStop. + * Sample code: Get a workspace key. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolsStop(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .stop("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + public static void getAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.keys() + .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", com.azure.core.util.Context.NONE); } } ``` -### KustoPools_Update +### Keys_ListByWorkspace ```java -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; - /** - * Samples for KustoPools Update. + * Samples for Keys ListByWorkspace. */ -public final class KustoPoolsUpdateSamples { +public final class KeysListByWorkspaceSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsUpdate. - * json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListKeysInWorkspace.json */ /** - * Sample code: kustoPoolsUpdate. + * Sample code: List keys in workspace. * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolsUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - KustoPool resource = manager.kustoPools() - .getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(2).withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .apply(); + public static void listKeysInWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.keys().listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); } } ``` @@ -3138,8 +1694,9 @@ public final class KustoPoolsUpdateSamples { */ public final class LibrariesOperationListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * Libraries_ListByWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/Libraries_ListByWorkspace. + * json */ /** * Sample code: List libraries in a workspace. @@ -3162,7 +1719,7 @@ public final class LibrariesOperationListByWorkspaceSamples { public final class LibraryGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Library_Get.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/Library_Get.json */ /** * Sample code: Get Library by name. @@ -3187,7 +1744,7 @@ import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest; */ public final class OperationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CheckNameAvailabilityWorkspaceAlreadyExists.json */ /** @@ -3204,7 +1761,7 @@ public final class OperationsCheckNameAvailabilitySamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CheckNameAvailabilityWorkspaceAvailable.json */ /** @@ -3229,7 +1786,7 @@ public final class OperationsCheckNameAvailabilitySamples { public final class OperationsGetAzureAsyncHeaderResultSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureAsyncOperationHeader. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetAzureAsyncOperationHeader. * json */ /** @@ -3254,7 +1811,7 @@ public final class OperationsGetAzureAsyncHeaderResultSamples { public final class OperationsGetLocationHeaderResultSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeader.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetLocationHeader.json */ /** * Sample code: Get location header result. @@ -3278,7 +1835,7 @@ public final class OperationsGetLocationHeaderResultSamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAvailableOperations.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetAvailableOperations.json */ /** * Sample code: Get available operations. @@ -3301,7 +1858,7 @@ import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionStat */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ApprovePrivateEndpointConnection.json */ /** @@ -3328,7 +1885,7 @@ public final class PrivateEndpointConnectionsCreateSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeletePrivateEndpointConnection.json */ /** @@ -3353,7 +1910,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { public final class PrivateEndpointConnectionsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateEndpointConnection. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetPrivateEndpointConnection. * json */ /** @@ -3377,7 +1934,7 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListPrivateEndpointConnections.json */ /** @@ -3393,30 +1950,6 @@ public final class PrivateEndpointConnectionsListSamples { } ``` -### PrivateEndpointConnectionsPrivateLinkHub_Get - -```java -/** - * Samples for PrivateEndpointConnectionsPrivateLinkHub Get. - */ -public final class PrivateEndpointConnectionsPrivateLinkHubGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * PrivateEndpointConnectionsPrivateLinkHub_Get.json - */ - /** - * Sample code: Get a privateLinkHub. - * - * @param manager Entry point to SynapseManager. - */ - public static void getAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateEndpointConnectionsPrivateLinkHubs() - .getWithResponse("gh-res-grp", "pe0", "pe0-f3ed30f5-338c-4855-a542-24a403694ad2", - com.azure.core.util.Context.NONE); - } -} -``` - ### PrivateEndpointConnectionsPrivateLinkHub_List ```java @@ -3425,7 +1958,7 @@ public final class PrivateEndpointConnectionsPrivateLinkHubGetSamples { */ public final class PrivateEndpointConnectionsPrivateLinkHubListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * PrivateEndpointConnectionsPrivateLinkHub_List.json */ /** @@ -3447,7 +1980,7 @@ public final class PrivateEndpointConnectionsPrivateLinkHubListSamples { */ public final class PrivateLinkHubPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetPrivateLinkHubPrivateLinkResource.json */ /** @@ -3471,7 +2004,7 @@ public final class PrivateLinkHubPrivateLinkResourcesGetSamples { */ public final class PrivateLinkHubPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListPrivateLinkHubPrivateLinkResources.json */ /** @@ -3499,7 +2032,7 @@ import java.util.Map; public final class PrivateLinkHubsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdatePrivateLinkHub. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateOrUpdatePrivateLinkHub. * json */ /** @@ -3539,7 +2072,7 @@ public final class PrivateLinkHubsCreateOrUpdateSamples { public final class PrivateLinkHubsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateLinkHub.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeletePrivateLinkHub.json */ /** * Sample code: Delete a privateLinkHub. @@ -3561,7 +2094,7 @@ public final class PrivateLinkHubsDeleteSamples { public final class PrivateLinkHubsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHub.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetPrivateLinkHub.json */ /** * Sample code: Get a privateLinkHub. @@ -3583,7 +2116,7 @@ public final class PrivateLinkHubsGetByResourceGroupSamples { */ public final class PrivateLinkHubsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListPrivateLinkHubsInSubscription.json */ /** @@ -3605,7 +2138,7 @@ public final class PrivateLinkHubsListSamples { */ public final class PrivateLinkHubsListByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListPrivateLinkHubsInResourceGroup.json */ /** @@ -3632,7 +2165,7 @@ import java.util.Map; public final class PrivateLinkHubsUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdatePrivateLinkHub.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/UpdatePrivateLinkHub.json */ /** * Sample code: Update a privateLinkHub. @@ -3660,16 +2193,16 @@ public final class PrivateLinkHubsUpdateSamples { } ``` -### PrivateLinkResourcesOperation_Get +### PrivateLinkResources_Get ```java /** - * Samples for PrivateLinkResourcesOperation Get. + * Samples for PrivateLinkResources Get. */ -public final class PrivateLinkResourcesOperationGetSamples { +public final class PrivateLinkResourcesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetPrivateLinkResource.json */ /** * Sample code: Get private link resources for workspace. @@ -3677,22 +2210,22 @@ public final class PrivateLinkResourcesOperationGetSamples { * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateLinkResourcesOperations() + manager.privateLinkResources() .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", com.azure.core.util.Context.NONE); } } ``` -### PrivateLinkResourcesOperation_List +### PrivateLinkResources_List ```java /** - * Samples for PrivateLinkResourcesOperation List. + * Samples for PrivateLinkResources List. */ -public final class PrivateLinkResourcesOperationListSamples { +public final class PrivateLinkResourcesListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListPrivateLinkResources.json */ /** * Sample code: Get private link resources for workspace. @@ -3700,7 +2233,7 @@ public final class PrivateLinkResourcesOperationListSamples { * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateLinkResourcesOperations() + manager.privateLinkResources() .list("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); } } @@ -3715,7 +2248,7 @@ public final class PrivateLinkResourcesOperationListSamples { public final class RestorableDroppedSqlPoolsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlPoolGet. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/RestorableDroppedSqlPoolGet. * json */ /** @@ -3740,7 +2273,7 @@ public final class RestorableDroppedSqlPoolsGetSamples { public final class RestorableDroppedSqlPoolsListByWorkspaceSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlpoolList. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/RestorableDroppedSqlpoolList. * json */ /** @@ -3756,53 +2289,6 @@ public final class RestorableDroppedSqlPoolsListByWorkspaceSamples { } ``` -### SparkConfiguration_Get - -```java -/** - * Samples for SparkConfiguration Get. - */ -public final class SparkConfigurationGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * SparkConfiguration_Get.json - */ - /** - * Sample code: Get SparkConfiguration by name. - * - * @param manager Entry point to SynapseManager. - */ - public static void getSparkConfigurationByName(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.sparkConfigurations() - .getWithResponse("exampleResourceGroup", "exampleSparkConfigurationName", "exampleWorkspace", - com.azure.core.util.Context.NONE); - } -} -``` - -### SparkConfigurationsOperation_ListByWorkspace - -```java -/** - * Samples for SparkConfigurationsOperation ListByWorkspace. - */ -public final class SparkConfigurationsOperationListByWorkspaceSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * SparkConfigurations_ListByWorkspace.json - */ - /** - * Sample code: List sparkConfigurations in a workspace. - * - * @param manager Entry point to SynapseManager. - */ - public static void listSparkConfigurationsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.sparkConfigurationsOperations() - .listByWorkspace("exampleResourceGroup", "exampleWorkspace", com.azure.core.util.Context.NONE); - } -} -``` - ### SqlPoolBlobAuditingPolicies_CreateOrUpdate ```java @@ -3815,7 +2301,7 @@ import java.util.UUID; */ public final class SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolBlobAuditingWithAllParameters.json */ /** @@ -3842,7 +2328,7 @@ public final class SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolBlobAuditingWithMinParameters.json */ /** @@ -3873,7 +2359,7 @@ public final class SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { public final class SqlPoolBlobAuditingPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolBlobAuditing.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolBlobAuditing.json */ /** * Sample code: Get blob auditing policy of a SQL Analytics pool. @@ -3898,7 +2384,7 @@ public final class SqlPoolBlobAuditingPoliciesGetSamples { public final class SqlPoolBlobAuditingPoliciesListBySqlPoolSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolAuditingSettingsList. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolAuditingSettingsList. * json */ /** @@ -3923,7 +2409,7 @@ public final class SqlPoolBlobAuditingPoliciesListBySqlPoolSamples { public final class SqlPoolColumnsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolColumnGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolColumnGet.json */ /** * Sample code: Get database column. @@ -3949,7 +2435,7 @@ import com.azure.resourcemanager.synapse.models.ConnectionPolicyName; public final class SqlPoolConnectionPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolConnectionPolicy. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolConnectionPolicy. * json */ /** @@ -3977,7 +2463,7 @@ import com.azure.resourcemanager.synapse.models.DataWarehouseUserActivityName; public final class SqlPoolDataWarehouseUserActivitiesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolUserActivity.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolUserActivity.json */ /** * Sample code: Get a SQL Analytics pool user activity. @@ -4003,7 +2489,7 @@ import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; */ public final class SqlPoolGeoBackupPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateGeoBackupPolicies.json */ /** @@ -4032,7 +2518,7 @@ import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; public final class SqlPoolGeoBackupPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolGeoBackupPolicy. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolGeoBackupPolicy. * json */ /** @@ -4057,7 +2543,7 @@ public final class SqlPoolGeoBackupPoliciesGetSamples { public final class SqlPoolGeoBackupPoliciesListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolGeoBackupPolicies_List + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolGeoBackupPolicies_List * .json */ /** @@ -4081,7 +2567,7 @@ public final class SqlPoolGeoBackupPoliciesListSamples { public final class SqlPoolMaintenanceWindowOptionsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindowOptions. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetMaintenanceWindowOptions. * json */ /** @@ -4110,7 +2596,7 @@ import java.util.Arrays; */ public final class SqlPoolMaintenanceWindowsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateMaintenanceWindows.json */ /** @@ -4140,7 +2626,7 @@ public final class SqlPoolMaintenanceWindowsCreateOrUpdateSamples { public final class SqlPoolMaintenanceWindowsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindows.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetMaintenanceWindows.json */ /** * Sample code: Gets maintenance window settings for a selected SQL Analytics pool. @@ -4165,7 +2651,7 @@ import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; */ public final class SqlPoolMetadataSyncConfigsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateSqlPoolMetadataSyncConfig.json */ /** @@ -4191,7 +2677,7 @@ public final class SqlPoolMetadataSyncConfigsCreateSamples { public final class SqlPoolMetadataSyncConfigsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolMetadataSyncConfig. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolMetadataSyncConfig. * json */ /** @@ -4216,7 +2702,7 @@ public final class SqlPoolMetadataSyncConfigsGetSamples { */ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetLocationHeaderResultWithSqlPool.json */ /** @@ -4227,7 +2713,7 @@ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { public static void getTheResultOfAnOperationOnASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { manager.sqlPoolOperationResults() - .getLocationHeaderResult("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", + .getLocationHeaderResultWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", "fedcba98-7654-4210-fedc-ba9876543210", com.azure.core.util.Context.NONE); } } @@ -4242,7 +2728,7 @@ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { public final class SqlPoolOperationsListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolOperations.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolOperations.json */ /** * Sample code: List the Sql Analytics pool management operations. @@ -4270,7 +2756,7 @@ import java.util.Arrays; */ public final class SqlPoolRecommendedSensitivityLabelsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SensitivityLabelsRecommendedUpdate.json */ /** @@ -4308,7 +2794,7 @@ public final class SqlPoolRecommendedSensitivityLabelsUpdateSamples { */ public final class SqlPoolReplicationLinksGetByNameSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolReplicationLinks_GetByName.json */ /** @@ -4334,7 +2820,7 @@ public final class SqlPoolReplicationLinksGetByNameSamples { public final class SqlPoolReplicationLinksListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolReplicationLinks. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolReplicationLinks. * json */ /** @@ -4361,7 +2847,7 @@ import com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinit public final class SqlPoolRestorePointsCreateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolRestorePoints. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateSqlPoolRestorePoints. * json */ /** @@ -4387,7 +2873,7 @@ public final class SqlPoolRestorePointsCreateSamples { public final class SqlPoolRestorePointsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsDelete. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolRestorePointsDelete. * json */ /** @@ -4412,7 +2898,7 @@ public final class SqlPoolRestorePointsDeleteSamples { public final class SqlPoolRestorePointsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolRestorePointsGet.json */ /** * Sample code: Gets a Sql pool restore point. @@ -4436,7 +2922,7 @@ public final class SqlPoolRestorePointsGetSamples { public final class SqlPoolRestorePointsListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolRestorePoints.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolRestorePoints.json */ /** * Sample code: Get a list of restore points of a SQL Analytics pool. @@ -4460,7 +2946,7 @@ public final class SqlPoolRestorePointsListSamples { public final class SqlPoolSchemasGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSchemaGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolSchemaGet.json */ /** * Sample code: Get database schema. @@ -4483,7 +2969,7 @@ public final class SqlPoolSchemasGetSamples { public final class SqlPoolSchemasListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSchema.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolSchema.json */ /** * Sample code: List the schema in a SQL Analytics pool. @@ -4502,13 +2988,14 @@ public final class SqlPoolSchemasListSamples { import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; import com.azure.resourcemanager.synapse.models.SqlPoolSecurityAlertPolicy; +import java.util.Arrays; /** * Samples for SqlPoolSecurityAlertPolicies CreateOrUpdate. */ public final class SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolSecurityAlertWithAllParameters.json */ /** @@ -4524,6 +3011,8 @@ public final class SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples { .getValue(); resource.update() .withState(SecurityAlertPolicyState.ENABLED) + .withDisabledAlerts(Arrays.asList("Sql_Injection", "Usage_Anomaly")) + .withEmailAddresses(Arrays.asList("test@microsoft.com", "user@microsoft.com")) .withEmailAccountAdmins(true) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( @@ -4533,7 +3022,7 @@ public final class SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolSecurityAlertWithMinParameters.json */ /** @@ -4563,7 +3052,7 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; public final class SqlPoolSecurityAlertPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolSecurityAlert.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolSecurityAlert.json */ /** * Sample code: Get a security alert of a SQL Analytics pool. @@ -4586,7 +3075,7 @@ public final class SqlPoolSecurityAlertPoliciesGetSamples { */ public final class SqlPoolSecurityAlertPoliciesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolSecurityAlertPolicies_List.json */ /** @@ -4609,7 +3098,7 @@ public final class SqlPoolSecurityAlertPoliciesListSamples { */ public final class SqlPoolSensitivityLabelsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteSqlPoolColumnSensitivityLabel.json */ /** @@ -4634,7 +3123,7 @@ public final class SqlPoolSensitivityLabelsDeleteSamples { */ public final class SqlPoolSensitivityLabelsDisableRecommendationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * RecommendedColumnSensitivityLabelDisable.json */ /** @@ -4659,7 +3148,7 @@ public final class SqlPoolSensitivityLabelsDisableRecommendationSamples { */ public final class SqlPoolSensitivityLabelsEnableRecommendationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * RecommendedColumnSensitivityLabelEnable.json */ /** @@ -4686,7 +3175,7 @@ import com.azure.resourcemanager.synapse.models.SensitivityLabelSource; */ public final class SqlPoolSensitivityLabelsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolColumnSensitivityLabelGet.json */ /** @@ -4710,7 +3199,7 @@ public final class SqlPoolSensitivityLabelsGetSamples { */ public final class SqlPoolSensitivityLabelsListCurrentSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolsSensitivityLabelsWithSourceCurrent.json */ /** @@ -4734,7 +3223,7 @@ public final class SqlPoolSensitivityLabelsListCurrentSamples { */ public final class SqlPoolSensitivityLabelsListRecommendedSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolSensitivityLabelsWithSourceRecommended.json */ /** @@ -4765,7 +3254,7 @@ import java.util.Arrays; */ public final class SqlPoolSensitivityLabelsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SensitivityLabelsCurrentUpdate.json */ /** @@ -4814,7 +3303,7 @@ public final class SqlPoolSensitivityLabelsUpdateSamples { public final class SqlPoolTableColumnsListByTableNameSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolColumns.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolColumns.json */ /** * Sample code: List the columns in a table of a given schema in a SQL Analytics pool. @@ -4839,7 +3328,7 @@ public final class SqlPoolTableColumnsListByTableNameSamples { public final class SqlPoolTablesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolTableGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolTableGet.json */ /** * Sample code: Get database table. @@ -4862,7 +3351,7 @@ public final class SqlPoolTablesGetSamples { public final class SqlPoolTablesListBySchemaSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolTables.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolTables.json */ /** * Sample code: List the tables of a given schema in a SQL Analytics pool. @@ -4888,7 +3377,7 @@ import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; */ public final class SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolTransparentDataEncryption.json */ /** @@ -4917,7 +3406,7 @@ import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName; */ public final class SqlPoolTransparentDataEncryptionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolTransparentDataEncryption.json */ /** @@ -4942,7 +3431,7 @@ public final class SqlPoolTransparentDataEncryptionsGetSamples { */ public final class SqlPoolTransparentDataEncryptionsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolTransparentDataEncryptionList.json */ /** @@ -4967,7 +3456,7 @@ public final class SqlPoolTransparentDataEncryptionsListSamples { public final class SqlPoolUsagesListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolUsageMetricsList.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolUsageMetricsList.json */ /** * Sample code: List the usages of a SQL Analytics pool. @@ -4993,7 +3482,7 @@ import java.util.Arrays; */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolVulnerabilityAssessmentRuleBaseline.json */ /** @@ -5028,7 +3517,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBas */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteSqlPoolVulnerabilityAssessmentRuleBaseline.json */ /** @@ -5057,7 +3546,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBas */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolVulnerabilityAssessmentRuleBaselineGet.json */ /** @@ -5085,7 +3574,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; */ public final class SqlPoolVulnerabilityAssessmentScansExportSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExportSqlPoolVulnerabilityAssessmentScan.json */ /** @@ -5112,7 +3601,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; */ public final class SqlPoolVulnerabilityAssessmentScansGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolVulnerabilityAssessmentScanRecordsGet.json */ /** @@ -5139,7 +3628,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; */ public final class SqlPoolVulnerabilityAssessmentScansInitiateScanSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExecuteSqlPoolVulnerabilityAssessmentScans.json */ /** @@ -5166,7 +3655,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; */ public final class SqlPoolVulnerabilityAssessmentScansListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolVulnerabilityAssessmentScanRecords.json */ /** @@ -5195,7 +3684,7 @@ import java.util.Arrays; */ public final class SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolVulnerabilityAssessmentWithContainerSasKeyAndMinParameters.json */ /** @@ -5216,7 +3705,7 @@ public final class SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolVulnerabilityAssessmentWithAllParameters.json */ /** @@ -5239,7 +3728,7 @@ public final class SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateVulnerabilityAssessmentWithStorageAccessKeyAndMinParameters.json */ /** @@ -5271,7 +3760,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; */ public final class SqlPoolVulnerabilityAssessmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteSqlPoolVulnerabilityAssessment.json */ /** @@ -5298,7 +3787,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; */ public final class SqlPoolVulnerabilityAssessmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolVulnerabilityAssessment.json */ /** @@ -5322,7 +3811,7 @@ public final class SqlPoolVulnerabilityAssessmentsGetSamples { */ public final class SqlPoolVulnerabilityAssessmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolVulnerabilityAssessments.json */ /** @@ -5347,7 +3836,7 @@ public final class SqlPoolVulnerabilityAssessmentsListSamples { */ public final class SqlPoolWorkloadClassifierCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolWorkloadClassifierMin.json */ /** @@ -5365,7 +3854,7 @@ public final class SqlPoolWorkloadClassifierCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolWorkloadClassifierMax.json */ /** @@ -5397,7 +3886,7 @@ public final class SqlPoolWorkloadClassifierCreateOrUpdateSamples { */ public final class SqlPoolWorkloadClassifierDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteSqlPoolWorkloadGroupWorkloadClassifer.json */ /** @@ -5422,7 +3911,7 @@ public final class SqlPoolWorkloadClassifierDeleteSamples { */ public final class SqlPoolWorkloadClassifierGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolWorkloadGroupWorkloadClassifier.json */ /** @@ -5447,7 +3936,7 @@ public final class SqlPoolWorkloadClassifierGetSamples { */ public final class SqlPoolWorkloadClassifierListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolWorkloadGroupWorkloadClassifierList.json */ /** @@ -5472,7 +3961,7 @@ public final class SqlPoolWorkloadClassifierListSamples { */ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolWorkloadGroupMin.json */ /** @@ -5492,7 +3981,7 @@ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolWorkloadGroupMax.json */ /** @@ -5525,7 +4014,7 @@ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples { public final class SqlPoolWorkloadGroupDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroup. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteSqlPoolWorkloadGroup. * json */ /** @@ -5551,7 +4040,7 @@ public final class SqlPoolWorkloadGroupDeleteSamples { public final class SqlPoolWorkloadGroupGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroup.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolWorkloadGroup.json */ /** * Sample code: Get a a workload group of a SQL Analytics pool. @@ -5575,7 +4064,7 @@ public final class SqlPoolWorkloadGroupGetSamples { public final class SqlPoolWorkloadGroupListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupList. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolWorkloadGroupList. * json */ /** @@ -5606,7 +4095,7 @@ import java.util.Map; public final class SqlPoolsCreateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateSqlPool.json */ /** * Sample code: Create a SQL Analytics pool. @@ -5652,7 +4141,7 @@ public final class SqlPoolsCreateSamples { public final class SqlPoolsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteSqlPool.json */ /** * Sample code: Delete a SQL Analytics pool. @@ -5675,7 +4164,7 @@ public final class SqlPoolsDeleteSamples { public final class SqlPoolsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPool.json */ /** * Sample code: Get a SQL Analytics pool. @@ -5698,7 +4187,7 @@ public final class SqlPoolsGetSamples { */ public final class SqlPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolsInWorkspaceWithFilter.json */ /** @@ -5713,7 +4202,7 @@ public final class SqlPoolsListByWorkspaceSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolsInWorkspace.json */ /** * Sample code: List SQL Analytics pools in a workspace. @@ -5735,7 +4224,7 @@ public final class SqlPoolsListByWorkspaceSamples { public final class SqlPoolsPauseSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PauseSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/PauseSqlPool.json */ /** * Sample code: Pause a SQL Analytics pool. @@ -5757,7 +4246,7 @@ public final class SqlPoolsPauseSamples { public final class SqlPoolsResumeSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ResumeSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ResumeSqlPool.json */ /** * Sample code: Resume a SQL Analytics pool. @@ -5774,8 +4263,10 @@ public final class SqlPoolsResumeSamples { ### SqlPools_Update ```java +import com.azure.resourcemanager.synapse.models.CreateMode; import com.azure.resourcemanager.synapse.models.Sku; import com.azure.resourcemanager.synapse.models.SqlPool; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -5785,7 +4276,7 @@ import java.util.Map; public final class SqlPoolsUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/UpdateSqlPool.json */ /** * Sample code: Update a SQL Analytics pool. @@ -5797,7 +4288,17 @@ public final class SqlPoolsUpdateSamples { .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withTags(mapOf()).withSku(new Sku().withTier("").withName("")).withMaxSizeBytes(0L).apply(); + resource.update() + .withTags(mapOf()) + .withSku(new Sku().withTier("").withName("")) + .withMaxSizeBytes(0L) + .withCollation("") + .withSourceDatabaseId("") + .withRecoverableDatabaseId("") + .withRestorePointInTime(OffsetDateTime.parse("1970-01-01T00:00:00.000Z")) + .withCreateMode(CreateMode.fromString("")) + .withCreationDate(OffsetDateTime.parse("1970-01-01T00:00:00.000Z")) + .apply(); } // Use "Map.of" if available @@ -5824,7 +4325,7 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInne */ public final class WorkspaceAadAdminsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateWorkspaceAadAdmin.json */ /** @@ -5854,7 +4355,7 @@ public final class WorkspaceAadAdminsCreateOrUpdateSamples { public final class WorkspaceAadAdminsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteWorkspaceAadAdmin.json */ /** * Sample code: Delete workspace active directory admin. @@ -5876,7 +4377,7 @@ public final class WorkspaceAadAdminsDeleteSamples { public final class WorkspaceAadAdminsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetWorkspaceAadAdmin.json */ /** * Sample code: Get workspace active directory admin. @@ -5893,15 +4394,15 @@ public final class WorkspaceAadAdminsGetSamples { ```java import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; /** * Samples for WorkspaceManagedIdentitySqlControlSettings CreateOrUpdate. */ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateManagedIdentitySqlControlSettings.json */ /** @@ -5915,7 +4416,8 @@ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSampl .createOrUpdate("resourceGroup1", "workspace1", new ManagedIdentitySqlControlSettingsModelInner().withGrantSqlControlToManagedIdentity( new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED)), + .withDesiredState( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED)), com.azure.core.util.Context.NONE); } } @@ -5929,7 +4431,7 @@ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSampl */ public final class WorkspaceManagedIdentitySqlControlSettingsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetManagedIdentitySqlControlSettings.json */ /** @@ -5957,7 +4459,7 @@ import java.util.UUID; */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithAllParameters.json */ /** @@ -5985,7 +4487,7 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSa } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithMinParameters.json */ /** @@ -6017,7 +4519,7 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerBlobAuditingSettings.json */ /** @@ -6042,7 +4544,7 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples { */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerBlobAuditingSettings.json */ /** @@ -6058,83 +4560,6 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceS } ``` -### WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings_Get - -```java -/** - * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Get. - */ -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json - */ - /** - * Sample code: Get workspace managed sql server dedicated sql minimal tls settings. - * - * @param manager Entry point to SynapseManager. - */ - public static void getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .getWithResponse("workspace-6852", "workspace-2080", "default", com.azure.core.util.Context.NONE); - } -} -``` - -### WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings_List - -```java -/** - * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings List. - */ -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json - */ - /** - * Sample code: List dedicated sql minimal tls settings of the workspace managed sql server. - * - * @param manager Entry point to SynapseManager. - */ - public static void listDedicatedSqlMinimalTlsSettingsOfTheWorkspaceManagedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .list("workspace-6852", "workspace-2080", com.azure.core.util.Context.NONE); - } -} -``` - -### WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings_Update - -```java -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; - -/** - * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Update. - */ -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json - */ - /** - * Sample code: Update tls version of the workspace managed sql server. - * - * @param manager Entry point to SynapseManager. - */ - public static void - updateTlsVersionOfTheWorkspaceManagedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .update("workspace-6852", "workspace-2080", DedicatedSqlMinimalTlsSettingsName.DEFAULT, - new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"), - com.azure.core.util.Context.NONE); - } -} -``` - ### WorkspaceManagedSqlServerEncryptionProtector_CreateOrUpdate ```java @@ -6147,7 +4572,7 @@ import com.azure.resourcemanager.synapse.models.ServerKeyType; */ public final class WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateKeyVault.json */ /** @@ -6168,7 +4593,7 @@ public final class WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSam } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateServiceManaged.json */ /** @@ -6197,7 +4622,7 @@ import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; */ public final class WorkspaceManagedSqlServerEncryptionProtectorGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerEncryptionProtector.json */ /** @@ -6222,7 +4647,7 @@ public final class WorkspaceManagedSqlServerEncryptionProtectorGetSamples { */ public final class WorkspaceManagedSqlServerEncryptionProtectorListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerEncryptionProtectorList.json */ /** @@ -6248,7 +4673,7 @@ import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; */ public final class WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerEncryptionProtectorRevalidate.json */ /** @@ -6276,7 +4701,7 @@ import java.util.UUID; */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateWorkspaceManagedSqlServerExtendedBlobAuditingSettingsWithAllParameters.json */ /** @@ -6305,7 +4730,7 @@ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOr } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateWorkspaceManagedSqlServerExetendedBlobAuditingSettingsWithMinParameters.json */ /** @@ -6338,7 +4763,7 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlExtendedServerBlobAuditingSettings.json */ /** @@ -6363,7 +4788,7 @@ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSampl */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerExtendedBlobAuditingSettings.json */ /** @@ -6387,7 +4812,7 @@ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWo */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerRecoverableSqlPool.json */ /** @@ -6410,7 +4835,7 @@ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples { */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerRecoverableSqlPool.json */ /** @@ -6431,13 +4856,14 @@ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples { import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGenerated; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; import com.azure.resourcemanager.synapse.models.ServerSecurityAlertPolicy; +import java.util.Arrays; /** * Samples for WorkspaceManagedSqlServerSecurityAlertPolicy CreateOrUpdate. */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerSecurityAlertWithAllParameters.json */ /** @@ -6453,13 +4879,18 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSam .getValue(); resource.update() .withState(SecurityAlertPolicyState.ENABLED) + .withDisabledAlerts(Arrays.asList("Access_Anomaly", "Usage_Anomaly")) + .withEmailAddresses(Arrays.asList("testSecurityAlert@microsoft.com")) + .withEmailAccountAdmins(true) + .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") + .withRetentionDays(5) .apply(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerSecurityAlertCreateWithMinParameters.json */ /** @@ -6475,6 +4906,8 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSam .getValue(); resource.update() .withState(SecurityAlertPolicyState.DISABLED) + .withEmailAccountAdmins(true) + .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .apply(); @@ -6492,7 +4925,7 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGener */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerSecurityAlertPolicy.json */ /** @@ -6517,7 +4950,7 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples { */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerSecurityAlertPolicies.json */ /** @@ -6541,7 +4974,7 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyListSamples { */ public final class WorkspaceManagedSqlServerUsagesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerUsages.json */ /** @@ -6568,7 +5001,7 @@ import java.util.Arrays; */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateContainerSasKeyMin.json */ /** @@ -6589,7 +5022,7 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpda } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateStorageAccessKeyMin.json */ /** @@ -6610,7 +5043,7 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpda } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * PutWorkspaceManagedSqlServerVulnerabilityAssessmentWithAllParameters.json */ /** @@ -6644,7 +5077,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteWorkspaceManagedSqlServerVulnerabilityAssessment.json */ /** @@ -6671,7 +5104,7 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerVulnerabilityAssessment.json */ /** @@ -6696,7 +5129,7 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples { */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerVulnerabilityAssessmentPolicies.json */ /** @@ -6722,7 +5155,7 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInne */ public final class WorkspaceSqlAadAdminsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateWorkspaceAadAdmin.json */ /** @@ -6752,7 +5185,7 @@ public final class WorkspaceSqlAadAdminsCreateOrUpdateSamples { public final class WorkspaceSqlAadAdminsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteWorkspaceAadAdmin.json */ /** * Sample code: Delete workspace active directory admin. @@ -6774,7 +5207,7 @@ public final class WorkspaceSqlAadAdminsDeleteSamples { public final class WorkspaceSqlAadAdminsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetWorkspaceAadAdmin.json */ /** * Sample code: Get workspace active directory admin. @@ -6791,16 +5224,13 @@ public final class WorkspaceSqlAadAdminsGetSamples { ### Workspaces_CreateOrUpdate ```java -import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; import com.azure.resourcemanager.synapse.models.CustomerManagedKeyDetails; import com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails; import com.azure.resourcemanager.synapse.models.EncryptionDetails; -import com.azure.resourcemanager.synapse.models.KekIdentityProperties; import com.azure.resourcemanager.synapse.models.ManagedIdentity; import com.azure.resourcemanager.synapse.models.ManagedVirtualNetworkSettings; import com.azure.resourcemanager.synapse.models.PurviewConfiguration; import com.azure.resourcemanager.synapse.models.ResourceIdentityType; -import com.azure.resourcemanager.synapse.models.UserAssignedManagedIdentity; import com.azure.resourcemanager.synapse.models.WorkspaceKeyDetails; import com.azure.resourcemanager.synapse.models.WorkspacePublicNetworkAccess; import com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration; @@ -6814,7 +5244,7 @@ import java.util.Map; public final class WorkspacesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateOrUpdateWorkspace.json */ /** * Sample code: Create or update a workspace. @@ -6827,10 +5257,7 @@ public final class WorkspacesCreateOrUpdateSamples { .withRegion("East US") .withExistingResourceGroup("resourceGroup1") .withTags(mapOf("key", "fakeTokenPlaceholder")) - .withIdentity(new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1", - new UserAssignedManagedIdentity()))) + .withIdentity(new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) .withDefaultDataLakeStorage( new DataLakeStorageAccountDetails().withAccountUrl("https://accountname.dfs.core.windows.net") .withFilesystem("default")) @@ -6839,10 +5266,7 @@ public final class WorkspacesCreateOrUpdateSamples { .withSqlAdministratorLogin("login") .withManagedVirtualNetwork("default") .withEncryption(new EncryptionDetails().withCmk(new CustomerManagedKeyDetails() - .withKey(new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")) - .withKekIdentity(new KekIdentityProperties().withUserAssignedIdentity( - "/subscriptions/b64d7b94-73e7-4d36-94b2-7764ea3fd74a/resourcegroups/SynapseCI/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1") - .withUseSystemAssignedIdentity(false)))) + .withKey(new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")))) .withManagedVirtualNetworkSettings(new ManagedVirtualNetworkSettings().withPreventDataExfiltration(false) .withLinkedAccessCheckOnTargetResource(false) .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) @@ -6857,8 +5281,6 @@ public final class WorkspacesCreateOrUpdateSamples { .withPurviewConfiguration(new PurviewConfiguration().withPurviewResourceId( "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) .withPublicNetworkAccess(WorkspacePublicNetworkAccess.ENABLED) - .withCspWorkspaceAdminProperties(new CspWorkspaceAdminProperties() - .withInitialWorkspaceAdminObjectId("6c20646f-8050-49ec-b3b1-80a0e58e454d")) .create(); } @@ -6885,7 +5307,7 @@ public final class WorkspacesCreateOrUpdateSamples { public final class WorkspacesDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteWorkspace.json */ /** * Sample code: Delete a workspace. @@ -6907,7 +5329,7 @@ public final class WorkspacesDeleteSamples { public final class WorkspacesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetWorkspace.json */ /** * Sample code: Get a workspace. @@ -6930,7 +5352,7 @@ public final class WorkspacesGetByResourceGroupSamples { public final class WorkspacesListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInSubscription. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListWorkspacesInSubscription. * json */ /** @@ -6953,7 +5375,7 @@ public final class WorkspacesListSamples { public final class WorkspacesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInResourceGroup + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListWorkspacesInResourceGroup * .json */ /** @@ -6990,7 +5412,7 @@ import java.util.Map; public final class WorkspacesUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/UpdateWorkspace.json */ /** * Sample code: Update a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/pom.xml b/sdk/synapse/azure-resourcemanager-synapse/pom.xml index cc642ebb79e5..ebc2ce25094b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/pom.xml +++ b/sdk/synapse/azure-resourcemanager-synapse/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-synapse - 1.0.0-beta.9 + 1.0.0 jar Microsoft Azure SDK for Synapse Management - This package contains Microsoft Azure SDK for Synapse Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Synapse Analytics Management Client. Package tag package-composite-v2. + This package contains Microsoft Azure SDK for Synapse Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Synapse Analytics Management Client. Package tag package-2021-03. https://github.com/Azure/azure-sdk-for-java @@ -45,7 +45,6 @@ UTF-8 0 0 - true false diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java index f1c43b58a36e..de8c3f9cf72d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java @@ -11,6 +11,7 @@ import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.AddHeadersFromContextPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; @@ -19,17 +20,14 @@ import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.SynapseManagementClient; -import com.azure.resourcemanager.synapse.implementation.AzureADOnlyAuthenticationsImpl; import com.azure.resourcemanager.synapse.implementation.BigDataPoolsImpl; import com.azure.resourcemanager.synapse.implementation.DataMaskingPoliciesImpl; import com.azure.resourcemanager.synapse.implementation.DataMaskingRulesImpl; import com.azure.resourcemanager.synapse.implementation.ExtendedSqlPoolBlobAuditingPoliciesImpl; -import com.azure.resourcemanager.synapse.implementation.GetsImpl; import com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeAuthKeysOperationsImpl; import com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeConnectionInfosImpl; import com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeCredentialsImpl; @@ -41,15 +39,6 @@ import com.azure.resourcemanager.synapse.implementation.IntegrationRuntimesImpl; import com.azure.resourcemanager.synapse.implementation.IpFirewallRulesImpl; import com.azure.resourcemanager.synapse.implementation.KeysImpl; -import com.azure.resourcemanager.synapse.implementation.KustoOperationsImpl; -import com.azure.resourcemanager.synapse.implementation.KustoPoolAttachedDatabaseConfigurationsImpl; -import com.azure.resourcemanager.synapse.implementation.KustoPoolChildResourcesImpl; -import com.azure.resourcemanager.synapse.implementation.KustoPoolDataConnectionsImpl; -import com.azure.resourcemanager.synapse.implementation.KustoPoolDatabasePrincipalAssignmentsImpl; -import com.azure.resourcemanager.synapse.implementation.KustoPoolDatabasesImpl; -import com.azure.resourcemanager.synapse.implementation.KustoPoolPrincipalAssignmentsImpl; -import com.azure.resourcemanager.synapse.implementation.KustoPoolPrivateLinkResourcesOperationsImpl; -import com.azure.resourcemanager.synapse.implementation.KustoPoolsImpl; import com.azure.resourcemanager.synapse.implementation.LibrariesImpl; import com.azure.resourcemanager.synapse.implementation.LibrariesOperationsImpl; import com.azure.resourcemanager.synapse.implementation.OperationsImpl; @@ -57,10 +46,8 @@ import com.azure.resourcemanager.synapse.implementation.PrivateEndpointConnectionsPrivateLinkHubsImpl; import com.azure.resourcemanager.synapse.implementation.PrivateLinkHubPrivateLinkResourcesImpl; import com.azure.resourcemanager.synapse.implementation.PrivateLinkHubsImpl; -import com.azure.resourcemanager.synapse.implementation.PrivateLinkResourcesOperationsImpl; +import com.azure.resourcemanager.synapse.implementation.PrivateLinkResourcesImpl; import com.azure.resourcemanager.synapse.implementation.RestorableDroppedSqlPoolsImpl; -import com.azure.resourcemanager.synapse.implementation.SparkConfigurationsImpl; -import com.azure.resourcemanager.synapse.implementation.SparkConfigurationsOperationsImpl; import com.azure.resourcemanager.synapse.implementation.SqlPoolBlobAuditingPoliciesImpl; import com.azure.resourcemanager.synapse.implementation.SqlPoolColumnsImpl; import com.azure.resourcemanager.synapse.implementation.SqlPoolConnectionPoliciesImpl; @@ -91,7 +78,6 @@ import com.azure.resourcemanager.synapse.implementation.WorkspaceAadAdminsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedIdentitySqlControlSettingsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerBlobAuditingPoliciesImpl; -import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerEncryptionProtectorsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerRecoverableSqlPoolsImpl; @@ -100,12 +86,10 @@ import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceSqlAadAdminsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspacesImpl; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentications; import com.azure.resourcemanager.synapse.models.BigDataPools; import com.azure.resourcemanager.synapse.models.DataMaskingPolicies; import com.azure.resourcemanager.synapse.models.DataMaskingRules; import com.azure.resourcemanager.synapse.models.ExtendedSqlPoolBlobAuditingPolicies; -import com.azure.resourcemanager.synapse.models.Gets; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAuthKeysOperations; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeConnectionInfos; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeCredentials; @@ -117,15 +101,6 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimes; import com.azure.resourcemanager.synapse.models.IpFirewallRules; import com.azure.resourcemanager.synapse.models.Keys; -import com.azure.resourcemanager.synapse.models.KustoOperations; -import com.azure.resourcemanager.synapse.models.KustoPoolAttachedDatabaseConfigurations; -import com.azure.resourcemanager.synapse.models.KustoPoolChildResources; -import com.azure.resourcemanager.synapse.models.KustoPoolDataConnections; -import com.azure.resourcemanager.synapse.models.KustoPoolDatabasePrincipalAssignments; -import com.azure.resourcemanager.synapse.models.KustoPoolDatabases; -import com.azure.resourcemanager.synapse.models.KustoPoolPrincipalAssignments; -import com.azure.resourcemanager.synapse.models.KustoPoolPrivateLinkResourcesOperations; -import com.azure.resourcemanager.synapse.models.KustoPools; import com.azure.resourcemanager.synapse.models.Libraries; import com.azure.resourcemanager.synapse.models.LibrariesOperations; import com.azure.resourcemanager.synapse.models.Operations; @@ -133,10 +108,8 @@ import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionsPrivateLinkHubs; import com.azure.resourcemanager.synapse.models.PrivateLinkHubPrivateLinkResources; import com.azure.resourcemanager.synapse.models.PrivateLinkHubs; -import com.azure.resourcemanager.synapse.models.PrivateLinkResourcesOperations; +import com.azure.resourcemanager.synapse.models.PrivateLinkResources; import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPools; -import com.azure.resourcemanager.synapse.models.SparkConfigurations; -import com.azure.resourcemanager.synapse.models.SparkConfigurationsOperations; import com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicies; import com.azure.resourcemanager.synapse.models.SqlPoolColumns; import com.azure.resourcemanager.synapse.models.SqlPoolConnectionPolicies; @@ -166,7 +139,6 @@ import com.azure.resourcemanager.synapse.models.WorkspaceAadAdmins; import com.azure.resourcemanager.synapse.models.WorkspaceManagedIdentitySqlControlSettings; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerBlobAuditingPolicies; -import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerEncryptionProtectors; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerExtendedBlobAuditingPolicies; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerRecoverableSqlPools; @@ -187,17 +159,39 @@ * Azure Synapse Analytics Management Client. */ public final class SynapseManager { - private AzureADOnlyAuthentications azureADOnlyAuthentications; + private BigDataPools bigDataPools; private Operations operations; private IpFirewallRules ipFirewallRules; + private IntegrationRuntimes integrationRuntimes; + + private IntegrationRuntimeNodeIpAddressOperations integrationRuntimeNodeIpAddressOperations; + + private IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas; + + private IntegrationRuntimeNodes integrationRuntimeNodes; + + private IntegrationRuntimeCredentials integrationRuntimeCredentials; + + private IntegrationRuntimeConnectionInfos integrationRuntimeConnectionInfos; + + private IntegrationRuntimeAuthKeysOperations integrationRuntimeAuthKeysOperations; + + private IntegrationRuntimeMonitoringDatas integrationRuntimeMonitoringDatas; + + private IntegrationRuntimeStatusOperations integrationRuntimeStatusOperations; + private Keys keys; + private Libraries libraries; + + private LibrariesOperations librariesOperations; + private PrivateEndpointConnections privateEndpointConnections; - private PrivateLinkResourcesOperations privateLinkResourcesOperations; + private PrivateLinkResources privateLinkResources; private PrivateLinkHubPrivateLinkResources privateLinkHubPrivateLinkResources; @@ -277,8 +271,6 @@ public final class SynapseManager { private WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRecoverableSqlPools; - private WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; - private Workspaces workspaces; private WorkspaceAadAdmins workspaceAadAdmins; @@ -289,54 +281,6 @@ public final class SynapseManager { private RestorableDroppedSqlPools restorableDroppedSqlPools; - private BigDataPools bigDataPools; - - private Libraries libraries; - - private LibrariesOperations librariesOperations; - - private IntegrationRuntimes integrationRuntimes; - - private IntegrationRuntimeNodeIpAddressOperations integrationRuntimeNodeIpAddressOperations; - - private IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas; - - private IntegrationRuntimeNodes integrationRuntimeNodes; - - private IntegrationRuntimeCredentials integrationRuntimeCredentials; - - private IntegrationRuntimeConnectionInfos integrationRuntimeConnectionInfos; - - private IntegrationRuntimeAuthKeysOperations integrationRuntimeAuthKeysOperations; - - private IntegrationRuntimeMonitoringDatas integrationRuntimeMonitoringDatas; - - private IntegrationRuntimeStatusOperations integrationRuntimeStatusOperations; - - private Gets gets; - - private SparkConfigurations sparkConfigurations; - - private SparkConfigurationsOperations sparkConfigurationsOperations; - - private KustoOperations kustoOperations; - - private KustoPools kustoPools; - - private KustoPoolChildResources kustoPoolChildResources; - - private KustoPoolAttachedDatabaseConfigurations kustoPoolAttachedDatabaseConfigurations; - - private KustoPoolDatabases kustoPoolDatabases; - - private KustoPoolDataConnections kustoPoolDataConnections; - - private KustoPoolPrincipalAssignments kustoPoolPrincipalAssignments; - - private KustoPoolDatabasePrincipalAssignments kustoPoolDatabasePrincipalAssignments; - - private KustoPoolPrivateLinkResourcesOperations kustoPoolPrivateLinkResourcesOperations; - private final SynapseManagementClient clientObject; private SynapseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -501,7 +445,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof .append("-") .append("com.azure.resourcemanager.synapse") .append("/") - .append("1.0.0-beta.8"); + .append("1.0.0"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -534,7 +478,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); - policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); + policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies.addAll(this.policies.stream() .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .collect(Collectors.toList())); @@ -548,16 +492,15 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof } /** - * Gets the resource collection API of AzureADOnlyAuthentications. It manages AzureADOnlyAuthentication. + * Gets the resource collection API of BigDataPools. It manages BigDataPoolResourceInfo. * - * @return Resource collection API of AzureADOnlyAuthentications. + * @return Resource collection API of BigDataPools. */ - public AzureADOnlyAuthentications azureADOnlyAuthentications() { - if (this.azureADOnlyAuthentications == null) { - this.azureADOnlyAuthentications - = new AzureADOnlyAuthenticationsImpl(clientObject.getAzureADOnlyAuthentications(), this); + public BigDataPools bigDataPools() { + if (this.bigDataPools == null) { + this.bigDataPools = new BigDataPoolsImpl(clientObject.getBigDataPools(), this); } - return azureADOnlyAuthentications; + return bigDataPools; } /** @@ -584,6 +527,122 @@ public IpFirewallRules ipFirewallRules() { return ipFirewallRules; } + /** + * Gets the resource collection API of IntegrationRuntimes. It manages IntegrationRuntimeResource. + * + * @return Resource collection API of IntegrationRuntimes. + */ + public IntegrationRuntimes integrationRuntimes() { + if (this.integrationRuntimes == null) { + this.integrationRuntimes = new IntegrationRuntimesImpl(clientObject.getIntegrationRuntimes(), this); + } + return integrationRuntimes; + } + + /** + * Gets the resource collection API of IntegrationRuntimeNodeIpAddressOperations. + * + * @return Resource collection API of IntegrationRuntimeNodeIpAddressOperations. + */ + public IntegrationRuntimeNodeIpAddressOperations integrationRuntimeNodeIpAddressOperations() { + if (this.integrationRuntimeNodeIpAddressOperations == null) { + this.integrationRuntimeNodeIpAddressOperations = new IntegrationRuntimeNodeIpAddressOperationsImpl( + clientObject.getIntegrationRuntimeNodeIpAddressOperations(), this); + } + return integrationRuntimeNodeIpAddressOperations; + } + + /** + * Gets the resource collection API of IntegrationRuntimeObjectMetadatas. + * + * @return Resource collection API of IntegrationRuntimeObjectMetadatas. + */ + public IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas() { + if (this.integrationRuntimeObjectMetadatas == null) { + this.integrationRuntimeObjectMetadatas + = new IntegrationRuntimeObjectMetadatasImpl(clientObject.getIntegrationRuntimeObjectMetadatas(), this); + } + return integrationRuntimeObjectMetadatas; + } + + /** + * Gets the resource collection API of IntegrationRuntimeNodes. + * + * @return Resource collection API of IntegrationRuntimeNodes. + */ + public IntegrationRuntimeNodes integrationRuntimeNodes() { + if (this.integrationRuntimeNodes == null) { + this.integrationRuntimeNodes + = new IntegrationRuntimeNodesImpl(clientObject.getIntegrationRuntimeNodes(), this); + } + return integrationRuntimeNodes; + } + + /** + * Gets the resource collection API of IntegrationRuntimeCredentials. + * + * @return Resource collection API of IntegrationRuntimeCredentials. + */ + public IntegrationRuntimeCredentials integrationRuntimeCredentials() { + if (this.integrationRuntimeCredentials == null) { + this.integrationRuntimeCredentials + = new IntegrationRuntimeCredentialsImpl(clientObject.getIntegrationRuntimeCredentials(), this); + } + return integrationRuntimeCredentials; + } + + /** + * Gets the resource collection API of IntegrationRuntimeConnectionInfos. + * + * @return Resource collection API of IntegrationRuntimeConnectionInfos. + */ + public IntegrationRuntimeConnectionInfos integrationRuntimeConnectionInfos() { + if (this.integrationRuntimeConnectionInfos == null) { + this.integrationRuntimeConnectionInfos + = new IntegrationRuntimeConnectionInfosImpl(clientObject.getIntegrationRuntimeConnectionInfos(), this); + } + return integrationRuntimeConnectionInfos; + } + + /** + * Gets the resource collection API of IntegrationRuntimeAuthKeysOperations. + * + * @return Resource collection API of IntegrationRuntimeAuthKeysOperations. + */ + public IntegrationRuntimeAuthKeysOperations integrationRuntimeAuthKeysOperations() { + if (this.integrationRuntimeAuthKeysOperations == null) { + this.integrationRuntimeAuthKeysOperations = new IntegrationRuntimeAuthKeysOperationsImpl( + clientObject.getIntegrationRuntimeAuthKeysOperations(), this); + } + return integrationRuntimeAuthKeysOperations; + } + + /** + * Gets the resource collection API of IntegrationRuntimeMonitoringDatas. + * + * @return Resource collection API of IntegrationRuntimeMonitoringDatas. + */ + public IntegrationRuntimeMonitoringDatas integrationRuntimeMonitoringDatas() { + if (this.integrationRuntimeMonitoringDatas == null) { + this.integrationRuntimeMonitoringDatas + = new IntegrationRuntimeMonitoringDatasImpl(clientObject.getIntegrationRuntimeMonitoringDatas(), this); + } + return integrationRuntimeMonitoringDatas; + } + + /** + * Gets the resource collection API of IntegrationRuntimeStatusOperations. + * + * @return Resource collection API of IntegrationRuntimeStatusOperations. + */ + public IntegrationRuntimeStatusOperations integrationRuntimeStatusOperations() { + if (this.integrationRuntimeStatusOperations == null) { + this.integrationRuntimeStatusOperations = new IntegrationRuntimeStatusOperationsImpl( + clientObject.getIntegrationRuntimeStatusOperations(), this); + } + return integrationRuntimeStatusOperations; + } + /** * Gets the resource collection API of Keys. It manages Key. * @@ -596,6 +655,30 @@ public Keys keys() { return keys; } + /** + * Gets the resource collection API of Libraries. + * + * @return Resource collection API of Libraries. + */ + public Libraries libraries() { + if (this.libraries == null) { + this.libraries = new LibrariesImpl(clientObject.getLibraries(), this); + } + return libraries; + } + + /** + * Gets the resource collection API of LibrariesOperations. + * + * @return Resource collection API of LibrariesOperations. + */ + public LibrariesOperations librariesOperations() { + if (this.librariesOperations == null) { + this.librariesOperations = new LibrariesOperationsImpl(clientObject.getLibrariesOperations(), this); + } + return librariesOperations; + } + /** * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection. * @@ -610,16 +693,15 @@ public PrivateEndpointConnections privateEndpointConnections() { } /** - * Gets the resource collection API of PrivateLinkResourcesOperations. + * Gets the resource collection API of PrivateLinkResources. * - * @return Resource collection API of PrivateLinkResourcesOperations. + * @return Resource collection API of PrivateLinkResources. */ - public PrivateLinkResourcesOperations privateLinkResourcesOperations() { - if (this.privateLinkResourcesOperations == null) { - this.privateLinkResourcesOperations - = new PrivateLinkResourcesOperationsImpl(clientObject.getPrivateLinkResourcesOperations(), this); + public PrivateLinkResources privateLinkResources() { + if (this.privateLinkResources == null) { + this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this); } - return privateLinkResourcesOperations; + return privateLinkResources; } /** @@ -1128,21 +1210,6 @@ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRec return workspaceManagedSqlServerRecoverableSqlPools; } - /** - * Gets the resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. - * - * @return Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. - */ - public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings - workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() { - if (this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings == null) { - this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings - = new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl( - clientObject.getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings(), this); - } - return workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; - } - /** * Gets the resource collection API of Workspaces. It manages Workspace. * @@ -1205,311 +1272,6 @@ public RestorableDroppedSqlPools restorableDroppedSqlPools() { return restorableDroppedSqlPools; } - /** - * Gets the resource collection API of BigDataPools. It manages BigDataPoolResourceInfo. - * - * @return Resource collection API of BigDataPools. - */ - public BigDataPools bigDataPools() { - if (this.bigDataPools == null) { - this.bigDataPools = new BigDataPoolsImpl(clientObject.getBigDataPools(), this); - } - return bigDataPools; - } - - /** - * Gets the resource collection API of Libraries. - * - * @return Resource collection API of Libraries. - */ - public Libraries libraries() { - if (this.libraries == null) { - this.libraries = new LibrariesImpl(clientObject.getLibraries(), this); - } - return libraries; - } - - /** - * Gets the resource collection API of LibrariesOperations. - * - * @return Resource collection API of LibrariesOperations. - */ - public LibrariesOperations librariesOperations() { - if (this.librariesOperations == null) { - this.librariesOperations = new LibrariesOperationsImpl(clientObject.getLibrariesOperations(), this); - } - return librariesOperations; - } - - /** - * Gets the resource collection API of IntegrationRuntimes. It manages IntegrationRuntimeResource. - * - * @return Resource collection API of IntegrationRuntimes. - */ - public IntegrationRuntimes integrationRuntimes() { - if (this.integrationRuntimes == null) { - this.integrationRuntimes = new IntegrationRuntimesImpl(clientObject.getIntegrationRuntimes(), this); - } - return integrationRuntimes; - } - - /** - * Gets the resource collection API of IntegrationRuntimeNodeIpAddressOperations. - * - * @return Resource collection API of IntegrationRuntimeNodeIpAddressOperations. - */ - public IntegrationRuntimeNodeIpAddressOperations integrationRuntimeNodeIpAddressOperations() { - if (this.integrationRuntimeNodeIpAddressOperations == null) { - this.integrationRuntimeNodeIpAddressOperations = new IntegrationRuntimeNodeIpAddressOperationsImpl( - clientObject.getIntegrationRuntimeNodeIpAddressOperations(), this); - } - return integrationRuntimeNodeIpAddressOperations; - } - - /** - * Gets the resource collection API of IntegrationRuntimeObjectMetadatas. - * - * @return Resource collection API of IntegrationRuntimeObjectMetadatas. - */ - public IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas() { - if (this.integrationRuntimeObjectMetadatas == null) { - this.integrationRuntimeObjectMetadatas - = new IntegrationRuntimeObjectMetadatasImpl(clientObject.getIntegrationRuntimeObjectMetadatas(), this); - } - return integrationRuntimeObjectMetadatas; - } - - /** - * Gets the resource collection API of IntegrationRuntimeNodes. - * - * @return Resource collection API of IntegrationRuntimeNodes. - */ - public IntegrationRuntimeNodes integrationRuntimeNodes() { - if (this.integrationRuntimeNodes == null) { - this.integrationRuntimeNodes - = new IntegrationRuntimeNodesImpl(clientObject.getIntegrationRuntimeNodes(), this); - } - return integrationRuntimeNodes; - } - - /** - * Gets the resource collection API of IntegrationRuntimeCredentials. - * - * @return Resource collection API of IntegrationRuntimeCredentials. - */ - public IntegrationRuntimeCredentials integrationRuntimeCredentials() { - if (this.integrationRuntimeCredentials == null) { - this.integrationRuntimeCredentials - = new IntegrationRuntimeCredentialsImpl(clientObject.getIntegrationRuntimeCredentials(), this); - } - return integrationRuntimeCredentials; - } - - /** - * Gets the resource collection API of IntegrationRuntimeConnectionInfos. - * - * @return Resource collection API of IntegrationRuntimeConnectionInfos. - */ - public IntegrationRuntimeConnectionInfos integrationRuntimeConnectionInfos() { - if (this.integrationRuntimeConnectionInfos == null) { - this.integrationRuntimeConnectionInfos - = new IntegrationRuntimeConnectionInfosImpl(clientObject.getIntegrationRuntimeConnectionInfos(), this); - } - return integrationRuntimeConnectionInfos; - } - - /** - * Gets the resource collection API of IntegrationRuntimeAuthKeysOperations. - * - * @return Resource collection API of IntegrationRuntimeAuthKeysOperations. - */ - public IntegrationRuntimeAuthKeysOperations integrationRuntimeAuthKeysOperations() { - if (this.integrationRuntimeAuthKeysOperations == null) { - this.integrationRuntimeAuthKeysOperations = new IntegrationRuntimeAuthKeysOperationsImpl( - clientObject.getIntegrationRuntimeAuthKeysOperations(), this); - } - return integrationRuntimeAuthKeysOperations; - } - - /** - * Gets the resource collection API of IntegrationRuntimeMonitoringDatas. - * - * @return Resource collection API of IntegrationRuntimeMonitoringDatas. - */ - public IntegrationRuntimeMonitoringDatas integrationRuntimeMonitoringDatas() { - if (this.integrationRuntimeMonitoringDatas == null) { - this.integrationRuntimeMonitoringDatas - = new IntegrationRuntimeMonitoringDatasImpl(clientObject.getIntegrationRuntimeMonitoringDatas(), this); - } - return integrationRuntimeMonitoringDatas; - } - - /** - * Gets the resource collection API of IntegrationRuntimeStatusOperations. - * - * @return Resource collection API of IntegrationRuntimeStatusOperations. - */ - public IntegrationRuntimeStatusOperations integrationRuntimeStatusOperations() { - if (this.integrationRuntimeStatusOperations == null) { - this.integrationRuntimeStatusOperations = new IntegrationRuntimeStatusOperationsImpl( - clientObject.getIntegrationRuntimeStatusOperations(), this); - } - return integrationRuntimeStatusOperations; - } - - /** - * Gets the resource collection API of Gets. - * - * @return Resource collection API of Gets. - */ - public Gets gets() { - if (this.gets == null) { - this.gets = new GetsImpl(clientObject.getGets(), this); - } - return gets; - } - - /** - * Gets the resource collection API of SparkConfigurations. - * - * @return Resource collection API of SparkConfigurations. - */ - public SparkConfigurations sparkConfigurations() { - if (this.sparkConfigurations == null) { - this.sparkConfigurations = new SparkConfigurationsImpl(clientObject.getSparkConfigurations(), this); - } - return sparkConfigurations; - } - - /** - * Gets the resource collection API of SparkConfigurationsOperations. - * - * @return Resource collection API of SparkConfigurationsOperations. - */ - public SparkConfigurationsOperations sparkConfigurationsOperations() { - if (this.sparkConfigurationsOperations == null) { - this.sparkConfigurationsOperations - = new SparkConfigurationsOperationsImpl(clientObject.getSparkConfigurationsOperations(), this); - } - return sparkConfigurationsOperations; - } - - /** - * Gets the resource collection API of KustoOperations. - * - * @return Resource collection API of KustoOperations. - */ - public KustoOperations kustoOperations() { - if (this.kustoOperations == null) { - this.kustoOperations = new KustoOperationsImpl(clientObject.getKustoOperations(), this); - } - return kustoOperations; - } - - /** - * Gets the resource collection API of KustoPools. It manages KustoPool. - * - * @return Resource collection API of KustoPools. - */ - public KustoPools kustoPools() { - if (this.kustoPools == null) { - this.kustoPools = new KustoPoolsImpl(clientObject.getKustoPools(), this); - } - return kustoPools; - } - - /** - * Gets the resource collection API of KustoPoolChildResources. - * - * @return Resource collection API of KustoPoolChildResources. - */ - public KustoPoolChildResources kustoPoolChildResources() { - if (this.kustoPoolChildResources == null) { - this.kustoPoolChildResources - = new KustoPoolChildResourcesImpl(clientObject.getKustoPoolChildResources(), this); - } - return kustoPoolChildResources; - } - - /** - * Gets the resource collection API of KustoPoolAttachedDatabaseConfigurations. It manages - * AttachedDatabaseConfiguration. - * - * @return Resource collection API of KustoPoolAttachedDatabaseConfigurations. - */ - public KustoPoolAttachedDatabaseConfigurations kustoPoolAttachedDatabaseConfigurations() { - if (this.kustoPoolAttachedDatabaseConfigurations == null) { - this.kustoPoolAttachedDatabaseConfigurations = new KustoPoolAttachedDatabaseConfigurationsImpl( - clientObject.getKustoPoolAttachedDatabaseConfigurations(), this); - } - return kustoPoolAttachedDatabaseConfigurations; - } - - /** - * Gets the resource collection API of KustoPoolDatabases. - * - * @return Resource collection API of KustoPoolDatabases. - */ - public KustoPoolDatabases kustoPoolDatabases() { - if (this.kustoPoolDatabases == null) { - this.kustoPoolDatabases = new KustoPoolDatabasesImpl(clientObject.getKustoPoolDatabases(), this); - } - return kustoPoolDatabases; - } - - /** - * Gets the resource collection API of KustoPoolDataConnections. - * - * @return Resource collection API of KustoPoolDataConnections. - */ - public KustoPoolDataConnections kustoPoolDataConnections() { - if (this.kustoPoolDataConnections == null) { - this.kustoPoolDataConnections - = new KustoPoolDataConnectionsImpl(clientObject.getKustoPoolDataConnections(), this); - } - return kustoPoolDataConnections; - } - - /** - * Gets the resource collection API of KustoPoolPrincipalAssignments. It manages ClusterPrincipalAssignment. - * - * @return Resource collection API of KustoPoolPrincipalAssignments. - */ - public KustoPoolPrincipalAssignments kustoPoolPrincipalAssignments() { - if (this.kustoPoolPrincipalAssignments == null) { - this.kustoPoolPrincipalAssignments - = new KustoPoolPrincipalAssignmentsImpl(clientObject.getKustoPoolPrincipalAssignments(), this); - } - return kustoPoolPrincipalAssignments; - } - - /** - * Gets the resource collection API of KustoPoolDatabasePrincipalAssignments. It manages - * DatabasePrincipalAssignment. - * - * @return Resource collection API of KustoPoolDatabasePrincipalAssignments. - */ - public KustoPoolDatabasePrincipalAssignments kustoPoolDatabasePrincipalAssignments() { - if (this.kustoPoolDatabasePrincipalAssignments == null) { - this.kustoPoolDatabasePrincipalAssignments = new KustoPoolDatabasePrincipalAssignmentsImpl( - clientObject.getKustoPoolDatabasePrincipalAssignments(), this); - } - return kustoPoolDatabasePrincipalAssignments; - } - - /** - * Gets the resource collection API of KustoPoolPrivateLinkResourcesOperations. - * - * @return Resource collection API of KustoPoolPrivateLinkResourcesOperations. - */ - public KustoPoolPrivateLinkResourcesOperations kustoPoolPrivateLinkResourcesOperations() { - if (this.kustoPoolPrivateLinkResourcesOperations == null) { - this.kustoPoolPrivateLinkResourcesOperations = new KustoPoolPrivateLinkResourcesOperationsImpl( - clientObject.getKustoPoolPrivateLinkResourcesOperations(), this); - } - return kustoPoolPrivateLinkResourcesOperations; - } - /** * Gets wrapped service client SynapseManagementClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java deleted file mode 100644 index 144d212ee017..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; - -/** - * An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. - */ -public interface AzureADOnlyAuthenticationsClient { - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context); - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AzureADOnlyAuthenticationInner get(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo); - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context); - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AzureADOnlyAuthenticationInner create(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo); - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AzureADOnlyAuthenticationInner create(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context); - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String workspaceName); - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String workspaceName, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java index 37b2cb6bb786..29f016bbc494 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java @@ -178,11 +178,11 @@ BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, String wor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of big Data pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BigDataPoolResourceInfoInner> - beginDelete(String resourceGroupName, String workspaceName, String bigDataPoolName); + SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + String bigDataPoolName); /** * Delete a Big Data pool. @@ -196,11 +196,11 @@ BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, String wor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of big Data pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BigDataPoolResourceInfoInner> - beginDelete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context); /** * Delete a Big Data pool. @@ -213,10 +213,10 @@ BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, String wor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner delete(String resourceGroupName, String workspaceName, String bigDataPoolName); + Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName); /** * Delete a Big Data pool. @@ -230,11 +230,10 @@ BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, String wor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner delete(String resourceGroupName, String workspaceName, String bigDataPoolName, - Context context); + Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); /** * List the Big Data pools in a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/GetsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/GetsClient.java deleted file mode 100644 index ab8e28671314..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/GetsClient.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; - -/** - * An instance of this class provides access to all the operations defined in GetsClient. - */ -public interface GetsClient { - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response integrationRuntimeStartWithResponse(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context); - - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeOperationStatusInner integrationRuntimeStart(String resourceGroupName, String workspaceName, - String integrationRuntimeName, String integrationRuntimeOperationId); - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response integrationRuntimeStopWithResponse(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context); - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop(String resourceGroupName, String workspaceName, - String integrationRuntimeName, String integrationRuntimeOperationId); - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response integrationRuntimeEnableInteractivequeryWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId, Context context); - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeEnableinteractivequeryInner integrationRuntimeEnableInteractivequery(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java index 49879b7f383b..00fe0085bc18 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java @@ -123,11 +123,10 @@ IpFirewallRuleInfoInner createOrUpdate(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of iP firewall rule. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IpFirewallRuleInfoInner> beginDelete(String resourceGroupName, - String workspaceName, String ruleName); + SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, String ruleName); /** * Deletes a firewall rule. @@ -139,11 +138,11 @@ SyncPoller, IpFirewallRuleInfoInner> beginDe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of iP firewall rule. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IpFirewallRuleInfoInner> beginDelete(String resourceGroupName, - String workspaceName, String ruleName, Context context); + SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, String ruleName, + Context context); /** * Deletes a firewall rule. @@ -154,10 +153,10 @@ SyncPoller, IpFirewallRuleInfoInner> beginDe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - IpFirewallRuleInfoInner delete(String resourceGroupName, String workspaceName, String ruleName); + Object delete(String resourceGroupName, String workspaceName, String ruleName); /** * Deletes a firewall rule. @@ -169,10 +168,10 @@ SyncPoller, IpFirewallRuleInfoInner> beginDe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - IpFirewallRuleInfoInner delete(String resourceGroupName, String workspaceName, String ruleName, Context context); + Object delete(String resourceGroupName, String workspaceName, String ruleName, Context context); /** * Get a firewall rule. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java deleted file mode 100644 index fa378ba49d7f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; - -/** - * An instance of this class provides access to all the operations defined in KustoOperationsClient. - */ -public interface KustoOperationsClient { - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java deleted file mode 100644 index ad3e49ef4def..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java +++ /dev/null @@ -1,224 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; - -/** - * An instance of this class provides access to all the operations defined in - * KustoPoolAttachedDatabaseConfigurationsClient. - */ -public interface KustoPoolAttachedDatabaseConfigurationsClient { - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, Context context); - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDatabaseConfigurationInner get(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName); - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters); - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, Context context); - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDatabaseConfigurationInner createOrUpdate(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters); - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDatabaseConfigurationInner createOrUpdate(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, Context context); - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName); - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, Context context); - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName); - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java deleted file mode 100644 index 664b3284a903..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolChildResourcesClient. - */ -public interface KustoPoolChildResourcesClient { - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context); - - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, - DatabaseCheckNameRequest resourceName); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java deleted file mode 100644 index bebb03b82be2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java +++ /dev/null @@ -1,418 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. - */ -public interface KustoPoolDataConnectionsClient { - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName, Context context); - - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionCheckNameRequest dataConnectionName); - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionValidationListResultInner> - beginDataConnectionValidation(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionValidationInner parameters); - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionValidationListResultInner> - beginDataConnectionValidation(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionValidationInner parameters, Context context); - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionValidationListResultInner dataConnectionValidation(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionValidationInner parameters); - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionValidationListResultInner dataConnectionValidation(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context); - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByDatabase(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName); - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByDatabase(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, Context context); - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, Context context); - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName); - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionInner> beginCreateOrUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters); - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionInner> beginCreateOrUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters, Context context); - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters); - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context); - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionInner> beginUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters); - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionInner> beginUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters, Context context); - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner update(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters); - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner update(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context); - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName); - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, Context context); - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName); - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java deleted file mode 100644 index 8fc385c2cd45..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java +++ /dev/null @@ -1,273 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; - -/** - * An instance of this class provides access to all the operations defined in - * KustoPoolDatabasePrincipalAssignmentsClient. - */ -public interface KustoPoolDatabasePrincipalAssignmentsClient { - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context); - - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, String databaseName, - String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName); - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, Context context); - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, Context context); - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatabasePrincipalAssignmentInner get(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName); - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, DatabasePrincipalAssignmentInner parameters); - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, DatabasePrincipalAssignmentInner parameters, Context context); - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatabasePrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters); - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatabasePrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters, - Context context); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName, Context context); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java deleted file mode 100644 index 0b343a1e0344..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. - */ -public interface KustoPoolDatabasesClient { - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName); - - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName, - Context context); - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, Context context); - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters); - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context); - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters); - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters, Context context); - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DatabaseInner parameters); - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DatabaseInner parameters, Context context); - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DatabaseInner parameters); - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DatabaseInner parameters, Context context); - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName); - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, Context context); - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java deleted file mode 100644 index 6e5e5720aaa1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. - */ -public interface KustoPoolPrincipalAssignmentsClient { - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context); - - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName); - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, Context context); - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ClusterPrincipalAssignmentInner get(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName); - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, - ClusterPrincipalAssignmentInner parameters); - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, Context context); - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ClusterPrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters); - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ClusterPrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters, - Context context); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, Context context); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, - Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java deleted file mode 100644 index 2efc5f591497..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; - -/** - * An instance of this class provides access to all the operations defined in - * KustoPoolPrivateLinkResourcesOperationsClient. - */ -public interface KustoPoolPrivateLinkResourcesOperationsClient { - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String workspaceName, - String kustoPoolName); - - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String workspaceName, - String kustoPoolName, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java deleted file mode 100644 index fc35fb3a11b9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java +++ /dev/null @@ -1,742 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -import com.azure.resourcemanager.synapse.models.KustoPoolUpdate; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolsClient. - */ -public interface KustoPoolsClient { - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse(String location, - KustoPoolCheckNameRequest kustoPoolName, Context context); - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName); - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response listByWorkspaceWithResponse(String resourceGroupName, String workspaceName, - Context context); - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolListResultInner listByWorkspace(String resourceGroupName, String workspaceName); - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String workspaceName, String kustoPoolName, String resourceGroupName, - Context context); - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner get(String workspaceName, String kustoPoolName, String resourceGroupName); - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KustoPoolInner> beginCreateOrUpdate(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters); - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KustoPoolInner> beginCreateOrUpdate(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, - Context context); - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner createOrUpdate(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolInner parameters); - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner createOrUpdate(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context); - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KustoPoolInner> beginUpdate(String workspaceName, String resourceGroupName, - String kustoPoolName, KustoPoolUpdate parameters); - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KustoPoolInner> beginUpdate(String workspaceName, String resourceGroupName, - String kustoPoolName, KustoPoolUpdate parameters, String ifMatch, Context context); - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner update(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolUpdate parameters); - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner update(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolUpdate parameters, String ifMatch, Context context); - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String workspaceName, String resourceGroupName, - String kustoPoolName); - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String workspaceName, String resourceGroupName, String kustoPoolName, - Context context); - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceName, String resourceGroupName, String kustoPoolName); - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceName, String resourceGroupName, String kustoPoolName, Context context); - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, String resourceGroupName); - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, String resourceGroupName, - Context context); - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String workspaceName, String kustoPoolName, String resourceGroupName); - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String workspaceName, String kustoPoolName, String resourceGroupName, Context context); - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, String resourceGroupName); - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, String resourceGroupName, - Context context); - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void start(String workspaceName, String kustoPoolName, String resourceGroupName); - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void start(String workspaceName, String kustoPoolName, String resourceGroupName, Context context); - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginAddLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd); - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginAddLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Context context); - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd); - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, Context context); - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRemoveLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove); - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRemoveLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Context context); - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove); - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, Context context); - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDetachFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove); - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDetachFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context); - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove); - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java index 45940a9b5139..fd496a7ae70a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner; @@ -44,35 +43,4 @@ PagedIterable list(String resou @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String privateLinkHubName, Context context); - - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, - String privateLinkHubName, String privateEndpointConnectionName, Context context); - - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionForPrivateLinkHubInner get(String resourceGroupName, String privateLinkHubName, - String privateEndpointConnectionName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java similarity index 97% rename from sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java rename to sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java index 53365774fb9d..e158424b45b0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java @@ -12,9 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; /** - * An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. + * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ -public interface PrivateLinkResourcesOperationsClient { +public interface PrivateLinkResourcesClient { /** * Private Link Resources * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsClient.java deleted file mode 100644 index b3444e9ca0b6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsClient.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; - -/** - * An instance of this class provides access to all the operations defined in SparkConfigurationsClient. - */ -public interface SparkConfigurationsClient { - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String sparkConfigurationName, - String workspaceName, Context context); - - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SparkConfigurationResourceInner get(String resourceGroupName, String sparkConfigurationName, String workspaceName); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java deleted file mode 100644 index 603d47b7b6b0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; - -/** - * An instance of this class provides access to all the operations defined in SparkConfigurationsOperationsClient. - */ -public interface SparkConfigurationsOperationsClient { - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); - - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, - Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMetadataSyncConfigsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMetadataSyncConfigsClient.java index 276acb66af4b..e74598993a4c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMetadataSyncConfigsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMetadataSyncConfigsClient.java @@ -25,8 +25,6 @@ public interface SqlPoolMetadataSyncConfigsClient { * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ @@ -44,8 +42,6 @@ Response getWithResponse(String resourceGroupName, Stri * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool. */ @@ -64,8 +60,6 @@ Response getWithResponse(String resourceGroupName, Stri * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response}. */ @@ -84,8 +78,6 @@ Response createWithResponse(String resourceGroupName, S * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationResultsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationResultsClient.java index c289a4173740..716d96406f64 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationResultsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationResultsClient.java @@ -6,33 +6,13 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; -import com.azure.core.management.polling.PollResult; +import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; /** * An instance of this class provides access to all the operations defined in SqlPoolOperationResultsClient. */ public interface SqlPoolOperationResultsClient { - /** - * Get SQL pool operation status - * - * Get the status of a SQL pool operation. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the status of a SQL pool operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginGetLocationHeaderResult(String resourceGroupName, - String workspaceName, String sqlPoolName, String operationId); - /** * Get SQL pool operation status * @@ -46,29 +26,11 @@ SyncPoller, SqlPoolInner> beginGetLocationHeaderResult( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the status of a SQL pool operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginGetLocationHeaderResult(String resourceGroupName, - String workspaceName, String sqlPoolName, String operationId, Context context); - - /** - * Get SQL pool operation status - * - * Get the status of a SQL pool operation. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of a SQL pool operation. + * @return the status of a SQL pool operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, - String operationId); + Response getLocationHeaderResultWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String operationId, Context context); /** * Get SQL pool operation status @@ -79,13 +41,12 @@ SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceN * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param operationId Operation ID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, - String operationId, Context context); + Object getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java index e6325236ca2c..32d4c3987c9b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java @@ -52,24 +52,6 @@ Response getWithResponse(String resourceGroupName, String workspac @ServiceMethod(returns = ReturnType.SINGLE) SqlPoolInner get(String resourceGroupName, String workspaceName, String sqlPoolName); - /** - * Update SQL pool - * - * Apply a partial update to a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param sqlPoolInfo The updated SQL pool properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginUpdate(String resourceGroupName, String workspaceName, - String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo); - /** * Update SQL pool * @@ -83,29 +65,11 @@ SyncPoller, SqlPoolInner> beginUpdate(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginUpdate(String resourceGroupName, String workspaceName, - String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context); - - /** - * Update SQL pool - * - * Apply a partial update to a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param sqlPoolInfo The updated SQL pool properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return sQL pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo); + Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo, Context context); /** * Update SQL pool @@ -116,7 +80,6 @@ SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPo * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param sqlPoolInfo The updated SQL pool properties. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -124,7 +87,7 @@ SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPo */ @ServiceMethod(returns = ReturnType.SINGLE) SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, Context context); + SqlPoolPatchInfo sqlPoolInfo); /** * Create SQL pool @@ -137,8 +100,6 @@ SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPo * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of sQL pool. */ @@ -158,8 +119,6 @@ SyncPoller, SqlPoolInner> beginCreate(String resourceGr * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of sQL pool. */ @@ -178,8 +137,6 @@ SyncPoller, SqlPoolInner> beginCreate(String resourceGr * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. */ @@ -198,8 +155,6 @@ SyncPoller, SqlPoolInner> beginCreate(String resourceGr * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. */ @@ -218,10 +173,10 @@ SqlPoolInner create(String resourceGroupName, String workspaceName, String sqlPo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginDelete(String resourceGroupName, String workspaceName, + SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, String sqlPoolName); /** @@ -236,10 +191,10 @@ SyncPoller, SqlPoolInner> beginDelete(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginDelete(String resourceGroupName, String workspaceName, + SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** @@ -253,10 +208,10 @@ SyncPoller, SqlPoolInner> beginDelete(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner delete(String resourceGroupName, String workspaceName, String sqlPoolName); + Object delete(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Delete SQL pool @@ -270,10 +225,10 @@ SyncPoller, SqlPoolInner> beginDelete(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Object delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * List SQL pools @@ -317,10 +272,10 @@ SyncPoller, SqlPoolInner> beginDelete(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginPause(String resourceGroupName, String workspaceName, + SyncPoller, Object> beginPause(String resourceGroupName, String workspaceName, String sqlPoolName); /** @@ -335,10 +290,10 @@ SyncPoller, SqlPoolInner> beginPause(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginPause(String resourceGroupName, String workspaceName, + SyncPoller, Object> beginPause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** @@ -352,10 +307,10 @@ SyncPoller, SqlPoolInner> beginPause(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner pause(String resourceGroupName, String workspaceName, String sqlPoolName); + Object pause(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Pause SQL pool @@ -369,10 +324,10 @@ SyncPoller, SqlPoolInner> beginPause(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Object pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * Resume SQL pool @@ -385,10 +340,10 @@ SyncPoller, SqlPoolInner> beginPause(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginResume(String resourceGroupName, String workspaceName, + SyncPoller, Object> beginResume(String resourceGroupName, String workspaceName, String sqlPoolName); /** @@ -403,10 +358,10 @@ SyncPoller, SqlPoolInner> beginResume(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginResume(String resourceGroupName, String workspaceName, + SyncPoller, Object> beginResume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** @@ -420,10 +375,10 @@ SyncPoller, SqlPoolInner> beginResume(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName); + Object resume(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Resume SQL pool @@ -437,8 +392,8 @@ SyncPoller, SqlPoolInner> beginResume(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Object resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java index 0418a9da8747..daa211695a9e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java @@ -25,6 +25,13 @@ public interface SynapseManagementClient { */ String getEndpoint(); + /** + * Gets Api Version. + * + * @return the apiVersion value. + */ + String getApiVersion(); + /** * Gets The HTTP pipeline to send requests through. * @@ -40,11 +47,11 @@ public interface SynapseManagementClient { Duration getDefaultPollInterval(); /** - * Gets the AzureADOnlyAuthenticationsClient object to access its operations. + * Gets the BigDataPoolsClient object to access its operations. * - * @return the AzureADOnlyAuthenticationsClient object. + * @return the BigDataPoolsClient object. */ - AzureADOnlyAuthenticationsClient getAzureADOnlyAuthentications(); + BigDataPoolsClient getBigDataPools(); /** * Gets the OperationsClient object to access its operations. @@ -60,6 +67,69 @@ public interface SynapseManagementClient { */ IpFirewallRulesClient getIpFirewallRules(); + /** + * Gets the IntegrationRuntimesClient object to access its operations. + * + * @return the IntegrationRuntimesClient object. + */ + IntegrationRuntimesClient getIntegrationRuntimes(); + + /** + * Gets the IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. + * + * @return the IntegrationRuntimeNodeIpAddressOperationsClient object. + */ + IntegrationRuntimeNodeIpAddressOperationsClient getIntegrationRuntimeNodeIpAddressOperations(); + + /** + * Gets the IntegrationRuntimeObjectMetadatasClient object to access its operations. + * + * @return the IntegrationRuntimeObjectMetadatasClient object. + */ + IntegrationRuntimeObjectMetadatasClient getIntegrationRuntimeObjectMetadatas(); + + /** + * Gets the IntegrationRuntimeNodesClient object to access its operations. + * + * @return the IntegrationRuntimeNodesClient object. + */ + IntegrationRuntimeNodesClient getIntegrationRuntimeNodes(); + + /** + * Gets the IntegrationRuntimeCredentialsClient object to access its operations. + * + * @return the IntegrationRuntimeCredentialsClient object. + */ + IntegrationRuntimeCredentialsClient getIntegrationRuntimeCredentials(); + + /** + * Gets the IntegrationRuntimeConnectionInfosClient object to access its operations. + * + * @return the IntegrationRuntimeConnectionInfosClient object. + */ + IntegrationRuntimeConnectionInfosClient getIntegrationRuntimeConnectionInfos(); + + /** + * Gets the IntegrationRuntimeAuthKeysOperationsClient object to access its operations. + * + * @return the IntegrationRuntimeAuthKeysOperationsClient object. + */ + IntegrationRuntimeAuthKeysOperationsClient getIntegrationRuntimeAuthKeysOperations(); + + /** + * Gets the IntegrationRuntimeMonitoringDatasClient object to access its operations. + * + * @return the IntegrationRuntimeMonitoringDatasClient object. + */ + IntegrationRuntimeMonitoringDatasClient getIntegrationRuntimeMonitoringDatas(); + + /** + * Gets the IntegrationRuntimeStatusOperationsClient object to access its operations. + * + * @return the IntegrationRuntimeStatusOperationsClient object. + */ + IntegrationRuntimeStatusOperationsClient getIntegrationRuntimeStatusOperations(); + /** * Gets the KeysClient object to access its operations. * @@ -67,6 +137,20 @@ public interface SynapseManagementClient { */ KeysClient getKeys(); + /** + * Gets the LibrariesClient object to access its operations. + * + * @return the LibrariesClient object. + */ + LibrariesClient getLibraries(); + + /** + * Gets the LibrariesOperationsClient object to access its operations. + * + * @return the LibrariesOperationsClient object. + */ + LibrariesOperationsClient getLibrariesOperations(); + /** * Gets the PrivateEndpointConnectionsClient object to access its operations. * @@ -75,11 +159,11 @@ public interface SynapseManagementClient { PrivateEndpointConnectionsClient getPrivateEndpointConnections(); /** - * Gets the PrivateLinkResourcesOperationsClient object to access its operations. + * Gets the PrivateLinkResourcesClient object to access its operations. * - * @return the PrivateLinkResourcesOperationsClient object. + * @return the PrivateLinkResourcesClient object. */ - PrivateLinkResourcesOperationsClient getPrivateLinkResourcesOperations(); + PrivateLinkResourcesClient getPrivateLinkResources(); /** * Gets the PrivateLinkHubPrivateLinkResourcesClient object to access its operations. @@ -355,14 +439,6 @@ public interface SynapseManagementClient { */ WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSqlServerRecoverableSqlPools(); - /** - * Gets the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. - * - * @return the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object. - */ - WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient - getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings(); - /** * Gets the WorkspacesClient object to access its operations. * @@ -397,172 +473,4 @@ public interface SynapseManagementClient { * @return the RestorableDroppedSqlPoolsClient object. */ RestorableDroppedSqlPoolsClient getRestorableDroppedSqlPools(); - - /** - * Gets the BigDataPoolsClient object to access its operations. - * - * @return the BigDataPoolsClient object. - */ - BigDataPoolsClient getBigDataPools(); - - /** - * Gets the LibrariesClient object to access its operations. - * - * @return the LibrariesClient object. - */ - LibrariesClient getLibraries(); - - /** - * Gets the LibrariesOperationsClient object to access its operations. - * - * @return the LibrariesOperationsClient object. - */ - LibrariesOperationsClient getLibrariesOperations(); - - /** - * Gets the IntegrationRuntimesClient object to access its operations. - * - * @return the IntegrationRuntimesClient object. - */ - IntegrationRuntimesClient getIntegrationRuntimes(); - - /** - * Gets the IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. - * - * @return the IntegrationRuntimeNodeIpAddressOperationsClient object. - */ - IntegrationRuntimeNodeIpAddressOperationsClient getIntegrationRuntimeNodeIpAddressOperations(); - - /** - * Gets the IntegrationRuntimeObjectMetadatasClient object to access its operations. - * - * @return the IntegrationRuntimeObjectMetadatasClient object. - */ - IntegrationRuntimeObjectMetadatasClient getIntegrationRuntimeObjectMetadatas(); - - /** - * Gets the IntegrationRuntimeNodesClient object to access its operations. - * - * @return the IntegrationRuntimeNodesClient object. - */ - IntegrationRuntimeNodesClient getIntegrationRuntimeNodes(); - - /** - * Gets the IntegrationRuntimeCredentialsClient object to access its operations. - * - * @return the IntegrationRuntimeCredentialsClient object. - */ - IntegrationRuntimeCredentialsClient getIntegrationRuntimeCredentials(); - - /** - * Gets the IntegrationRuntimeConnectionInfosClient object to access its operations. - * - * @return the IntegrationRuntimeConnectionInfosClient object. - */ - IntegrationRuntimeConnectionInfosClient getIntegrationRuntimeConnectionInfos(); - - /** - * Gets the IntegrationRuntimeAuthKeysOperationsClient object to access its operations. - * - * @return the IntegrationRuntimeAuthKeysOperationsClient object. - */ - IntegrationRuntimeAuthKeysOperationsClient getIntegrationRuntimeAuthKeysOperations(); - - /** - * Gets the IntegrationRuntimeMonitoringDatasClient object to access its operations. - * - * @return the IntegrationRuntimeMonitoringDatasClient object. - */ - IntegrationRuntimeMonitoringDatasClient getIntegrationRuntimeMonitoringDatas(); - - /** - * Gets the IntegrationRuntimeStatusOperationsClient object to access its operations. - * - * @return the IntegrationRuntimeStatusOperationsClient object. - */ - IntegrationRuntimeStatusOperationsClient getIntegrationRuntimeStatusOperations(); - - /** - * Gets the GetsClient object to access its operations. - * - * @return the GetsClient object. - */ - GetsClient getGets(); - - /** - * Gets the SparkConfigurationsClient object to access its operations. - * - * @return the SparkConfigurationsClient object. - */ - SparkConfigurationsClient getSparkConfigurations(); - - /** - * Gets the SparkConfigurationsOperationsClient object to access its operations. - * - * @return the SparkConfigurationsOperationsClient object. - */ - SparkConfigurationsOperationsClient getSparkConfigurationsOperations(); - - /** - * Gets the KustoOperationsClient object to access its operations. - * - * @return the KustoOperationsClient object. - */ - KustoOperationsClient getKustoOperations(); - - /** - * Gets the KustoPoolsClient object to access its operations. - * - * @return the KustoPoolsClient object. - */ - KustoPoolsClient getKustoPools(); - - /** - * Gets the KustoPoolChildResourcesClient object to access its operations. - * - * @return the KustoPoolChildResourcesClient object. - */ - KustoPoolChildResourcesClient getKustoPoolChildResources(); - - /** - * Gets the KustoPoolAttachedDatabaseConfigurationsClient object to access its operations. - * - * @return the KustoPoolAttachedDatabaseConfigurationsClient object. - */ - KustoPoolAttachedDatabaseConfigurationsClient getKustoPoolAttachedDatabaseConfigurations(); - - /** - * Gets the KustoPoolDatabasesClient object to access its operations. - * - * @return the KustoPoolDatabasesClient object. - */ - KustoPoolDatabasesClient getKustoPoolDatabases(); - - /** - * Gets the KustoPoolDataConnectionsClient object to access its operations. - * - * @return the KustoPoolDataConnectionsClient object. - */ - KustoPoolDataConnectionsClient getKustoPoolDataConnections(); - - /** - * Gets the KustoPoolPrincipalAssignmentsClient object to access its operations. - * - * @return the KustoPoolPrincipalAssignmentsClient object. - */ - KustoPoolPrincipalAssignmentsClient getKustoPoolPrincipalAssignments(); - - /** - * Gets the KustoPoolDatabasePrincipalAssignmentsClient object to access its operations. - * - * @return the KustoPoolDatabasePrincipalAssignmentsClient object. - */ - KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipalAssignments(); - - /** - * Gets the KustoPoolPrivateLinkResourcesOperationsClient object to access its operations. - * - * @return the KustoPoolPrivateLinkResourcesOperationsClient object. - */ - KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkResourcesOperations(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java deleted file mode 100644 index 98c30bda092f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; - -/** - * An instance of this class provides access to all the operations defined in - * WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient. - */ -public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient { - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( - String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters); - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( - String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context); - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DedicatedSQLminimalTlsSettingsInner update(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters); - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DedicatedSQLminimalTlsSettingsInner update(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context); - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName, Context context); - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DedicatedSQLminimalTlsSettingsInner get(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName); - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String workspaceName); - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String workspaceName, - Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java index 339b5de51faa..aa8656bdefd4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java @@ -201,10 +201,10 @@ WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, Wo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a workspace. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceInner> beginDelete(String resourceGroupName, String workspaceName); + SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName); /** * Deletes a workspace. @@ -215,11 +215,10 @@ WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, Wo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a workspace. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceInner> beginDelete(String resourceGroupName, String workspaceName, - Context context); + SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, Context context); /** * Deletes a workspace. @@ -229,10 +228,10 @@ SyncPoller, WorkspaceInner> beginDelete(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceInner delete(String resourceGroupName, String workspaceName); + Object delete(String resourceGroupName, String workspaceName); /** * Deletes a workspace. @@ -243,10 +242,10 @@ SyncPoller, WorkspaceInner> beginDelete(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceInner delete(String resourceGroupName, String workspaceName, Context context); + Object delete(String resourceGroupName, String workspaceName, Context context); /** * Returns a list of workspaces in a subscription. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java deleted file mode 100644 index 5d6883729bc9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.io.IOException; -import java.util.List; - -/** - * Class representing an attached database configuration. - */ -@Fluent -public final class AttachedDatabaseConfigurationInner extends ProxyResource { - /* - * Resource location. - */ - private String location; - - /* - * The properties of the attached database configuration. - */ - private AttachedDatabaseConfigurationProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of AttachedDatabaseConfigurationInner class. - */ - public AttachedDatabaseConfigurationInner() { - } - - /** - * Get the location property: Resource location. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: Resource location. - * - * @param location the location value to set. - * @return the AttachedDatabaseConfigurationInner object itself. - */ - public AttachedDatabaseConfigurationInner withLocation(String location) { - this.location = location; - return this; - } - - /** - * Get the innerProperties property: The properties of the attached database configuration. - * - * @return the innerProperties value. - */ - private AttachedDatabaseConfigurationProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the databaseName property: The name of the database which you would like to attach, use * if you want to - * follow all current and future databases. - * - * @return the databaseName value. - */ - public String databaseName() { - return this.innerProperties() == null ? null : this.innerProperties().databaseName(); - } - - /** - * Set the databaseName property: The name of the database which you would like to attach, use * if you want to - * follow all current and future databases. - * - * @param databaseName the databaseName value to set. - * @return the AttachedDatabaseConfigurationInner object itself. - */ - public AttachedDatabaseConfigurationInner withDatabaseName(String databaseName) { - if (this.innerProperties() == null) { - this.innerProperties = new AttachedDatabaseConfigurationProperties(); - } - this.innerProperties().withDatabaseName(databaseName); - return this; - } - - /** - * Get the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to - * attach reside. - * - * @return the kustoPoolResourceId value. - */ - public String kustoPoolResourceId() { - return this.innerProperties() == null ? null : this.innerProperties().kustoPoolResourceId(); - } - - /** - * Set the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to - * attach reside. - * - * @param kustoPoolResourceId the kustoPoolResourceId value to set. - * @return the AttachedDatabaseConfigurationInner object itself. - */ - public AttachedDatabaseConfigurationInner withKustoPoolResourceId(String kustoPoolResourceId) { - if (this.innerProperties() == null) { - this.innerProperties = new AttachedDatabaseConfigurationProperties(); - } - this.innerProperties().withKustoPoolResourceId(kustoPoolResourceId); - return this; - } - - /** - * Get the attachedDatabaseNames property: The list of databases from the clusterResourceId which are currently - * attached to the kusto pool. - * - * @return the attachedDatabaseNames value. - */ - public List attachedDatabaseNames() { - return this.innerProperties() == null ? null : this.innerProperties().attachedDatabaseNames(); - } - - /** - * Get the defaultPrincipalsModificationKind property: The default principals modification kind. - * - * @return the defaultPrincipalsModificationKind value. - */ - public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() { - return this.innerProperties() == null ? null : this.innerProperties().defaultPrincipalsModificationKind(); - } - - /** - * Set the defaultPrincipalsModificationKind property: The default principals modification kind. - * - * @param defaultPrincipalsModificationKind the defaultPrincipalsModificationKind value to set. - * @return the AttachedDatabaseConfigurationInner object itself. - */ - public AttachedDatabaseConfigurationInner - withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { - if (this.innerProperties() == null) { - this.innerProperties = new AttachedDatabaseConfigurationProperties(); - } - this.innerProperties().withDefaultPrincipalsModificationKind(defaultPrincipalsModificationKind); - return this; - } - - /** - * Get the tableLevelSharingProperties property: Table level sharing specifications. - * - * @return the tableLevelSharingProperties value. - */ - public TableLevelSharingProperties tableLevelSharingProperties() { - return this.innerProperties() == null ? null : this.innerProperties().tableLevelSharingProperties(); - } - - /** - * Set the tableLevelSharingProperties property: Table level sharing specifications. - * - * @param tableLevelSharingProperties the tableLevelSharingProperties value to set. - * @return the AttachedDatabaseConfigurationInner object itself. - */ - public AttachedDatabaseConfigurationInner - withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties) { - if (this.innerProperties() == null) { - this.innerProperties = new AttachedDatabaseConfigurationProperties(); - } - this.innerProperties().withTableLevelSharingProperties(tableLevelSharingProperties); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", this.location); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AttachedDatabaseConfigurationInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AttachedDatabaseConfigurationInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the AttachedDatabaseConfigurationInner. - */ - public static AttachedDatabaseConfigurationInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AttachedDatabaseConfigurationInner deserializedAttachedDatabaseConfigurationInner - = new AttachedDatabaseConfigurationInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationInner.location = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationInner.innerProperties - = AttachedDatabaseConfigurationProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedAttachedDatabaseConfigurationInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java deleted file mode 100644 index d77fc5e5844a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.io.IOException; -import java.util.List; - -/** - * Class representing the an attached database configuration properties of kind specific. - */ -@Fluent -public final class AttachedDatabaseConfigurationProperties - implements JsonSerializable { - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /* - * The name of the database which you would like to attach, use * if you want to follow all current and future - * databases. - */ - private String databaseName; - - /* - * The resource id of the kusto pool where the databases you would like to attach reside. - */ - private String kustoPoolResourceId; - - /* - * The list of databases from the clusterResourceId which are currently attached to the kusto pool. - */ - private List attachedDatabaseNames; - - /* - * The default principals modification kind - */ - private DefaultPrincipalsModificationKind defaultPrincipalsModificationKind; - - /* - * Table level sharing specifications - */ - private TableLevelSharingProperties tableLevelSharingProperties; - - /** - * Creates an instance of AttachedDatabaseConfigurationProperties class. - */ - public AttachedDatabaseConfigurationProperties() { - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the databaseName property: The name of the database which you would like to attach, use * if you want to - * follow all current and future databases. - * - * @return the databaseName value. - */ - public String databaseName() { - return this.databaseName; - } - - /** - * Set the databaseName property: The name of the database which you would like to attach, use * if you want to - * follow all current and future databases. - * - * @param databaseName the databaseName value to set. - * @return the AttachedDatabaseConfigurationProperties object itself. - */ - public AttachedDatabaseConfigurationProperties withDatabaseName(String databaseName) { - this.databaseName = databaseName; - return this; - } - - /** - * Get the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to - * attach reside. - * - * @return the kustoPoolResourceId value. - */ - public String kustoPoolResourceId() { - return this.kustoPoolResourceId; - } - - /** - * Set the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to - * attach reside. - * - * @param kustoPoolResourceId the kustoPoolResourceId value to set. - * @return the AttachedDatabaseConfigurationProperties object itself. - */ - public AttachedDatabaseConfigurationProperties withKustoPoolResourceId(String kustoPoolResourceId) { - this.kustoPoolResourceId = kustoPoolResourceId; - return this; - } - - /** - * Get the attachedDatabaseNames property: The list of databases from the clusterResourceId which are currently - * attached to the kusto pool. - * - * @return the attachedDatabaseNames value. - */ - public List attachedDatabaseNames() { - return this.attachedDatabaseNames; - } - - /** - * Get the defaultPrincipalsModificationKind property: The default principals modification kind. - * - * @return the defaultPrincipalsModificationKind value. - */ - public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() { - return this.defaultPrincipalsModificationKind; - } - - /** - * Set the defaultPrincipalsModificationKind property: The default principals modification kind. - * - * @param defaultPrincipalsModificationKind the defaultPrincipalsModificationKind value to set. - * @return the AttachedDatabaseConfigurationProperties object itself. - */ - public AttachedDatabaseConfigurationProperties - withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { - this.defaultPrincipalsModificationKind = defaultPrincipalsModificationKind; - return this; - } - - /** - * Get the tableLevelSharingProperties property: Table level sharing specifications. - * - * @return the tableLevelSharingProperties value. - */ - public TableLevelSharingProperties tableLevelSharingProperties() { - return this.tableLevelSharingProperties; - } - - /** - * Set the tableLevelSharingProperties property: Table level sharing specifications. - * - * @param tableLevelSharingProperties the tableLevelSharingProperties value to set. - * @return the AttachedDatabaseConfigurationProperties object itself. - */ - public AttachedDatabaseConfigurationProperties - withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties) { - this.tableLevelSharingProperties = tableLevelSharingProperties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (databaseName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property databaseName in model AttachedDatabaseConfigurationProperties")); - } - if (kustoPoolResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property kustoPoolResourceId in model AttachedDatabaseConfigurationProperties")); - } - if (defaultPrincipalsModificationKind() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property defaultPrincipalsModificationKind in model AttachedDatabaseConfigurationProperties")); - } - if (tableLevelSharingProperties() != null) { - tableLevelSharingProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AttachedDatabaseConfigurationProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("databaseName", this.databaseName); - jsonWriter.writeStringField("clusterResourceId", this.kustoPoolResourceId); - jsonWriter.writeStringField("defaultPrincipalsModificationKind", - this.defaultPrincipalsModificationKind == null ? null : this.defaultPrincipalsModificationKind.toString()); - jsonWriter.writeJsonField("tableLevelSharingProperties", this.tableLevelSharingProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AttachedDatabaseConfigurationProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AttachedDatabaseConfigurationProperties if the JsonReader was pointing to an instance of - * it, or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the AttachedDatabaseConfigurationProperties. - */ - public static AttachedDatabaseConfigurationProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AttachedDatabaseConfigurationProperties deserializedAttachedDatabaseConfigurationProperties - = new AttachedDatabaseConfigurationProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("databaseName".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationProperties.databaseName = reader.getString(); - } else if ("clusterResourceId".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationProperties.kustoPoolResourceId = reader.getString(); - } else if ("defaultPrincipalsModificationKind".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationProperties.defaultPrincipalsModificationKind - = DefaultPrincipalsModificationKind.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else if ("attachedDatabaseNames".equals(fieldName)) { - List attachedDatabaseNames = reader.readArray(reader1 -> reader1.getString()); - deserializedAttachedDatabaseConfigurationProperties.attachedDatabaseNames = attachedDatabaseNames; - } else if ("tableLevelSharingProperties".equals(fieldName)) { - deserializedAttachedDatabaseConfigurationProperties.tableLevelSharingProperties - = TableLevelSharingProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedAttachedDatabaseConfigurationProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java deleted file mode 100644 index 0c09efa484f5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.StateValue; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Azure Active Directory Only Authentication Info. - */ -@Fluent -public final class AzureADOnlyAuthenticationInner extends ProxyResource { - /* - * azureADOnlyAuthentication resource properties - */ - private AzureADOnlyAuthenticationProperties innerProperties; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of AzureADOnlyAuthenticationInner class. - */ - public AzureADOnlyAuthenticationInner() { - } - - /** - * Get the innerProperties property: azureADOnlyAuthentication resource properties. - * - * @return the innerProperties value. - */ - private AzureADOnlyAuthenticationProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * - * @return the azureADOnlyAuthentication value. - */ - public Boolean azureADOnlyAuthentication() { - return this.innerProperties() == null ? null : this.innerProperties().azureADOnlyAuthentication(); - } - - /** - * Set the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * - * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set. - * @return the AzureADOnlyAuthenticationInner object itself. - */ - public AzureADOnlyAuthenticationInner withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication) { - if (this.innerProperties() == null) { - this.innerProperties = new AzureADOnlyAuthenticationProperties(); - } - this.innerProperties().withAzureADOnlyAuthentication(azureADOnlyAuthentication); - return this; - } - - /** - * Get the state property: property configuration state. - * - * @return the state value. - */ - public StateValue state() { - return this.innerProperties() == null ? null : this.innerProperties().state(); - } - - /** - * Get the creationDate property: property configuration date. - * - * @return the creationDate value. - */ - public OffsetDateTime creationDate() { - return this.innerProperties() == null ? null : this.innerProperties().creationDate(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AzureADOnlyAuthenticationInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AzureADOnlyAuthenticationInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the AzureADOnlyAuthenticationInner. - */ - public static AzureADOnlyAuthenticationInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AzureADOnlyAuthenticationInner deserializedAzureADOnlyAuthenticationInner - = new AzureADOnlyAuthenticationInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedAzureADOnlyAuthenticationInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedAzureADOnlyAuthenticationInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedAzureADOnlyAuthenticationInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedAzureADOnlyAuthenticationInner.innerProperties - = AzureADOnlyAuthenticationProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedAzureADOnlyAuthenticationInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java deleted file mode 100644 index 225387e39729..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.StateValue; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Properties of a active directory only authentication. - */ -@Fluent -public final class AzureADOnlyAuthenticationProperties - implements JsonSerializable { - /* - * Azure Active Directory only Authentication enabled. - */ - private boolean azureADOnlyAuthentication; - - /* - * property configuration state - */ - private StateValue state; - - /* - * property configuration date - */ - private OffsetDateTime creationDate; - - /** - * Creates an instance of AzureADOnlyAuthenticationProperties class. - */ - public AzureADOnlyAuthenticationProperties() { - } - - /** - * Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * - * @return the azureADOnlyAuthentication value. - */ - public boolean azureADOnlyAuthentication() { - return this.azureADOnlyAuthentication; - } - - /** - * Set the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * - * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set. - * @return the AzureADOnlyAuthenticationProperties object itself. - */ - public AzureADOnlyAuthenticationProperties withAzureADOnlyAuthentication(boolean azureADOnlyAuthentication) { - this.azureADOnlyAuthentication = azureADOnlyAuthentication; - return this; - } - - /** - * Get the state property: property configuration state. - * - * @return the state value. - */ - public StateValue state() { - return this.state; - } - - /** - * Get the creationDate property: property configuration date. - * - * @return the creationDate value. - */ - public OffsetDateTime creationDate() { - return this.creationDate; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeBooleanField("azureADOnlyAuthentication", this.azureADOnlyAuthentication); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AzureADOnlyAuthenticationProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AzureADOnlyAuthenticationProperties if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the AzureADOnlyAuthenticationProperties. - */ - public static AzureADOnlyAuthenticationProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AzureADOnlyAuthenticationProperties deserializedAzureADOnlyAuthenticationProperties - = new AzureADOnlyAuthenticationProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("azureADOnlyAuthentication".equals(fieldName)) { - deserializedAzureADOnlyAuthenticationProperties.azureADOnlyAuthentication = reader.getBoolean(); - } else if ("state".equals(fieldName)) { - deserializedAzureADOnlyAuthenticationProperties.state = StateValue.fromString(reader.getString()); - } else if ("creationDate".equals(fieldName)) { - deserializedAzureADOnlyAuthenticationProperties.creationDate = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else { - reader.skipChildren(); - } - } - - return deserializedAzureADOnlyAuthenticationProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java deleted file mode 100644 index 3d550e6e93a3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.AzureCapacity; -import com.azure.resourcemanager.synapse.models.AzureSku; -import java.io.IOException; - -/** - * Azure resource SKU definition. - */ -@Fluent -public final class AzureResourceSkuInner implements JsonSerializable { - /* - * Resource Namespace and Type. - */ - private String resourceType; - - /* - * The SKU details. - */ - private AzureSku sku; - - /* - * The number of instances of the cluster. - */ - private AzureCapacity capacity; - - /** - * Creates an instance of AzureResourceSkuInner class. - */ - public AzureResourceSkuInner() { - } - - /** - * Get the resourceType property: Resource Namespace and Type. - * - * @return the resourceType value. - */ - public String resourceType() { - return this.resourceType; - } - - /** - * Set the resourceType property: Resource Namespace and Type. - * - * @param resourceType the resourceType value to set. - * @return the AzureResourceSkuInner object itself. - */ - public AzureResourceSkuInner withResourceType(String resourceType) { - this.resourceType = resourceType; - return this; - } - - /** - * Get the sku property: The SKU details. - * - * @return the sku value. - */ - public AzureSku sku() { - return this.sku; - } - - /** - * Set the sku property: The SKU details. - * - * @param sku the sku value to set. - * @return the AzureResourceSkuInner object itself. - */ - public AzureResourceSkuInner withSku(AzureSku sku) { - this.sku = sku; - return this; - } - - /** - * Get the capacity property: The number of instances of the cluster. - * - * @return the capacity value. - */ - public AzureCapacity capacity() { - return this.capacity; - } - - /** - * Set the capacity property: The number of instances of the cluster. - * - * @param capacity the capacity value to set. - * @return the AzureResourceSkuInner object itself. - */ - public AzureResourceSkuInner withCapacity(AzureCapacity capacity) { - this.capacity = capacity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sku() != null) { - sku().validate(); - } - if (capacity() != null) { - capacity().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resourceType", this.resourceType); - jsonWriter.writeJsonField("sku", this.sku); - jsonWriter.writeJsonField("capacity", this.capacity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AzureResourceSkuInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AzureResourceSkuInner if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the AzureResourceSkuInner. - */ - public static AzureResourceSkuInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AzureResourceSkuInner deserializedAzureResourceSkuInner = new AzureResourceSkuInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceType".equals(fieldName)) { - deserializedAzureResourceSkuInner.resourceType = reader.getString(); - } else if ("sku".equals(fieldName)) { - deserializedAzureResourceSkuInner.sku = AzureSku.fromJson(reader); - } else if ("capacity".equals(fieldName)) { - deserializedAzureResourceSkuInner.capacity = AzureCapacity.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedAzureResourceSkuInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java index 1a951d8a6490..b41d8468f2a7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java @@ -15,7 +15,6 @@ import com.azure.resourcemanager.synapse.models.LibraryRequirements; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; @@ -166,6 +165,20 @@ public OffsetDateTime creationDate() { return this.innerProperties() == null ? null : this.innerProperties().creationDate(); } + /** + * Set the creationDate property: The time when the Big Data pool was created. + * + * @param creationDate the creationDate value to set. + * @return the BigDataPoolResourceInfoInner object itself. + */ + public BigDataPoolResourceInfoInner withCreationDate(OffsetDateTime creationDate) { + if (this.innerProperties() == null) { + this.innerProperties = new BigDataPoolResourceProperties(); + } + this.innerProperties().withCreationDate(creationDate); + return this; + } + /** * Get the autoPause property: Auto-pausing properties. * @@ -212,29 +225,6 @@ public BigDataPoolResourceInfoInner withIsComputeIsolationEnabled(Boolean isComp return this; } - /** - * Get the isAutotuneEnabled property: Whether autotune is required or not. - * - * @return the isAutotuneEnabled value. - */ - public Boolean isAutotuneEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().isAutotuneEnabled(); - } - - /** - * Set the isAutotuneEnabled property: Whether autotune is required or not. - * - * @param isAutotuneEnabled the isAutotuneEnabled value to set. - * @return the BigDataPoolResourceInfoInner object itself. - */ - public BigDataPoolResourceInfoInner withIsAutotuneEnabled(Boolean isAutotuneEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new BigDataPoolResourceProperties(); - } - this.innerProperties().withIsAutotuneEnabled(isAutotuneEnabled); - return this; - } - /** * Get the sessionLevelPackagesEnabled property: Whether session level packages enabled. * @@ -402,7 +392,7 @@ public BigDataPoolResourceInfoInner withCustomLibraries(List custom * * @return the sparkConfigProperties value. */ - public SparkConfigProperties sparkConfigProperties() { + public LibraryRequirements sparkConfigProperties() { return this.innerProperties() == null ? null : this.innerProperties().sparkConfigProperties(); } @@ -412,7 +402,7 @@ public SparkConfigProperties sparkConfigProperties() { * @param sparkConfigProperties the sparkConfigProperties value to set. * @return the BigDataPoolResourceInfoInner object itself. */ - public BigDataPoolResourceInfoInner withSparkConfigProperties(SparkConfigProperties sparkConfigProperties) { + public BigDataPoolResourceInfoInner withSparkConfigProperties(LibraryRequirements sparkConfigProperties) { if (this.innerProperties() == null) { this.innerProperties = new BigDataPoolResourceProperties(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java index f3dbca60cddc..ad2718762f80 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java @@ -16,9 +16,9 @@ import com.azure.resourcemanager.synapse.models.LibraryRequirements; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; import java.io.IOException; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.List; /** @@ -53,11 +53,6 @@ public final class BigDataPoolResourceProperties implements JsonSerializable custo * * @return the sparkConfigProperties value. */ - public SparkConfigProperties sparkConfigProperties() { + public LibraryRequirements sparkConfigProperties() { return this.sparkConfigProperties; } @@ -394,7 +380,7 @@ public SparkConfigProperties sparkConfigProperties() { * @param sparkConfigProperties the sparkConfigProperties value to set. * @return the BigDataPoolResourceProperties object itself. */ - public BigDataPoolResourceProperties withSparkConfigProperties(SparkConfigProperties sparkConfigProperties) { + public BigDataPoolResourceProperties withSparkConfigProperties(LibraryRequirements sparkConfigProperties) { this.sparkConfigProperties = sparkConfigProperties; return this; } @@ -522,9 +508,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("provisioningState", this.provisioningState); jsonWriter.writeJsonField("autoScale", this.autoScale); + jsonWriter.writeStringField("creationDate", + this.creationDate == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.creationDate)); jsonWriter.writeJsonField("autoPause", this.autoPause); jsonWriter.writeBooleanField("isComputeIsolationEnabled", this.isComputeIsolationEnabled); - jsonWriter.writeBooleanField("isAutotuneEnabled", this.isAutotuneEnabled); jsonWriter.writeBooleanField("sessionLevelPackagesEnabled", this.sessionLevelPackagesEnabled); jsonWriter.writeNumberField("cacheSize", this.cacheSize); jsonWriter.writeJsonField("dynamicExecutorAllocation", this.dynamicExecutorAllocation); @@ -570,9 +557,6 @@ public static BigDataPoolResourceProperties fromJson(JsonReader jsonReader) thro } else if ("isComputeIsolationEnabled".equals(fieldName)) { deserializedBigDataPoolResourceProperties.isComputeIsolationEnabled = reader.getNullable(JsonReader::getBoolean); - } else if ("isAutotuneEnabled".equals(fieldName)) { - deserializedBigDataPoolResourceProperties.isAutotuneEnabled - = reader.getNullable(JsonReader::getBoolean); } else if ("sessionLevelPackagesEnabled".equals(fieldName)) { deserializedBigDataPoolResourceProperties.sessionLevelPackagesEnabled = reader.getNullable(JsonReader::getBoolean); @@ -593,7 +577,7 @@ public static BigDataPoolResourceProperties fromJson(JsonReader jsonReader) thro deserializedBigDataPoolResourceProperties.customLibraries = customLibraries; } else if ("sparkConfigProperties".equals(fieldName)) { deserializedBigDataPoolResourceProperties.sparkConfigProperties - = SparkConfigProperties.fromJson(reader); + = LibraryRequirements.fromJson(reader); } else if ("sparkVersion".equals(fieldName)) { deserializedBigDataPoolResourceProperties.sparkVersion = reader.getString(); } else if ("defaultSparkLogFolder".equals(fieldName)) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java deleted file mode 100644 index 8d519bf5799d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.Reason; -import java.io.IOException; - -/** - * The result returned from a check name availability request. - */ -@Fluent -public final class CheckNameResultInner implements JsonSerializable { - /* - * Specifies a Boolean value that indicates if the name is available. - */ - private Boolean nameAvailable; - - /* - * The name that was checked. - */ - private String name; - - /* - * Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. - */ - private String message; - - /* - * Message providing the reason why the given name is invalid. - */ - private Reason reason; - - /** - * Creates an instance of CheckNameResultInner class. - */ - public CheckNameResultInner() { - } - - /** - * Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available. - * - * @return the nameAvailable value. - */ - public Boolean nameAvailable() { - return this.nameAvailable; - } - - /** - * Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available. - * - * @param nameAvailable the nameAvailable value to set. - * @return the CheckNameResultInner object itself. - */ - public CheckNameResultInner withNameAvailable(Boolean nameAvailable) { - this.nameAvailable = nameAvailable; - return this; - } - - /** - * Get the name property: The name that was checked. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name that was checked. - * - * @param name the name value to set. - * @return the CheckNameResultInner object itself. - */ - public CheckNameResultInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the message property: Message indicating an unavailable name due to a conflict, or a description of the - * naming rules that are violated. - * - * @return the message value. - */ - public String message() { - return this.message; - } - - /** - * Set the message property: Message indicating an unavailable name due to a conflict, or a description of the - * naming rules that are violated. - * - * @param message the message value to set. - * @return the CheckNameResultInner object itself. - */ - public CheckNameResultInner withMessage(String message) { - this.message = message; - return this; - } - - /** - * Get the reason property: Message providing the reason why the given name is invalid. - * - * @return the reason value. - */ - public Reason reason() { - return this.reason; - } - - /** - * Set the reason property: Message providing the reason why the given name is invalid. - * - * @param reason the reason value to set. - * @return the CheckNameResultInner object itself. - */ - public CheckNameResultInner withReason(Reason reason) { - this.reason = reason; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeBooleanField("nameAvailable", this.nameAvailable); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("message", this.message); - jsonWriter.writeStringField("reason", this.reason == null ? null : this.reason.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CheckNameResultInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CheckNameResultInner if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the CheckNameResultInner. - */ - public static CheckNameResultInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CheckNameResultInner deserializedCheckNameResultInner = new CheckNameResultInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("nameAvailable".equals(fieldName)) { - deserializedCheckNameResultInner.nameAvailable = reader.getNullable(JsonReader::getBoolean); - } else if ("name".equals(fieldName)) { - deserializedCheckNameResultInner.name = reader.getString(); - } else if ("message".equals(fieldName)) { - deserializedCheckNameResultInner.message = reader.getString(); - } else if ("reason".equals(fieldName)) { - deserializedCheckNameResultInner.reason = Reason.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedCheckNameResultInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java deleted file mode 100644 index 868b6e4c926a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java +++ /dev/null @@ -1,289 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; - -/** - * Class representing a cluster principal assignment. - */ -@Fluent -public final class ClusterPrincipalAssignmentInner extends ProxyResource { - /* - * The cluster principal. - */ - private ClusterPrincipalProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ClusterPrincipalAssignmentInner class. - */ - public ClusterPrincipalAssignmentInner() { - } - - /** - * Get the innerProperties property: The cluster principal. - * - * @return the innerProperties value. - */ - private ClusterPrincipalProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the principalId property: The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. - * - * @return the principalId value. - */ - public String principalId() { - return this.innerProperties() == null ? null : this.innerProperties().principalId(); - } - - /** - * Set the principalId property: The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. - * - * @param principalId the principalId value to set. - * @return the ClusterPrincipalAssignmentInner object itself. - */ - public ClusterPrincipalAssignmentInner withPrincipalId(String principalId) { - if (this.innerProperties() == null) { - this.innerProperties = new ClusterPrincipalProperties(); - } - this.innerProperties().withPrincipalId(principalId); - return this; - } - - /** - * Get the role property: Cluster principal role. - * - * @return the role value. - */ - public ClusterPrincipalRole role() { - return this.innerProperties() == null ? null : this.innerProperties().role(); - } - - /** - * Set the role property: Cluster principal role. - * - * @param role the role value to set. - * @return the ClusterPrincipalAssignmentInner object itself. - */ - public ClusterPrincipalAssignmentInner withRole(ClusterPrincipalRole role) { - if (this.innerProperties() == null) { - this.innerProperties = new ClusterPrincipalProperties(); - } - this.innerProperties().withRole(role); - return this; - } - - /** - * Get the tenantId property: The tenant id of the principal. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.innerProperties() == null ? null : this.innerProperties().tenantId(); - } - - /** - * Set the tenantId property: The tenant id of the principal. - * - * @param tenantId the tenantId value to set. - * @return the ClusterPrincipalAssignmentInner object itself. - */ - public ClusterPrincipalAssignmentInner withTenantId(String tenantId) { - if (this.innerProperties() == null) { - this.innerProperties = new ClusterPrincipalProperties(); - } - this.innerProperties().withTenantId(tenantId); - return this; - } - - /** - * Get the principalType property: Principal type. - * - * @return the principalType value. - */ - public PrincipalType principalType() { - return this.innerProperties() == null ? null : this.innerProperties().principalType(); - } - - /** - * Set the principalType property: Principal type. - * - * @param principalType the principalType value to set. - * @return the ClusterPrincipalAssignmentInner object itself. - */ - public ClusterPrincipalAssignmentInner withPrincipalType(PrincipalType principalType) { - if (this.innerProperties() == null) { - this.innerProperties = new ClusterPrincipalProperties(); - } - this.innerProperties().withPrincipalType(principalType); - return this; - } - - /** - * Get the tenantName property: The tenant name of the principal. - * - * @return the tenantName value. - */ - public String tenantName() { - return this.innerProperties() == null ? null : this.innerProperties().tenantName(); - } - - /** - * Get the principalName property: The principal name. - * - * @return the principalName value. - */ - public String principalName() { - return this.innerProperties() == null ? null : this.innerProperties().principalName(); - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). - * - * @return the aadObjectId value. - */ - public String aadObjectId() { - return this.innerProperties() == null ? null : this.innerProperties().aadObjectId(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ClusterPrincipalAssignmentInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ClusterPrincipalAssignmentInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the ClusterPrincipalAssignmentInner. - */ - public static ClusterPrincipalAssignmentInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ClusterPrincipalAssignmentInner deserializedClusterPrincipalAssignmentInner - = new ClusterPrincipalAssignmentInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedClusterPrincipalAssignmentInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedClusterPrincipalAssignmentInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedClusterPrincipalAssignmentInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedClusterPrincipalAssignmentInner.innerProperties - = ClusterPrincipalProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedClusterPrincipalAssignmentInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedClusterPrincipalAssignmentInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java deleted file mode 100644 index 04df80c8871d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java +++ /dev/null @@ -1,267 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; - -/** - * A class representing cluster principal property. - */ -@Fluent -public final class ClusterPrincipalProperties implements JsonSerializable { - /* - * The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group - * name. - */ - private String principalId; - - /* - * Cluster principal role. - */ - private ClusterPrincipalRole role; - - /* - * The tenant id of the principal - */ - private String tenantId; - - /* - * Principal type. - */ - private PrincipalType principalType; - - /* - * The tenant name of the principal - */ - private String tenantName; - - /* - * The principal name - */ - private String principalName; - - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /* - * The service principal object id in AAD (Azure active directory) - */ - private String aadObjectId; - - /** - * Creates an instance of ClusterPrincipalProperties class. - */ - public ClusterPrincipalProperties() { - } - - /** - * Get the principalId property: The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. - * - * @return the principalId value. - */ - public String principalId() { - return this.principalId; - } - - /** - * Set the principalId property: The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. - * - * @param principalId the principalId value to set. - * @return the ClusterPrincipalProperties object itself. - */ - public ClusterPrincipalProperties withPrincipalId(String principalId) { - this.principalId = principalId; - return this; - } - - /** - * Get the role property: Cluster principal role. - * - * @return the role value. - */ - public ClusterPrincipalRole role() { - return this.role; - } - - /** - * Set the role property: Cluster principal role. - * - * @param role the role value to set. - * @return the ClusterPrincipalProperties object itself. - */ - public ClusterPrincipalProperties withRole(ClusterPrincipalRole role) { - this.role = role; - return this; - } - - /** - * Get the tenantId property: The tenant id of the principal. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenantId property: The tenant id of the principal. - * - * @param tenantId the tenantId value to set. - * @return the ClusterPrincipalProperties object itself. - */ - public ClusterPrincipalProperties withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the principalType property: Principal type. - * - * @return the principalType value. - */ - public PrincipalType principalType() { - return this.principalType; - } - - /** - * Set the principalType property: Principal type. - * - * @param principalType the principalType value to set. - * @return the ClusterPrincipalProperties object itself. - */ - public ClusterPrincipalProperties withPrincipalType(PrincipalType principalType) { - this.principalType = principalType; - return this; - } - - /** - * Get the tenantName property: The tenant name of the principal. - * - * @return the tenantName value. - */ - public String tenantName() { - return this.tenantName; - } - - /** - * Get the principalName property: The principal name. - * - * @return the principalName value. - */ - public String principalName() { - return this.principalName; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). - * - * @return the aadObjectId value. - */ - public String aadObjectId() { - return this.aadObjectId; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (principalId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property principalId in model ClusterPrincipalProperties")); - } - if (role() == null) { - throw LOGGER.atError() - .log( - new IllegalArgumentException("Missing required property role in model ClusterPrincipalProperties")); - } - if (principalType() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property principalType in model ClusterPrincipalProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ClusterPrincipalProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("principalId", this.principalId); - jsonWriter.writeStringField("role", this.role == null ? null : this.role.toString()); - jsonWriter.writeStringField("principalType", this.principalType == null ? null : this.principalType.toString()); - jsonWriter.writeStringField("tenantId", this.tenantId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ClusterPrincipalProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ClusterPrincipalProperties if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the ClusterPrincipalProperties. - */ - public static ClusterPrincipalProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ClusterPrincipalProperties deserializedClusterPrincipalProperties = new ClusterPrincipalProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("principalId".equals(fieldName)) { - deserializedClusterPrincipalProperties.principalId = reader.getString(); - } else if ("role".equals(fieldName)) { - deserializedClusterPrincipalProperties.role = ClusterPrincipalRole.fromString(reader.getString()); - } else if ("principalType".equals(fieldName)) { - deserializedClusterPrincipalProperties.principalType = PrincipalType.fromString(reader.getString()); - } else if ("tenantId".equals(fieldName)) { - deserializedClusterPrincipalProperties.tenantId = reader.getString(); - } else if ("tenantName".equals(fieldName)) { - deserializedClusterPrincipalProperties.tenantName = reader.getString(); - } else if ("principalName".equals(fieldName)) { - deserializedClusterPrincipalProperties.principalName = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedClusterPrincipalProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else if ("aadObjectId".equals(fieldName)) { - deserializedClusterPrincipalProperties.aadObjectId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedClusterPrincipalProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java deleted file mode 100644 index 81f38ea5d3f2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.DataConnectionKind; -import com.azure.resourcemanager.synapse.models.EventGridDataConnection; -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -import com.azure.resourcemanager.synapse.models.IotHubDataConnection; -import java.io.IOException; - -/** - * Class representing a data connection. - */ -@Fluent -public class DataConnectionInner extends ProxyResource { - /* - * Kind of the endpoint for the data connection - */ - private DataConnectionKind kind = DataConnectionKind.fromString("DataConnection"); - - /* - * Resource location. - */ - private String location; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of DataConnectionInner class. - */ - public DataConnectionInner() { - } - - /** - * Get the kind property: Kind of the endpoint for the data connection. - * - * @return the kind value. - */ - public DataConnectionKind kind() { - return this.kind; - } - - /** - * Get the location property: Resource location. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: Resource location. - * - * @param location the location value to set. - * @return the DataConnectionInner object itself. - */ - public DataConnectionInner withLocation(String location) { - this.location = location; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @param systemData the systemData value to set. - * @return the DataConnectionInner object itself. - */ - DataConnectionInner withSystemData(SystemData systemData) { - this.systemData = systemData; - return this; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - jsonWriter.writeStringField("location", this.location); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DataConnectionInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DataConnectionInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the DataConnectionInner. - */ - public static DataConnectionInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - String discriminatorValue = null; - try (JsonReader readerToUse = reader.bufferObject()) { - readerToUse.nextToken(); // Prepare for reading - while (readerToUse.nextToken() != JsonToken.END_OBJECT) { - String fieldName = readerToUse.getFieldName(); - readerToUse.nextToken(); - if ("kind".equals(fieldName)) { - discriminatorValue = readerToUse.getString(); - break; - } else { - readerToUse.skipChildren(); - } - } - // Use the discriminator value to determine which subtype should be deserialized. - if ("EventHub".equals(discriminatorValue)) { - return EventHubDataConnection.fromJson(readerToUse.reset()); - } else if ("IotHub".equals(discriminatorValue)) { - return IotHubDataConnection.fromJson(readerToUse.reset()); - } else if ("EventGrid".equals(discriminatorValue)) { - return EventGridDataConnection.fromJson(readerToUse.reset()); - } else { - return fromJsonKnownDiscriminator(readerToUse.reset()); - } - } - }); - } - - static DataConnectionInner fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DataConnectionInner deserializedDataConnectionInner = new DataConnectionInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedDataConnectionInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedDataConnectionInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedDataConnectionInner.type = reader.getString(); - } else if ("kind".equals(fieldName)) { - deserializedDataConnectionInner.kind = DataConnectionKind.fromString(reader.getString()); - } else if ("location".equals(fieldName)) { - deserializedDataConnectionInner.location = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedDataConnectionInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDataConnectionInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java deleted file mode 100644 index 399de656b613..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Class representing an data connection validation. - */ -@Fluent -public final class DataConnectionValidationInner implements JsonSerializable { - /* - * The name of the data connection. - */ - private String dataConnectionName; - - /* - * The data connection properties to validate. - */ - private DataConnectionInner properties; - - /** - * Creates an instance of DataConnectionValidationInner class. - */ - public DataConnectionValidationInner() { - } - - /** - * Get the dataConnectionName property: The name of the data connection. - * - * @return the dataConnectionName value. - */ - public String dataConnectionName() { - return this.dataConnectionName; - } - - /** - * Set the dataConnectionName property: The name of the data connection. - * - * @param dataConnectionName the dataConnectionName value to set. - * @return the DataConnectionValidationInner object itself. - */ - public DataConnectionValidationInner withDataConnectionName(String dataConnectionName) { - this.dataConnectionName = dataConnectionName; - return this; - } - - /** - * Get the properties property: The data connection properties to validate. - * - * @return the properties value. - */ - public DataConnectionInner properties() { - return this.properties; - } - - /** - * Set the properties property: The data connection properties to validate. - * - * @param properties the properties value to set. - * @return the DataConnectionValidationInner object itself. - */ - public DataConnectionValidationInner withProperties(DataConnectionInner properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("dataConnectionName", this.dataConnectionName); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DataConnectionValidationInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DataConnectionValidationInner if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DataConnectionValidationInner. - */ - public static DataConnectionValidationInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DataConnectionValidationInner deserializedDataConnectionValidationInner - = new DataConnectionValidationInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("dataConnectionName".equals(fieldName)) { - deserializedDataConnectionValidationInner.dataConnectionName = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedDataConnectionValidationInner.properties = DataConnectionInner.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDataConnectionValidationInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java deleted file mode 100644 index 9ff5c546ec07..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationResult; -import java.io.IOException; -import java.util.List; - -/** - * The list Kusto data connection validation result. - */ -@Fluent -public final class DataConnectionValidationListResultInner - implements JsonSerializable { - /* - * The list of Kusto data connection validation errors. - */ - private List value; - - /** - * Creates an instance of DataConnectionValidationListResultInner class. - */ - public DataConnectionValidationListResultInner() { - } - - /** - * Get the value property: The list of Kusto data connection validation errors. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of Kusto data connection validation errors. - * - * @param value the value value to set. - * @return the DataConnectionValidationListResultInner object itself. - */ - public DataConnectionValidationListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DataConnectionValidationListResultInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DataConnectionValidationListResultInner if the JsonReader was pointing to an instance of - * it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DataConnectionValidationListResultInner. - */ - public static DataConnectionValidationListResultInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DataConnectionValidationListResultInner deserializedDataConnectionValidationListResultInner - = new DataConnectionValidationListResultInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> DataConnectionValidationResult.fromJson(reader1)); - deserializedDataConnectionValidationListResultInner.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedDataConnectionValidationListResultInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java deleted file mode 100644 index 071256cd34e7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.Kind; -import com.azure.resourcemanager.synapse.models.ReadOnlyFollowingDatabase; -import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; -import java.io.IOException; - -/** - * Class representing a Kusto database. - */ -@Fluent -public class DatabaseInner extends ProxyResource { - /* - * Kind of the database - */ - private Kind kind = Kind.fromString("Database"); - - /* - * Resource location. - */ - private String location; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of DatabaseInner class. - */ - public DatabaseInner() { - } - - /** - * Get the kind property: Kind of the database. - * - * @return the kind value. - */ - public Kind kind() { - return this.kind; - } - - /** - * Get the location property: Resource location. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: Resource location. - * - * @param location the location value to set. - * @return the DatabaseInner object itself. - */ - public DatabaseInner withLocation(String location) { - this.location = location; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @param systemData the systemData value to set. - * @return the DatabaseInner object itself. - */ - DatabaseInner withSystemData(SystemData systemData) { - this.systemData = systemData; - return this; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - jsonWriter.writeStringField("location", this.location); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DatabaseInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DatabaseInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the DatabaseInner. - */ - public static DatabaseInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - String discriminatorValue = null; - try (JsonReader readerToUse = reader.bufferObject()) { - readerToUse.nextToken(); // Prepare for reading - while (readerToUse.nextToken() != JsonToken.END_OBJECT) { - String fieldName = readerToUse.getFieldName(); - readerToUse.nextToken(); - if ("kind".equals(fieldName)) { - discriminatorValue = readerToUse.getString(); - break; - } else { - readerToUse.skipChildren(); - } - } - // Use the discriminator value to determine which subtype should be deserialized. - if ("ReadWrite".equals(discriminatorValue)) { - return ReadWriteDatabase.fromJson(readerToUse.reset()); - } else if ("ReadOnlyFollowing".equals(discriminatorValue)) { - return ReadOnlyFollowingDatabase.fromJson(readerToUse.reset()); - } else { - return fromJsonKnownDiscriminator(readerToUse.reset()); - } - } - }); - } - - static DatabaseInner fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DatabaseInner deserializedDatabaseInner = new DatabaseInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedDatabaseInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedDatabaseInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedDatabaseInner.type = reader.getString(); - } else if ("kind".equals(fieldName)) { - deserializedDatabaseInner.kind = Kind.fromString(reader.getString()); - } else if ("location".equals(fieldName)) { - deserializedDatabaseInner.location = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedDatabaseInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDatabaseInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java deleted file mode 100644 index 26c387c12b2e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java +++ /dev/null @@ -1,289 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; - -/** - * Class representing a database principal assignment. - */ -@Fluent -public final class DatabasePrincipalAssignmentInner extends ProxyResource { - /* - * The database principal. - */ - private DatabasePrincipalProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of DatabasePrincipalAssignmentInner class. - */ - public DatabasePrincipalAssignmentInner() { - } - - /** - * Get the innerProperties property: The database principal. - * - * @return the innerProperties value. - */ - private DatabasePrincipalProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the principalId property: The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. - * - * @return the principalId value. - */ - public String principalId() { - return this.innerProperties() == null ? null : this.innerProperties().principalId(); - } - - /** - * Set the principalId property: The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. - * - * @param principalId the principalId value to set. - * @return the DatabasePrincipalAssignmentInner object itself. - */ - public DatabasePrincipalAssignmentInner withPrincipalId(String principalId) { - if (this.innerProperties() == null) { - this.innerProperties = new DatabasePrincipalProperties(); - } - this.innerProperties().withPrincipalId(principalId); - return this; - } - - /** - * Get the role property: Database principal role. - * - * @return the role value. - */ - public DatabasePrincipalRole role() { - return this.innerProperties() == null ? null : this.innerProperties().role(); - } - - /** - * Set the role property: Database principal role. - * - * @param role the role value to set. - * @return the DatabasePrincipalAssignmentInner object itself. - */ - public DatabasePrincipalAssignmentInner withRole(DatabasePrincipalRole role) { - if (this.innerProperties() == null) { - this.innerProperties = new DatabasePrincipalProperties(); - } - this.innerProperties().withRole(role); - return this; - } - - /** - * Get the tenantId property: The tenant id of the principal. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.innerProperties() == null ? null : this.innerProperties().tenantId(); - } - - /** - * Set the tenantId property: The tenant id of the principal. - * - * @param tenantId the tenantId value to set. - * @return the DatabasePrincipalAssignmentInner object itself. - */ - public DatabasePrincipalAssignmentInner withTenantId(String tenantId) { - if (this.innerProperties() == null) { - this.innerProperties = new DatabasePrincipalProperties(); - } - this.innerProperties().withTenantId(tenantId); - return this; - } - - /** - * Get the principalType property: Principal type. - * - * @return the principalType value. - */ - public PrincipalType principalType() { - return this.innerProperties() == null ? null : this.innerProperties().principalType(); - } - - /** - * Set the principalType property: Principal type. - * - * @param principalType the principalType value to set. - * @return the DatabasePrincipalAssignmentInner object itself. - */ - public DatabasePrincipalAssignmentInner withPrincipalType(PrincipalType principalType) { - if (this.innerProperties() == null) { - this.innerProperties = new DatabasePrincipalProperties(); - } - this.innerProperties().withPrincipalType(principalType); - return this; - } - - /** - * Get the tenantName property: The tenant name of the principal. - * - * @return the tenantName value. - */ - public String tenantName() { - return this.innerProperties() == null ? null : this.innerProperties().tenantName(); - } - - /** - * Get the principalName property: The principal name. - * - * @return the principalName value. - */ - public String principalName() { - return this.innerProperties() == null ? null : this.innerProperties().principalName(); - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). - * - * @return the aadObjectId value. - */ - public String aadObjectId() { - return this.innerProperties() == null ? null : this.innerProperties().aadObjectId(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DatabasePrincipalAssignmentInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DatabasePrincipalAssignmentInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the DatabasePrincipalAssignmentInner. - */ - public static DatabasePrincipalAssignmentInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DatabasePrincipalAssignmentInner deserializedDatabasePrincipalAssignmentInner - = new DatabasePrincipalAssignmentInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedDatabasePrincipalAssignmentInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedDatabasePrincipalAssignmentInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedDatabasePrincipalAssignmentInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedDatabasePrincipalAssignmentInner.innerProperties - = DatabasePrincipalProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedDatabasePrincipalAssignmentInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDatabasePrincipalAssignmentInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalProperties.java deleted file mode 100644 index f61e1d833673..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalProperties.java +++ /dev/null @@ -1,268 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; - -/** - * A class representing database principal property. - */ -@Fluent -public final class DatabasePrincipalProperties implements JsonSerializable { - /* - * The principal ID assigned to the database principal. It can be a user email, application ID, or security group - * name. - */ - private String principalId; - - /* - * Database principal role. - */ - private DatabasePrincipalRole role; - - /* - * The tenant id of the principal - */ - private String tenantId; - - /* - * Principal type. - */ - private PrincipalType principalType; - - /* - * The tenant name of the principal - */ - private String tenantName; - - /* - * The principal name - */ - private String principalName; - - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /* - * The service principal object id in AAD (Azure active directory) - */ - private String aadObjectId; - - /** - * Creates an instance of DatabasePrincipalProperties class. - */ - public DatabasePrincipalProperties() { - } - - /** - * Get the principalId property: The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. - * - * @return the principalId value. - */ - public String principalId() { - return this.principalId; - } - - /** - * Set the principalId property: The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. - * - * @param principalId the principalId value to set. - * @return the DatabasePrincipalProperties object itself. - */ - public DatabasePrincipalProperties withPrincipalId(String principalId) { - this.principalId = principalId; - return this; - } - - /** - * Get the role property: Database principal role. - * - * @return the role value. - */ - public DatabasePrincipalRole role() { - return this.role; - } - - /** - * Set the role property: Database principal role. - * - * @param role the role value to set. - * @return the DatabasePrincipalProperties object itself. - */ - public DatabasePrincipalProperties withRole(DatabasePrincipalRole role) { - this.role = role; - return this; - } - - /** - * Get the tenantId property: The tenant id of the principal. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenantId property: The tenant id of the principal. - * - * @param tenantId the tenantId value to set. - * @return the DatabasePrincipalProperties object itself. - */ - public DatabasePrincipalProperties withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the principalType property: Principal type. - * - * @return the principalType value. - */ - public PrincipalType principalType() { - return this.principalType; - } - - /** - * Set the principalType property: Principal type. - * - * @param principalType the principalType value to set. - * @return the DatabasePrincipalProperties object itself. - */ - public DatabasePrincipalProperties withPrincipalType(PrincipalType principalType) { - this.principalType = principalType; - return this; - } - - /** - * Get the tenantName property: The tenant name of the principal. - * - * @return the tenantName value. - */ - public String tenantName() { - return this.tenantName; - } - - /** - * Get the principalName property: The principal name. - * - * @return the principalName value. - */ - public String principalName() { - return this.principalName; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). - * - * @return the aadObjectId value. - */ - public String aadObjectId() { - return this.aadObjectId; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (principalId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property principalId in model DatabasePrincipalProperties")); - } - if (role() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property role in model DatabasePrincipalProperties")); - } - if (principalType() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property principalType in model DatabasePrincipalProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabasePrincipalProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("principalId", this.principalId); - jsonWriter.writeStringField("role", this.role == null ? null : this.role.toString()); - jsonWriter.writeStringField("principalType", this.principalType == null ? null : this.principalType.toString()); - jsonWriter.writeStringField("tenantId", this.tenantId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DatabasePrincipalProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DatabasePrincipalProperties if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the DatabasePrincipalProperties. - */ - public static DatabasePrincipalProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DatabasePrincipalProperties deserializedDatabasePrincipalProperties = new DatabasePrincipalProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("principalId".equals(fieldName)) { - deserializedDatabasePrincipalProperties.principalId = reader.getString(); - } else if ("role".equals(fieldName)) { - deserializedDatabasePrincipalProperties.role = DatabasePrincipalRole.fromString(reader.getString()); - } else if ("principalType".equals(fieldName)) { - deserializedDatabasePrincipalProperties.principalType - = PrincipalType.fromString(reader.getString()); - } else if ("tenantId".equals(fieldName)) { - deserializedDatabasePrincipalProperties.tenantId = reader.getString(); - } else if ("tenantName".equals(fieldName)) { - deserializedDatabasePrincipalProperties.tenantName = reader.getString(); - } else if ("principalName".equals(fieldName)) { - deserializedDatabasePrincipalProperties.principalName = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedDatabasePrincipalProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else if ("aadObjectId".equals(fieldName)) { - deserializedDatabasePrincipalProperties.aadObjectId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDatabasePrincipalProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsInner.java deleted file mode 100644 index 7c73d8a23979..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsInner.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Dedicated Sql Minimal Tls Settings Info. - */ -@Fluent -public final class DedicatedSQLminimalTlsSettingsInner extends ProxyResource { - /* - * Resource location. - */ - private String location; - - /* - * Resource properties. - */ - private DedicatedSQLminimalTlsSettingsProperties innerProperties; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of DedicatedSQLminimalTlsSettingsInner class. - */ - public DedicatedSQLminimalTlsSettingsInner() { - } - - /** - * Get the location property: Resource location. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Get the innerProperties property: Resource properties. - * - * @return the innerProperties value. - */ - private DedicatedSQLminimalTlsSettingsProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the minimalTlsVersion property: The minimal tls version of the sql server. - * - * @return the minimalTlsVersion value. - */ - public String minimalTlsVersion() { - return this.innerProperties() == null ? null : this.innerProperties().minimalTlsVersion(); - } - - /** - * Set the minimalTlsVersion property: The minimal tls version of the sql server. - * - * @param minimalTlsVersion the minimalTlsVersion value to set. - * @return the DedicatedSQLminimalTlsSettingsInner object itself. - */ - public DedicatedSQLminimalTlsSettingsInner withMinimalTlsVersion(String minimalTlsVersion) { - if (this.innerProperties() == null) { - this.innerProperties = new DedicatedSQLminimalTlsSettingsProperties(); - } - this.innerProperties().withMinimalTlsVersion(minimalTlsVersion); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DedicatedSQLminimalTlsSettingsInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DedicatedSQLminimalTlsSettingsInner if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the DedicatedSQLminimalTlsSettingsInner. - */ - public static DedicatedSQLminimalTlsSettingsInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DedicatedSQLminimalTlsSettingsInner deserializedDedicatedSQLminimalTlsSettingsInner - = new DedicatedSQLminimalTlsSettingsInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedDedicatedSQLminimalTlsSettingsInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedDedicatedSQLminimalTlsSettingsInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedDedicatedSQLminimalTlsSettingsInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedDedicatedSQLminimalTlsSettingsInner.location = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedDedicatedSQLminimalTlsSettingsInner.innerProperties - = DedicatedSQLminimalTlsSettingsProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDedicatedSQLminimalTlsSettingsInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsProperties.java deleted file mode 100644 index e5cf84f73b20..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsProperties.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Properties of a dedicated sql minimal tls settings. - */ -@Fluent -public final class DedicatedSQLminimalTlsSettingsProperties - implements JsonSerializable { - /* - * The minimal tls version of the sql server. - */ - private String minimalTlsVersion; - - /** - * Creates an instance of DedicatedSQLminimalTlsSettingsProperties class. - */ - public DedicatedSQLminimalTlsSettingsProperties() { - } - - /** - * Get the minimalTlsVersion property: The minimal tls version of the sql server. - * - * @return the minimalTlsVersion value. - */ - public String minimalTlsVersion() { - return this.minimalTlsVersion; - } - - /** - * Set the minimalTlsVersion property: The minimal tls version of the sql server. - * - * @param minimalTlsVersion the minimalTlsVersion value to set. - * @return the DedicatedSQLminimalTlsSettingsProperties object itself. - */ - public DedicatedSQLminimalTlsSettingsProperties withMinimalTlsVersion(String minimalTlsVersion) { - this.minimalTlsVersion = minimalTlsVersion; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("minimalTlsVersion", this.minimalTlsVersion); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DedicatedSQLminimalTlsSettingsProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DedicatedSQLminimalTlsSettingsProperties if the JsonReader was pointing to an instance of - * it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DedicatedSQLminimalTlsSettingsProperties. - */ - public static DedicatedSQLminimalTlsSettingsProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DedicatedSQLminimalTlsSettingsProperties deserializedDedicatedSQLminimalTlsSettingsProperties - = new DedicatedSQLminimalTlsSettingsProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("minimalTlsVersion".equals(fieldName)) { - deserializedDedicatedSQLminimalTlsSettingsProperties.minimalTlsVersion = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDedicatedSQLminimalTlsSettingsProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventGridConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventGridConnectionProperties.java deleted file mode 100644 index 228006e876e6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventGridConnectionProperties.java +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.BlobStorageEventType; -import com.azure.resourcemanager.synapse.models.EventGridDataFormat; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; - -/** - * Class representing the Kusto event grid connection properties. - */ -@Fluent -public final class EventGridConnectionProperties implements JsonSerializable { - /* - * The resource ID of the storage account where the data resides. - */ - private String storageAccountResourceId; - - /* - * The resource ID where the event grid is configured to send events. - */ - private String eventHubResourceId; - - /* - * The event hub consumer group. - */ - private String consumerGroup; - - /* - * The table where the data should be ingested. Optionally the table information can be added to each message. - */ - private String tableName; - - /* - * The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. - */ - private String mappingRuleName; - - /* - * The data format of the message. Optionally the data format can be added to each message. - */ - private EventGridDataFormat dataFormat; - - /* - * A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file - */ - private Boolean ignoreFirstRecord; - - /* - * The name of blob storage event type to process. - */ - private BlobStorageEventType blobStorageEventType; - - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /** - * Creates an instance of EventGridConnectionProperties class. - */ - public EventGridConnectionProperties() { - } - - /** - * Get the storageAccountResourceId property: The resource ID of the storage account where the data resides. - * - * @return the storageAccountResourceId value. - */ - public String storageAccountResourceId() { - return this.storageAccountResourceId; - } - - /** - * Set the storageAccountResourceId property: The resource ID of the storage account where the data resides. - * - * @param storageAccountResourceId the storageAccountResourceId value to set. - * @return the EventGridConnectionProperties object itself. - */ - public EventGridConnectionProperties withStorageAccountResourceId(String storageAccountResourceId) { - this.storageAccountResourceId = storageAccountResourceId; - return this; - } - - /** - * Get the eventHubResourceId property: The resource ID where the event grid is configured to send events. - * - * @return the eventHubResourceId value. - */ - public String eventHubResourceId() { - return this.eventHubResourceId; - } - - /** - * Set the eventHubResourceId property: The resource ID where the event grid is configured to send events. - * - * @param eventHubResourceId the eventHubResourceId value to set. - * @return the EventGridConnectionProperties object itself. - */ - public EventGridConnectionProperties withEventHubResourceId(String eventHubResourceId) { - this.eventHubResourceId = eventHubResourceId; - return this; - } - - /** - * Get the consumerGroup property: The event hub consumer group. - * - * @return the consumerGroup value. - */ - public String consumerGroup() { - return this.consumerGroup; - } - - /** - * Set the consumerGroup property: The event hub consumer group. - * - * @param consumerGroup the consumerGroup value to set. - * @return the EventGridConnectionProperties object itself. - */ - public EventGridConnectionProperties withConsumerGroup(String consumerGroup) { - this.consumerGroup = consumerGroup; - return this; - } - - /** - * Get the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @return the tableName value. - */ - public String tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @param tableName the tableName value to set. - * @return the EventGridConnectionProperties object itself. - */ - public EventGridConnectionProperties withTableName(String tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @return the mappingRuleName value. - */ - public String mappingRuleName() { - return this.mappingRuleName; - } - - /** - * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @param mappingRuleName the mappingRuleName value to set. - * @return the EventGridConnectionProperties object itself. - */ - public EventGridConnectionProperties withMappingRuleName(String mappingRuleName) { - this.mappingRuleName = mappingRuleName; - return this; - } - - /** - * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @return the dataFormat value. - */ - public EventGridDataFormat dataFormat() { - return this.dataFormat; - } - - /** - * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @param dataFormat the dataFormat value to set. - * @return the EventGridConnectionProperties object itself. - */ - public EventGridConnectionProperties withDataFormat(EventGridDataFormat dataFormat) { - this.dataFormat = dataFormat; - return this; - } - - /** - * Get the ignoreFirstRecord property: A Boolean value that, if set to true, indicates that ingestion should ignore - * the first record of every file. - * - * @return the ignoreFirstRecord value. - */ - public Boolean ignoreFirstRecord() { - return this.ignoreFirstRecord; - } - - /** - * Set the ignoreFirstRecord property: A Boolean value that, if set to true, indicates that ingestion should ignore - * the first record of every file. - * - * @param ignoreFirstRecord the ignoreFirstRecord value to set. - * @return the EventGridConnectionProperties object itself. - */ - public EventGridConnectionProperties withIgnoreFirstRecord(Boolean ignoreFirstRecord) { - this.ignoreFirstRecord = ignoreFirstRecord; - return this; - } - - /** - * Get the blobStorageEventType property: The name of blob storage event type to process. - * - * @return the blobStorageEventType value. - */ - public BlobStorageEventType blobStorageEventType() { - return this.blobStorageEventType; - } - - /** - * Set the blobStorageEventType property: The name of blob storage event type to process. - * - * @param blobStorageEventType the blobStorageEventType value to set. - * @return the EventGridConnectionProperties object itself. - */ - public EventGridConnectionProperties withBlobStorageEventType(BlobStorageEventType blobStorageEventType) { - this.blobStorageEventType = blobStorageEventType; - return this; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageAccountResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property storageAccountResourceId in model EventGridConnectionProperties")); - } - if (eventHubResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property eventHubResourceId in model EventGridConnectionProperties")); - } - if (consumerGroup() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property consumerGroup in model EventGridConnectionProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EventGridConnectionProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("storageAccountResourceId", this.storageAccountResourceId); - jsonWriter.writeStringField("eventHubResourceId", this.eventHubResourceId); - jsonWriter.writeStringField("consumerGroup", this.consumerGroup); - jsonWriter.writeStringField("tableName", this.tableName); - jsonWriter.writeStringField("mappingRuleName", this.mappingRuleName); - jsonWriter.writeStringField("dataFormat", this.dataFormat == null ? null : this.dataFormat.toString()); - jsonWriter.writeBooleanField("ignoreFirstRecord", this.ignoreFirstRecord); - jsonWriter.writeStringField("blobStorageEventType", - this.blobStorageEventType == null ? null : this.blobStorageEventType.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EventGridConnectionProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EventGridConnectionProperties if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the EventGridConnectionProperties. - */ - public static EventGridConnectionProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EventGridConnectionProperties deserializedEventGridConnectionProperties - = new EventGridConnectionProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("storageAccountResourceId".equals(fieldName)) { - deserializedEventGridConnectionProperties.storageAccountResourceId = reader.getString(); - } else if ("eventHubResourceId".equals(fieldName)) { - deserializedEventGridConnectionProperties.eventHubResourceId = reader.getString(); - } else if ("consumerGroup".equals(fieldName)) { - deserializedEventGridConnectionProperties.consumerGroup = reader.getString(); - } else if ("tableName".equals(fieldName)) { - deserializedEventGridConnectionProperties.tableName = reader.getString(); - } else if ("mappingRuleName".equals(fieldName)) { - deserializedEventGridConnectionProperties.mappingRuleName = reader.getString(); - } else if ("dataFormat".equals(fieldName)) { - deserializedEventGridConnectionProperties.dataFormat - = EventGridDataFormat.fromString(reader.getString()); - } else if ("ignoreFirstRecord".equals(fieldName)) { - deserializedEventGridConnectionProperties.ignoreFirstRecord - = reader.getNullable(JsonReader::getBoolean); - } else if ("blobStorageEventType".equals(fieldName)) { - deserializedEventGridConnectionProperties.blobStorageEventType - = BlobStorageEventType.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedEventGridConnectionProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedEventGridConnectionProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventHubConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventHubConnectionProperties.java deleted file mode 100644 index 78146105869d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventHubConnectionProperties.java +++ /dev/null @@ -1,335 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.Compression; -import com.azure.resourcemanager.synapse.models.EventHubDataFormat; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; -import java.util.List; - -/** - * Class representing the Kusto event hub connection properties. - */ -@Fluent -public final class EventHubConnectionProperties implements JsonSerializable { - /* - * The resource ID of the event hub to be used to create a data connection. - */ - private String eventHubResourceId; - - /* - * The event hub consumer group. - */ - private String consumerGroup; - - /* - * The table where the data should be ingested. Optionally the table information can be added to each message. - */ - private String tableName; - - /* - * The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. - */ - private String mappingRuleName; - - /* - * The data format of the message. Optionally the data format can be added to each message. - */ - private EventHubDataFormat dataFormat; - - /* - * System properties of the event hub - */ - private List eventSystemProperties; - - /* - * The event hub messages compression type - */ - private Compression compression; - - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /* - * The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub. - */ - private String managedIdentityResourceId; - - /** - * Creates an instance of EventHubConnectionProperties class. - */ - public EventHubConnectionProperties() { - } - - /** - * Get the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection. - * - * @return the eventHubResourceId value. - */ - public String eventHubResourceId() { - return this.eventHubResourceId; - } - - /** - * Set the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection. - * - * @param eventHubResourceId the eventHubResourceId value to set. - * @return the EventHubConnectionProperties object itself. - */ - public EventHubConnectionProperties withEventHubResourceId(String eventHubResourceId) { - this.eventHubResourceId = eventHubResourceId; - return this; - } - - /** - * Get the consumerGroup property: The event hub consumer group. - * - * @return the consumerGroup value. - */ - public String consumerGroup() { - return this.consumerGroup; - } - - /** - * Set the consumerGroup property: The event hub consumer group. - * - * @param consumerGroup the consumerGroup value to set. - * @return the EventHubConnectionProperties object itself. - */ - public EventHubConnectionProperties withConsumerGroup(String consumerGroup) { - this.consumerGroup = consumerGroup; - return this; - } - - /** - * Get the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @return the tableName value. - */ - public String tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @param tableName the tableName value to set. - * @return the EventHubConnectionProperties object itself. - */ - public EventHubConnectionProperties withTableName(String tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @return the mappingRuleName value. - */ - public String mappingRuleName() { - return this.mappingRuleName; - } - - /** - * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @param mappingRuleName the mappingRuleName value to set. - * @return the EventHubConnectionProperties object itself. - */ - public EventHubConnectionProperties withMappingRuleName(String mappingRuleName) { - this.mappingRuleName = mappingRuleName; - return this; - } - - /** - * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @return the dataFormat value. - */ - public EventHubDataFormat dataFormat() { - return this.dataFormat; - } - - /** - * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @param dataFormat the dataFormat value to set. - * @return the EventHubConnectionProperties object itself. - */ - public EventHubConnectionProperties withDataFormat(EventHubDataFormat dataFormat) { - this.dataFormat = dataFormat; - return this; - } - - /** - * Get the eventSystemProperties property: System properties of the event hub. - * - * @return the eventSystemProperties value. - */ - public List eventSystemProperties() { - return this.eventSystemProperties; - } - - /** - * Set the eventSystemProperties property: System properties of the event hub. - * - * @param eventSystemProperties the eventSystemProperties value to set. - * @return the EventHubConnectionProperties object itself. - */ - public EventHubConnectionProperties withEventSystemProperties(List eventSystemProperties) { - this.eventSystemProperties = eventSystemProperties; - return this; - } - - /** - * Get the compression property: The event hub messages compression type. - * - * @return the compression value. - */ - public Compression compression() { - return this.compression; - } - - /** - * Set the compression property: The event hub messages compression type. - * - * @param compression the compression value to set. - * @return the EventHubConnectionProperties object itself. - */ - public EventHubConnectionProperties withCompression(Compression compression) { - this.compression = compression; - return this; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. - * - * @return the managedIdentityResourceId value. - */ - public String managedIdentityResourceId() { - return this.managedIdentityResourceId; - } - - /** - * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. - * - * @param managedIdentityResourceId the managedIdentityResourceId value to set. - * @return the EventHubConnectionProperties object itself. - */ - public EventHubConnectionProperties withManagedIdentityResourceId(String managedIdentityResourceId) { - this.managedIdentityResourceId = managedIdentityResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (eventHubResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property eventHubResourceId in model EventHubConnectionProperties")); - } - if (consumerGroup() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property consumerGroup in model EventHubConnectionProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EventHubConnectionProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("eventHubResourceId", this.eventHubResourceId); - jsonWriter.writeStringField("consumerGroup", this.consumerGroup); - jsonWriter.writeStringField("tableName", this.tableName); - jsonWriter.writeStringField("mappingRuleName", this.mappingRuleName); - jsonWriter.writeStringField("dataFormat", this.dataFormat == null ? null : this.dataFormat.toString()); - jsonWriter.writeArrayField("eventSystemProperties", this.eventSystemProperties, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("compression", this.compression == null ? null : this.compression.toString()); - jsonWriter.writeStringField("managedIdentityResourceId", this.managedIdentityResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EventHubConnectionProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EventHubConnectionProperties if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the EventHubConnectionProperties. - */ - public static EventHubConnectionProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EventHubConnectionProperties deserializedEventHubConnectionProperties = new EventHubConnectionProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("eventHubResourceId".equals(fieldName)) { - deserializedEventHubConnectionProperties.eventHubResourceId = reader.getString(); - } else if ("consumerGroup".equals(fieldName)) { - deserializedEventHubConnectionProperties.consumerGroup = reader.getString(); - } else if ("tableName".equals(fieldName)) { - deserializedEventHubConnectionProperties.tableName = reader.getString(); - } else if ("mappingRuleName".equals(fieldName)) { - deserializedEventHubConnectionProperties.mappingRuleName = reader.getString(); - } else if ("dataFormat".equals(fieldName)) { - deserializedEventHubConnectionProperties.dataFormat - = EventHubDataFormat.fromString(reader.getString()); - } else if ("eventSystemProperties".equals(fieldName)) { - List eventSystemProperties = reader.readArray(reader1 -> reader1.getString()); - deserializedEventHubConnectionProperties.eventSystemProperties = eventSystemProperties; - } else if ("compression".equals(fieldName)) { - deserializedEventHubConnectionProperties.compression = Compression.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedEventHubConnectionProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else if ("managedIdentityResourceId".equals(fieldName)) { - deserializedEventHubConnectionProperties.managedIdentityResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedEventHubConnectionProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java index 0c9625e0f43b..14f5ca06fb27 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java @@ -498,55 +498,6 @@ public ExtendedServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelay return this; } - /** - * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @return the isDevopsAuditEnabled value. - */ - public Boolean isDevopsAuditEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().isDevopsAuditEnabled(); - } - - /** - * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. - * @return the ExtendedServerBlobAuditingPolicyInner object itself. - */ - public ExtendedServerBlobAuditingPolicyInner withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new ExtendedServerBlobAuditingPolicyProperties(); - } - this.innerProperties().withIsDevopsAuditEnabled(isDevopsAuditEnabled); - return this; - } - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java index ae7c6f08e670..3da64b6b8319 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java @@ -165,25 +165,6 @@ public final class ExtendedServerBlobAuditingPolicyProperties */ private Integer queueDelayMs; - /* - * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft. - * Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api- - * version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - private Boolean isDevopsAuditEnabled; - /** * Creates an instance of ExtendedServerBlobAuditingPolicyProperties class. */ @@ -577,52 +558,6 @@ public ExtendedServerBlobAuditingPolicyProperties withQueueDelayMs(Integer queue return this; } - /** - * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @return the isDevopsAuditEnabled value. - */ - public Boolean isDevopsAuditEnabled() { - return this.isDevopsAuditEnabled; - } - - /** - * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. - * @return the ExtendedServerBlobAuditingPolicyProperties object itself. - */ - public ExtendedServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { - this.isDevopsAuditEnabled = isDevopsAuditEnabled; - return this; - } - /** * Validates the instance. * @@ -656,7 +591,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("isStorageSecondaryKeyInUse", this.isStorageSecondaryKeyInUse); jsonWriter.writeBooleanField("isAzureMonitorTargetEnabled", this.isAzureMonitorTargetEnabled); jsonWriter.writeNumberField("queueDelayMs", this.queueDelayMs); - jsonWriter.writeBooleanField("isDevopsAuditEnabled", this.isDevopsAuditEnabled); return jsonWriter.writeEndObject(); } @@ -705,9 +639,6 @@ public static ExtendedServerBlobAuditingPolicyProperties fromJson(JsonReader jso } else if ("queueDelayMs".equals(fieldName)) { deserializedExtendedServerBlobAuditingPolicyProperties.queueDelayMs = reader.getNullable(JsonReader::getInt); - } else if ("isDevopsAuditEnabled".equals(fieldName)) { - deserializedExtendedServerBlobAuditingPolicyProperties.isDevopsAuditEnabled - = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java deleted file mode 100644 index 4f07972a2b84..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * A class representing follower database request. - */ -@Fluent -public final class FollowerDatabaseDefinitionInner implements JsonSerializable { - /* - * Resource id of the cluster that follows a database owned by this cluster. - */ - private String kustoPoolResourceId; - - /* - * Resource name of the attached database configuration in the follower cluster. - */ - private String attachedDatabaseConfigurationName; - - /* - * The database name owned by this cluster that was followed. * in case following all databases. - */ - private String databaseName; - - /** - * Creates an instance of FollowerDatabaseDefinitionInner class. - */ - public FollowerDatabaseDefinitionInner() { - } - - /** - * Get the kustoPoolResourceId property: Resource id of the cluster that follows a database owned by this cluster. - * - * @return the kustoPoolResourceId value. - */ - public String kustoPoolResourceId() { - return this.kustoPoolResourceId; - } - - /** - * Set the kustoPoolResourceId property: Resource id of the cluster that follows a database owned by this cluster. - * - * @param kustoPoolResourceId the kustoPoolResourceId value to set. - * @return the FollowerDatabaseDefinitionInner object itself. - */ - public FollowerDatabaseDefinitionInner withKustoPoolResourceId(String kustoPoolResourceId) { - this.kustoPoolResourceId = kustoPoolResourceId; - return this; - } - - /** - * Get the attachedDatabaseConfigurationName property: Resource name of the attached database configuration in the - * follower cluster. - * - * @return the attachedDatabaseConfigurationName value. - */ - public String attachedDatabaseConfigurationName() { - return this.attachedDatabaseConfigurationName; - } - - /** - * Set the attachedDatabaseConfigurationName property: Resource name of the attached database configuration in the - * follower cluster. - * - * @param attachedDatabaseConfigurationName the attachedDatabaseConfigurationName value to set. - * @return the FollowerDatabaseDefinitionInner object itself. - */ - public FollowerDatabaseDefinitionInner - withAttachedDatabaseConfigurationName(String attachedDatabaseConfigurationName) { - this.attachedDatabaseConfigurationName = attachedDatabaseConfigurationName; - return this; - } - - /** - * Get the databaseName property: The database name owned by this cluster that was followed. * in case following all - * databases. - * - * @return the databaseName value. - */ - public String databaseName() { - return this.databaseName; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (kustoPoolResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property kustoPoolResourceId in model FollowerDatabaseDefinitionInner")); - } - if (attachedDatabaseConfigurationName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property attachedDatabaseConfigurationName in model FollowerDatabaseDefinitionInner")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FollowerDatabaseDefinitionInner.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("clusterResourceId", this.kustoPoolResourceId); - jsonWriter.writeStringField("attachedDatabaseConfigurationName", this.attachedDatabaseConfigurationName); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of FollowerDatabaseDefinitionInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of FollowerDatabaseDefinitionInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the FollowerDatabaseDefinitionInner. - */ - public static FollowerDatabaseDefinitionInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - FollowerDatabaseDefinitionInner deserializedFollowerDatabaseDefinitionInner - = new FollowerDatabaseDefinitionInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("clusterResourceId".equals(fieldName)) { - deserializedFollowerDatabaseDefinitionInner.kustoPoolResourceId = reader.getString(); - } else if ("attachedDatabaseConfigurationName".equals(fieldName)) { - deserializedFollowerDatabaseDefinitionInner.attachedDatabaseConfigurationName = reader.getString(); - } else if ("databaseName".equals(fieldName)) { - deserializedFollowerDatabaseDefinitionInner.databaseName = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedFollowerDatabaseDefinitionInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeEnableinteractivequeryInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeEnableinteractivequeryInner.java deleted file mode 100644 index 14b745793528..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeEnableinteractivequeryInner.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.io.IOException; - -/** - * Integration Runtime Operation Status Properties. - */ -@Fluent -public final class IntegrationRuntimeEnableinteractivequeryInner - implements JsonSerializable { - /* - * EnableInteractivequery status of Integrationruntimes. - */ - private WorkspaceStatus status; - - /* - * The operation name. - */ - private String name; - - /* - * The operation properties. - */ - private Object properties; - - /* - * The operation error message. - */ - private String error; - - /** - * Creates an instance of IntegrationRuntimeEnableinteractivequeryInner class. - */ - public IntegrationRuntimeEnableinteractivequeryInner() { - } - - /** - * Get the status property: EnableInteractivequery status of Integrationruntimes. - * - * @return the status value. - */ - public WorkspaceStatus status() { - return this.status; - } - - /** - * Set the status property: EnableInteractivequery status of Integrationruntimes. - * - * @param status the status value to set. - * @return the IntegrationRuntimeEnableinteractivequeryInner object itself. - */ - public IntegrationRuntimeEnableinteractivequeryInner withStatus(WorkspaceStatus status) { - this.status = status; - return this; - } - - /** - * Get the name property: The operation name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The operation name. - * - * @param name the name value to set. - * @return the IntegrationRuntimeEnableinteractivequeryInner object itself. - */ - public IntegrationRuntimeEnableinteractivequeryInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the properties property: The operation properties. - * - * @return the properties value. - */ - public Object properties() { - return this.properties; - } - - /** - * Set the properties property: The operation properties. - * - * @param properties the properties value to set. - * @return the IntegrationRuntimeEnableinteractivequeryInner object itself. - */ - public IntegrationRuntimeEnableinteractivequeryInner withProperties(Object properties) { - this.properties = properties; - return this; - } - - /** - * Get the error property: The operation error message. - * - * @return the error value. - */ - public String error() { - return this.error; - } - - /** - * Set the error property: The operation error message. - * - * @param error the error value to set. - * @return the IntegrationRuntimeEnableinteractivequeryInner object itself. - */ - public IntegrationRuntimeEnableinteractivequeryInner withError(String error) { - this.error = error; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeUntypedField("properties", this.properties); - jsonWriter.writeStringField("error", this.error); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IntegrationRuntimeEnableinteractivequeryInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IntegrationRuntimeEnableinteractivequeryInner if the JsonReader was pointing to an - * instance of it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the IntegrationRuntimeEnableinteractivequeryInner. - */ - public static IntegrationRuntimeEnableinteractivequeryInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IntegrationRuntimeEnableinteractivequeryInner deserializedIntegrationRuntimeEnableinteractivequeryInner - = new IntegrationRuntimeEnableinteractivequeryInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("status".equals(fieldName)) { - deserializedIntegrationRuntimeEnableinteractivequeryInner.status - = WorkspaceStatus.fromString(reader.getString()); - } else if ("name".equals(fieldName)) { - deserializedIntegrationRuntimeEnableinteractivequeryInner.name = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedIntegrationRuntimeEnableinteractivequeryInner.properties = reader.readUntyped(); - } else if ("error".equals(fieldName)) { - deserializedIntegrationRuntimeEnableinteractivequeryInner.error = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedIntegrationRuntimeEnableinteractivequeryInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOperationStatusInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOperationStatusInner.java deleted file mode 100644 index 1433a9db8a1e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOperationStatusInner.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.io.IOException; - -/** - * Integration Runtime Operation Status Properties. - */ -@Fluent -public final class IntegrationRuntimeOperationStatusInner - implements JsonSerializable { - /* - * status of Start Integrationruntimes. - */ - private WorkspaceStatus status; - - /* - * The operation name. - */ - private String name; - - /* - * The operation properties. - */ - private Object properties; - - /* - * The operation error message. - */ - private String error; - - /** - * Creates an instance of IntegrationRuntimeOperationStatusInner class. - */ - public IntegrationRuntimeOperationStatusInner() { - } - - /** - * Get the status property: status of Start Integrationruntimes. - * - * @return the status value. - */ - public WorkspaceStatus status() { - return this.status; - } - - /** - * Set the status property: status of Start Integrationruntimes. - * - * @param status the status value to set. - * @return the IntegrationRuntimeOperationStatusInner object itself. - */ - public IntegrationRuntimeOperationStatusInner withStatus(WorkspaceStatus status) { - this.status = status; - return this; - } - - /** - * Get the name property: The operation name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The operation name. - * - * @param name the name value to set. - * @return the IntegrationRuntimeOperationStatusInner object itself. - */ - public IntegrationRuntimeOperationStatusInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the properties property: The operation properties. - * - * @return the properties value. - */ - public Object properties() { - return this.properties; - } - - /** - * Set the properties property: The operation properties. - * - * @param properties the properties value to set. - * @return the IntegrationRuntimeOperationStatusInner object itself. - */ - public IntegrationRuntimeOperationStatusInner withProperties(Object properties) { - this.properties = properties; - return this; - } - - /** - * Get the error property: The operation error message. - * - * @return the error value. - */ - public String error() { - return this.error; - } - - /** - * Set the error property: The operation error message. - * - * @param error the error value to set. - * @return the IntegrationRuntimeOperationStatusInner object itself. - */ - public IntegrationRuntimeOperationStatusInner withError(String error) { - this.error = error; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeUntypedField("properties", this.properties); - jsonWriter.writeStringField("error", this.error); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IntegrationRuntimeOperationStatusInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IntegrationRuntimeOperationStatusInner if the JsonReader was pointing to an instance of - * it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the IntegrationRuntimeOperationStatusInner. - */ - public static IntegrationRuntimeOperationStatusInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IntegrationRuntimeOperationStatusInner deserializedIntegrationRuntimeOperationStatusInner - = new IntegrationRuntimeOperationStatusInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("status".equals(fieldName)) { - deserializedIntegrationRuntimeOperationStatusInner.status - = WorkspaceStatus.fromString(reader.getString()); - } else if ("name".equals(fieldName)) { - deserializedIntegrationRuntimeOperationStatusInner.name = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedIntegrationRuntimeOperationStatusInner.properties = reader.readUntyped(); - } else if ("error".equals(fieldName)) { - deserializedIntegrationRuntimeOperationStatusInner.error = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedIntegrationRuntimeOperationStatusInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStopOperationStatusInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStopOperationStatusInner.java deleted file mode 100644 index b88d078cb02c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStopOperationStatusInner.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.io.IOException; - -/** - * Integration Runtime Operation Status Properties. - */ -@Fluent -public final class IntegrationRuntimeStopOperationStatusInner - implements JsonSerializable { - /* - * status of Start Integrationruntimes. - */ - private WorkspaceStatus status; - - /* - * The operation name. - */ - private String name; - - /* - * The operation properties. - */ - private Object properties; - - /* - * The operation error message. - */ - private String error; - - /** - * Creates an instance of IntegrationRuntimeStopOperationStatusInner class. - */ - public IntegrationRuntimeStopOperationStatusInner() { - } - - /** - * Get the status property: status of Start Integrationruntimes. - * - * @return the status value. - */ - public WorkspaceStatus status() { - return this.status; - } - - /** - * Set the status property: status of Start Integrationruntimes. - * - * @param status the status value to set. - * @return the IntegrationRuntimeStopOperationStatusInner object itself. - */ - public IntegrationRuntimeStopOperationStatusInner withStatus(WorkspaceStatus status) { - this.status = status; - return this; - } - - /** - * Get the name property: The operation name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The operation name. - * - * @param name the name value to set. - * @return the IntegrationRuntimeStopOperationStatusInner object itself. - */ - public IntegrationRuntimeStopOperationStatusInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the properties property: The operation properties. - * - * @return the properties value. - */ - public Object properties() { - return this.properties; - } - - /** - * Set the properties property: The operation properties. - * - * @param properties the properties value to set. - * @return the IntegrationRuntimeStopOperationStatusInner object itself. - */ - public IntegrationRuntimeStopOperationStatusInner withProperties(Object properties) { - this.properties = properties; - return this; - } - - /** - * Get the error property: The operation error message. - * - * @return the error value. - */ - public String error() { - return this.error; - } - - /** - * Set the error property: The operation error message. - * - * @param error the error value to set. - * @return the IntegrationRuntimeStopOperationStatusInner object itself. - */ - public IntegrationRuntimeStopOperationStatusInner withError(String error) { - this.error = error; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeUntypedField("properties", this.properties); - jsonWriter.writeStringField("error", this.error); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IntegrationRuntimeStopOperationStatusInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IntegrationRuntimeStopOperationStatusInner if the JsonReader was pointing to an instance - * of it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the IntegrationRuntimeStopOperationStatusInner. - */ - public static IntegrationRuntimeStopOperationStatusInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IntegrationRuntimeStopOperationStatusInner deserializedIntegrationRuntimeStopOperationStatusInner - = new IntegrationRuntimeStopOperationStatusInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("status".equals(fieldName)) { - deserializedIntegrationRuntimeStopOperationStatusInner.status - = WorkspaceStatus.fromString(reader.getString()); - } else if ("name".equals(fieldName)) { - deserializedIntegrationRuntimeStopOperationStatusInner.name = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedIntegrationRuntimeStopOperationStatusInner.properties = reader.readUntyped(); - } else if ("error".equals(fieldName)) { - deserializedIntegrationRuntimeStopOperationStatusInner.error = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedIntegrationRuntimeStopOperationStatusInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java deleted file mode 100644 index a011211beafe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.IotHubDataFormat; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; -import java.util.List; - -/** - * Class representing the Kusto Iot hub connection properties. - */ -@Fluent -public final class IotHubConnectionProperties implements JsonSerializable { - /* - * The resource ID of the Iot hub to be used to create a data connection. - */ - private String iotHubResourceId; - - /* - * The iot hub consumer group. - */ - private String consumerGroup; - - /* - * The table where the data should be ingested. Optionally the table information can be added to each message. - */ - private String tableName; - - /* - * The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. - */ - private String mappingRuleName; - - /* - * The data format of the message. Optionally the data format can be added to each message. - */ - private IotHubDataFormat dataFormat; - - /* - * System properties of the iot hub - */ - private List eventSystemProperties; - - /* - * The name of the share access policy - */ - private String sharedAccessPolicyName; - - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /** - * Creates an instance of IotHubConnectionProperties class. - */ - public IotHubConnectionProperties() { - } - - /** - * Get the iotHubResourceId property: The resource ID of the Iot hub to be used to create a data connection. - * - * @return the iotHubResourceId value. - */ - public String iotHubResourceId() { - return this.iotHubResourceId; - } - - /** - * Set the iotHubResourceId property: The resource ID of the Iot hub to be used to create a data connection. - * - * @param iotHubResourceId the iotHubResourceId value to set. - * @return the IotHubConnectionProperties object itself. - */ - public IotHubConnectionProperties withIotHubResourceId(String iotHubResourceId) { - this.iotHubResourceId = iotHubResourceId; - return this; - } - - /** - * Get the consumerGroup property: The iot hub consumer group. - * - * @return the consumerGroup value. - */ - public String consumerGroup() { - return this.consumerGroup; - } - - /** - * Set the consumerGroup property: The iot hub consumer group. - * - * @param consumerGroup the consumerGroup value to set. - * @return the IotHubConnectionProperties object itself. - */ - public IotHubConnectionProperties withConsumerGroup(String consumerGroup) { - this.consumerGroup = consumerGroup; - return this; - } - - /** - * Get the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @return the tableName value. - */ - public String tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @param tableName the tableName value to set. - * @return the IotHubConnectionProperties object itself. - */ - public IotHubConnectionProperties withTableName(String tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @return the mappingRuleName value. - */ - public String mappingRuleName() { - return this.mappingRuleName; - } - - /** - * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @param mappingRuleName the mappingRuleName value to set. - * @return the IotHubConnectionProperties object itself. - */ - public IotHubConnectionProperties withMappingRuleName(String mappingRuleName) { - this.mappingRuleName = mappingRuleName; - return this; - } - - /** - * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @return the dataFormat value. - */ - public IotHubDataFormat dataFormat() { - return this.dataFormat; - } - - /** - * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @param dataFormat the dataFormat value to set. - * @return the IotHubConnectionProperties object itself. - */ - public IotHubConnectionProperties withDataFormat(IotHubDataFormat dataFormat) { - this.dataFormat = dataFormat; - return this; - } - - /** - * Get the eventSystemProperties property: System properties of the iot hub. - * - * @return the eventSystemProperties value. - */ - public List eventSystemProperties() { - return this.eventSystemProperties; - } - - /** - * Set the eventSystemProperties property: System properties of the iot hub. - * - * @param eventSystemProperties the eventSystemProperties value to set. - * @return the IotHubConnectionProperties object itself. - */ - public IotHubConnectionProperties withEventSystemProperties(List eventSystemProperties) { - this.eventSystemProperties = eventSystemProperties; - return this; - } - - /** - * Get the sharedAccessPolicyName property: The name of the share access policy. - * - * @return the sharedAccessPolicyName value. - */ - public String sharedAccessPolicyName() { - return this.sharedAccessPolicyName; - } - - /** - * Set the sharedAccessPolicyName property: The name of the share access policy. - * - * @param sharedAccessPolicyName the sharedAccessPolicyName value to set. - * @return the IotHubConnectionProperties object itself. - */ - public IotHubConnectionProperties withSharedAccessPolicyName(String sharedAccessPolicyName) { - this.sharedAccessPolicyName = sharedAccessPolicyName; - return this; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (iotHubResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property iotHubResourceId in model IotHubConnectionProperties")); - } - if (consumerGroup() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property consumerGroup in model IotHubConnectionProperties")); - } - if (sharedAccessPolicyName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property sharedAccessPolicyName in model IotHubConnectionProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IotHubConnectionProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("iotHubResourceId", this.iotHubResourceId); - jsonWriter.writeStringField("consumerGroup", this.consumerGroup); - jsonWriter.writeStringField("sharedAccessPolicyName", this.sharedAccessPolicyName); - jsonWriter.writeStringField("tableName", this.tableName); - jsonWriter.writeStringField("mappingRuleName", this.mappingRuleName); - jsonWriter.writeStringField("dataFormat", this.dataFormat == null ? null : this.dataFormat.toString()); - jsonWriter.writeArrayField("eventSystemProperties", this.eventSystemProperties, - (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IotHubConnectionProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IotHubConnectionProperties if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the IotHubConnectionProperties. - */ - public static IotHubConnectionProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IotHubConnectionProperties deserializedIotHubConnectionProperties = new IotHubConnectionProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("iotHubResourceId".equals(fieldName)) { - deserializedIotHubConnectionProperties.iotHubResourceId = reader.getString(); - } else if ("consumerGroup".equals(fieldName)) { - deserializedIotHubConnectionProperties.consumerGroup = reader.getString(); - } else if ("sharedAccessPolicyName".equals(fieldName)) { - deserializedIotHubConnectionProperties.sharedAccessPolicyName = reader.getString(); - } else if ("tableName".equals(fieldName)) { - deserializedIotHubConnectionProperties.tableName = reader.getString(); - } else if ("mappingRuleName".equals(fieldName)) { - deserializedIotHubConnectionProperties.mappingRuleName = reader.getString(); - } else if ("dataFormat".equals(fieldName)) { - deserializedIotHubConnectionProperties.dataFormat = IotHubDataFormat.fromString(reader.getString()); - } else if ("eventSystemProperties".equals(fieldName)) { - List eventSystemProperties = reader.readArray(reader1 -> reader1.getString()); - deserializedIotHubConnectionProperties.eventSystemProperties = eventSystemProperties; - } else if ("provisioningState".equals(fieldName)) { - deserializedIotHubConnectionProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedIotHubConnectionProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java deleted file mode 100644 index d9f90c73a444..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java +++ /dev/null @@ -1,384 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import com.azure.resourcemanager.synapse.models.State; -import java.io.IOException; -import java.util.Map; - -/** - * Class representing a Kusto kusto pool. - */ -@Fluent -public final class KustoPoolInner extends Resource { - /* - * The SKU of the kusto pool. - */ - private AzureSku sku; - - /* - * The kusto pool properties. - */ - private KustoPoolProperties innerProperties; - - /* - * A unique read-only string that changes whenever the resource is updated. - */ - private String etag; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of KustoPoolInner class. - */ - public KustoPoolInner() { - } - - /** - * Get the sku property: The SKU of the kusto pool. - * - * @return the sku value. - */ - public AzureSku sku() { - return this.sku; - } - - /** - * Set the sku property: The SKU of the kusto pool. - * - * @param sku the sku value to set. - * @return the KustoPoolInner object itself. - */ - public KustoPoolInner withSku(AzureSku sku) { - this.sku = sku; - return this; - } - - /** - * Get the innerProperties property: The kusto pool properties. - * - * @return the innerProperties value. - */ - private KustoPoolProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public KustoPoolInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public KustoPoolInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Get the state property: The state of the resource. - * - * @return the state value. - */ - public State state() { - return this.innerProperties() == null ? null : this.innerProperties().state(); - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the uri property: The Kusto Pool URI. - * - * @return the uri value. - */ - public String uri() { - return this.innerProperties() == null ? null : this.innerProperties().uri(); - } - - /** - * Get the dataIngestionUri property: The Kusto Pool data ingestion URI. - * - * @return the dataIngestionUri value. - */ - public String dataIngestionUri() { - return this.innerProperties() == null ? null : this.innerProperties().dataIngestionUri(); - } - - /** - * Get the stateReason property: The reason for the Kusto Pool's current state. - * - * @return the stateReason value. - */ - public String stateReason() { - return this.innerProperties() == null ? null : this.innerProperties().stateReason(); - } - - /** - * Get the optimizedAutoscale property: Optimized auto scale definition. - * - * @return the optimizedAutoscale value. - */ - public OptimizedAutoscale optimizedAutoscale() { - return this.innerProperties() == null ? null : this.innerProperties().optimizedAutoscale(); - } - - /** - * Set the optimizedAutoscale property: Optimized auto scale definition. - * - * @param optimizedAutoscale the optimizedAutoscale value to set. - * @return the KustoPoolInner object itself. - */ - public KustoPoolInner withOptimizedAutoscale(OptimizedAutoscale optimizedAutoscale) { - if (this.innerProperties() == null) { - this.innerProperties = new KustoPoolProperties(); - } - this.innerProperties().withOptimizedAutoscale(optimizedAutoscale); - return this; - } - - /** - * Get the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * - * @return the enableStreamingIngest value. - */ - public Boolean enableStreamingIngest() { - return this.innerProperties() == null ? null : this.innerProperties().enableStreamingIngest(); - } - - /** - * Set the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * - * @param enableStreamingIngest the enableStreamingIngest value to set. - * @return the KustoPoolInner object itself. - */ - public KustoPoolInner withEnableStreamingIngest(Boolean enableStreamingIngest) { - if (this.innerProperties() == null) { - this.innerProperties = new KustoPoolProperties(); - } - this.innerProperties().withEnableStreamingIngest(enableStreamingIngest); - return this; - } - - /** - * Get the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * - * @return the enablePurge value. - */ - public Boolean enablePurge() { - return this.innerProperties() == null ? null : this.innerProperties().enablePurge(); - } - - /** - * Set the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * - * @param enablePurge the enablePurge value to set. - * @return the KustoPoolInner object itself. - */ - public KustoPoolInner withEnablePurge(Boolean enablePurge) { - if (this.innerProperties() == null) { - this.innerProperties = new KustoPoolProperties(); - } - this.innerProperties().withEnablePurge(enablePurge); - return this; - } - - /** - * Get the languageExtensions property: List of the Kusto Pool's language extensions. - * - * @return the languageExtensions value. - */ - public LanguageExtensionsList languageExtensions() { - return this.innerProperties() == null ? null : this.innerProperties().languageExtensions(); - } - - /** - * Get the workspaceUid property: The workspace unique identifier. - * - * @return the workspaceUid value. - */ - public String workspaceUid() { - return this.innerProperties() == null ? null : this.innerProperties().workspaceUid(); - } - - /** - * Set the workspaceUid property: The workspace unique identifier. - * - * @param workspaceUid the workspaceUid value to set. - * @return the KustoPoolInner object itself. - */ - public KustoPoolInner withWorkspaceUid(String workspaceUid) { - if (this.innerProperties() == null) { - this.innerProperties = new KustoPoolProperties(); - } - this.innerProperties().withWorkspaceUid(workspaceUid); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sku() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property sku in model KustoPoolInner")); - } else { - sku().validate(); - } - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolInner.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("sku", this.sku); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KustoPoolInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KustoPoolInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the KustoPoolInner. - */ - public static KustoPoolInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KustoPoolInner deserializedKustoPoolInner = new KustoPoolInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedKustoPoolInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedKustoPoolInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedKustoPoolInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedKustoPoolInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedKustoPoolInner.withTags(tags); - } else if ("sku".equals(fieldName)) { - deserializedKustoPoolInner.sku = AzureSku.fromJson(reader); - } else if ("properties".equals(fieldName)) { - deserializedKustoPoolInner.innerProperties = KustoPoolProperties.fromJson(reader); - } else if ("etag".equals(fieldName)) { - deserializedKustoPoolInner.etag = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedKustoPoolInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedKustoPoolInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java deleted file mode 100644 index a716818d00ee..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * The list Kusto pools operation response. - */ -@Fluent -public final class KustoPoolListResultInner implements JsonSerializable { - /* - * The list of Kusto pools. - */ - private List value; - - /** - * Creates an instance of KustoPoolListResultInner class. - */ - public KustoPoolListResultInner() { - } - - /** - * Get the value property: The list of Kusto pools. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of Kusto pools. - * - * @param value the value value to set. - * @return the KustoPoolListResultInner object itself. - */ - public KustoPoolListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KustoPoolListResultInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KustoPoolListResultInner if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IOException If an error occurs while reading the KustoPoolListResultInner. - */ - public static KustoPoolListResultInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KustoPoolListResultInner deserializedKustoPoolListResultInner = new KustoPoolListResultInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> KustoPoolInner.fromJson(reader1)); - deserializedKustoPoolListResultInner.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedKustoPoolListResultInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java deleted file mode 100644 index eddb9517133a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; -import java.util.List; - -/** - * Class representing a Private Link Resources. - */ -@Immutable -public final class KustoPoolPrivateLinkResourcesInner extends ProxyResource { - /* - * The Private Link Resources. - */ - private PrivateLinkResourcesProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of KustoPoolPrivateLinkResourcesInner class. - */ - public KustoPoolPrivateLinkResourcesInner() { - } - - /** - * Get the innerProperties property: The Private Link Resources. - * - * @return the innerProperties value. - */ - private PrivateLinkResourcesProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the groupId property: The Private link resources GroupId. - * - * @return the groupId value. - */ - public String groupId() { - return this.innerProperties() == null ? null : this.innerProperties().groupId(); - } - - /** - * Get the requiredMembers property: The private link resource required member names. - * - * @return the requiredMembers value. - */ - public List requiredMembers() { - return this.innerProperties() == null ? null : this.innerProperties().requiredMembers(); - } - - /** - * Get the requiredZoneNames property: The private link resource required zone names. - * - * @return the requiredZoneNames value. - */ - public List requiredZoneNames() { - return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames(); - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KustoPoolPrivateLinkResourcesInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KustoPoolPrivateLinkResourcesInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the KustoPoolPrivateLinkResourcesInner. - */ - public static KustoPoolPrivateLinkResourcesInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KustoPoolPrivateLinkResourcesInner deserializedKustoPoolPrivateLinkResourcesInner - = new KustoPoolPrivateLinkResourcesInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedKustoPoolPrivateLinkResourcesInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedKustoPoolPrivateLinkResourcesInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedKustoPoolPrivateLinkResourcesInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedKustoPoolPrivateLinkResourcesInner.innerProperties - = PrivateLinkResourcesProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedKustoPoolPrivateLinkResourcesInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedKustoPoolPrivateLinkResourcesInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java deleted file mode 100644 index ebb48981acc4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import com.azure.resourcemanager.synapse.models.State; -import java.io.IOException; - -/** - * Class representing the Kusto pool properties. - */ -@Fluent -public final class KustoPoolProperties implements JsonSerializable { - /* - * The state of the resource. - */ - private State state; - - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /* - * The Kusto Pool URI. - */ - private String uri; - - /* - * The Kusto Pool data ingestion URI. - */ - private String dataIngestionUri; - - /* - * The reason for the Kusto Pool's current state. - */ - private String stateReason; - - /* - * Optimized auto scale definition. - */ - private OptimizedAutoscale optimizedAutoscale; - - /* - * A boolean value that indicates if the streaming ingest is enabled. - */ - private Boolean enableStreamingIngest; - - /* - * A boolean value that indicates if the purge operations are enabled. - */ - private Boolean enablePurge; - - /* - * List of the Kusto Pool's language extensions. - */ - private LanguageExtensionsList languageExtensions; - - /* - * The workspace unique identifier. - */ - private String workspaceUid; - - /** - * Creates an instance of KustoPoolProperties class. - */ - public KustoPoolProperties() { - } - - /** - * Get the state property: The state of the resource. - * - * @return the state value. - */ - public State state() { - return this.state; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the uri property: The Kusto Pool URI. - * - * @return the uri value. - */ - public String uri() { - return this.uri; - } - - /** - * Get the dataIngestionUri property: The Kusto Pool data ingestion URI. - * - * @return the dataIngestionUri value. - */ - public String dataIngestionUri() { - return this.dataIngestionUri; - } - - /** - * Get the stateReason property: The reason for the Kusto Pool's current state. - * - * @return the stateReason value. - */ - public String stateReason() { - return this.stateReason; - } - - /** - * Get the optimizedAutoscale property: Optimized auto scale definition. - * - * @return the optimizedAutoscale value. - */ - public OptimizedAutoscale optimizedAutoscale() { - return this.optimizedAutoscale; - } - - /** - * Set the optimizedAutoscale property: Optimized auto scale definition. - * - * @param optimizedAutoscale the optimizedAutoscale value to set. - * @return the KustoPoolProperties object itself. - */ - public KustoPoolProperties withOptimizedAutoscale(OptimizedAutoscale optimizedAutoscale) { - this.optimizedAutoscale = optimizedAutoscale; - return this; - } - - /** - * Get the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * - * @return the enableStreamingIngest value. - */ - public Boolean enableStreamingIngest() { - return this.enableStreamingIngest; - } - - /** - * Set the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * - * @param enableStreamingIngest the enableStreamingIngest value to set. - * @return the KustoPoolProperties object itself. - */ - public KustoPoolProperties withEnableStreamingIngest(Boolean enableStreamingIngest) { - this.enableStreamingIngest = enableStreamingIngest; - return this; - } - - /** - * Get the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * - * @return the enablePurge value. - */ - public Boolean enablePurge() { - return this.enablePurge; - } - - /** - * Set the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * - * @param enablePurge the enablePurge value to set. - * @return the KustoPoolProperties object itself. - */ - public KustoPoolProperties withEnablePurge(Boolean enablePurge) { - this.enablePurge = enablePurge; - return this; - } - - /** - * Get the languageExtensions property: List of the Kusto Pool's language extensions. - * - * @return the languageExtensions value. - */ - public LanguageExtensionsList languageExtensions() { - return this.languageExtensions; - } - - /** - * Get the workspaceUid property: The workspace unique identifier. - * - * @return the workspaceUid value. - */ - public String workspaceUid() { - return this.workspaceUid; - } - - /** - * Set the workspaceUid property: The workspace unique identifier. - * - * @param workspaceUid the workspaceUid value to set. - * @return the KustoPoolProperties object itself. - */ - public KustoPoolProperties withWorkspaceUid(String workspaceUid) { - this.workspaceUid = workspaceUid; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (optimizedAutoscale() != null) { - optimizedAutoscale().validate(); - } - if (languageExtensions() != null) { - languageExtensions().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("optimizedAutoscale", this.optimizedAutoscale); - jsonWriter.writeBooleanField("enableStreamingIngest", this.enableStreamingIngest); - jsonWriter.writeBooleanField("enablePurge", this.enablePurge); - jsonWriter.writeStringField("workspaceUID", this.workspaceUid); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KustoPoolProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KustoPoolProperties if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the KustoPoolProperties. - */ - public static KustoPoolProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KustoPoolProperties deserializedKustoPoolProperties = new KustoPoolProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("state".equals(fieldName)) { - deserializedKustoPoolProperties.state = State.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedKustoPoolProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else if ("uri".equals(fieldName)) { - deserializedKustoPoolProperties.uri = reader.getString(); - } else if ("dataIngestionUri".equals(fieldName)) { - deserializedKustoPoolProperties.dataIngestionUri = reader.getString(); - } else if ("stateReason".equals(fieldName)) { - deserializedKustoPoolProperties.stateReason = reader.getString(); - } else if ("optimizedAutoscale".equals(fieldName)) { - deserializedKustoPoolProperties.optimizedAutoscale = OptimizedAutoscale.fromJson(reader); - } else if ("enableStreamingIngest".equals(fieldName)) { - deserializedKustoPoolProperties.enableStreamingIngest = reader.getNullable(JsonReader::getBoolean); - } else if ("enablePurge".equals(fieldName)) { - deserializedKustoPoolProperties.enablePurge = reader.getNullable(JsonReader::getBoolean); - } else if ("languageExtensions".equals(fieldName)) { - deserializedKustoPoolProperties.languageExtensions = LanguageExtensionsList.fromJson(reader); - } else if ("workspaceUID".equals(fieldName)) { - deserializedKustoPoolProperties.workspaceUid = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedKustoPoolProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java deleted file mode 100644 index 92ef93aea716..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import java.io.IOException; - -/** - * The language extension object. - */ -@Fluent -public final class LanguageExtensionInner implements JsonSerializable { - /* - * The language extension name. - */ - private LanguageExtensionName languageExtensionName; - - /** - * Creates an instance of LanguageExtensionInner class. - */ - public LanguageExtensionInner() { - } - - /** - * Get the languageExtensionName property: The language extension name. - * - * @return the languageExtensionName value. - */ - public LanguageExtensionName languageExtensionName() { - return this.languageExtensionName; - } - - /** - * Set the languageExtensionName property: The language extension name. - * - * @param languageExtensionName the languageExtensionName value to set. - * @return the LanguageExtensionInner object itself. - */ - public LanguageExtensionInner withLanguageExtensionName(LanguageExtensionName languageExtensionName) { - this.languageExtensionName = languageExtensionName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("languageExtensionName", - this.languageExtensionName == null ? null : this.languageExtensionName.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LanguageExtensionInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LanguageExtensionInner if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the LanguageExtensionInner. - */ - public static LanguageExtensionInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LanguageExtensionInner deserializedLanguageExtensionInner = new LanguageExtensionInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("languageExtensionName".equals(fieldName)) { - deserializedLanguageExtensionInner.languageExtensionName - = LanguageExtensionName.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedLanguageExtensionInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java deleted file mode 100644 index 680d33ca8dbe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Managed integration runtime managed virtual network reference. - */ -@Fluent -public final class ManagedIntegrationRuntimeManagedVirtualNetworkReference - implements JsonSerializable { - /* - * The reference name of the managed virtual network. - */ - private String referenceName; - - /* - * The type of the managed virtual network. - */ - private String type; - - /* - * The id of the managed virtual network. - */ - private String id; - - /** - * Creates an instance of ManagedIntegrationRuntimeManagedVirtualNetworkReference class. - */ - public ManagedIntegrationRuntimeManagedVirtualNetworkReference() { - } - - /** - * Get the referenceName property: The reference name of the managed virtual network. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: The reference name of the managed virtual network. - * - * @param referenceName the referenceName value to set. - * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. - */ - public ManagedIntegrationRuntimeManagedVirtualNetworkReference withReferenceName(String referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Get the type property: The type of the managed virtual network. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: The type of the managed virtual network. - * - * @param type the type value to set. - * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. - */ - public ManagedIntegrationRuntimeManagedVirtualNetworkReference withType(String type) { - this.type = type; - return this; - } - - /** - * Get the id property: The id of the managed virtual network. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Set the id property: The id of the managed virtual network. - * - * @param id the id value to set. - * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. - */ - public ManagedIntegrationRuntimeManagedVirtualNetworkReference withId(String id) { - this.id = id; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("referenceName", this.referenceName); - jsonWriter.writeStringField("type", this.type); - jsonWriter.writeStringField("id", this.id); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedIntegrationRuntimeManagedVirtualNetworkReference from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedIntegrationRuntimeManagedVirtualNetworkReference if the JsonReader was pointing to - * an instance of it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the ManagedIntegrationRuntimeManagedVirtualNetworkReference. - */ - public static ManagedIntegrationRuntimeManagedVirtualNetworkReference fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ManagedIntegrationRuntimeManagedVirtualNetworkReference deserializedManagedIntegrationRuntimeManagedVirtualNetworkReference - = new ManagedIntegrationRuntimeManagedVirtualNetworkReference(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("referenceName".equals(fieldName)) { - deserializedManagedIntegrationRuntimeManagedVirtualNetworkReference.referenceName - = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedManagedIntegrationRuntimeManagedVirtualNetworkReference.type = reader.getString(); - } else if ("id".equals(fieldName)) { - deserializedManagedIntegrationRuntimeManagedVirtualNetworkReference.id = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedIntegrationRuntimeManagedVirtualNetworkReference; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java deleted file mode 100644 index 66979611b3c2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.OperationDisplay; -import java.io.IOException; - -/** - * A REST API operation. - */ -@Fluent -public final class OperationInner implements JsonSerializable { - /* - * This is of the format {provider}/{resource}/{operation}. - */ - private String name; - - /* - * The object that describes the operation. - */ - private OperationDisplay display; - - /* - * The intended executor of the operation. - */ - private String origin; - - /* - * Properties of the operation. - */ - private Object properties; - - /** - * Creates an instance of OperationInner class. - */ - public OperationInner() { - } - - /** - * Get the name property: This is of the format {provider}/{resource}/{operation}. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: This is of the format {provider}/{resource}/{operation}. - * - * @param name the name value to set. - * @return the OperationInner object itself. - */ - public OperationInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the display property: The object that describes the operation. - * - * @return the display value. - */ - public OperationDisplay display() { - return this.display; - } - - /** - * Set the display property: The object that describes the operation. - * - * @param display the display value to set. - * @return the OperationInner object itself. - */ - public OperationInner withDisplay(OperationDisplay display) { - this.display = display; - return this; - } - - /** - * Get the origin property: The intended executor of the operation. - * - * @return the origin value. - */ - public String origin() { - return this.origin; - } - - /** - * Set the origin property: The intended executor of the operation. - * - * @param origin the origin value to set. - * @return the OperationInner object itself. - */ - public OperationInner withOrigin(String origin) { - this.origin = origin; - return this; - } - - /** - * Get the properties property: Properties of the operation. - * - * @return the properties value. - */ - public Object properties() { - return this.properties; - } - - /** - * Set the properties property: Properties of the operation. - * - * @param properties the properties value to set. - * @return the OperationInner object itself. - */ - public OperationInner withProperties(Object properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (display() != null) { - display().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeJsonField("display", this.display); - jsonWriter.writeStringField("origin", this.origin); - jsonWriter.writeUntypedField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of OperationInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the OperationInner. - */ - public static OperationInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - OperationInner deserializedOperationInner = new OperationInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedOperationInner.name = reader.getString(); - } else if ("display".equals(fieldName)) { - deserializedOperationInner.display = OperationDisplay.fromJson(reader); - } else if ("origin".equals(fieldName)) { - deserializedOperationInner.origin = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedOperationInner.properties = reader.readUntyped(); - } else { - reader.skipChildren(); - } - } - - return deserializedOperationInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java deleted file mode 100644 index 2d087f8c0be0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; -import java.util.List; - -/** - * Private Link Resources Properties. - */ -@Immutable -public final class PrivateLinkResourcesProperties implements JsonSerializable { - /* - * The Private link resources GroupId - */ - private String groupId; - - /* - * The private link resource required member names. - */ - private List requiredMembers; - - /* - * The private link resource required zone names. - */ - private List requiredZoneNames; - - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /** - * Creates an instance of PrivateLinkResourcesProperties class. - */ - public PrivateLinkResourcesProperties() { - } - - /** - * Get the groupId property: The Private link resources GroupId. - * - * @return the groupId value. - */ - public String groupId() { - return this.groupId; - } - - /** - * Get the requiredMembers property: The private link resource required member names. - * - * @return the requiredMembers value. - */ - public List requiredMembers() { - return this.requiredMembers; - } - - /** - * Get the requiredZoneNames property: The private link resource required zone names. - * - * @return the requiredZoneNames value. - */ - public List requiredZoneNames() { - return this.requiredZoneNames; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of PrivateLinkResourcesProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of PrivateLinkResourcesProperties if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the PrivateLinkResourcesProperties. - */ - public static PrivateLinkResourcesProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - PrivateLinkResourcesProperties deserializedPrivateLinkResourcesProperties - = new PrivateLinkResourcesProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("groupId".equals(fieldName)) { - deserializedPrivateLinkResourcesProperties.groupId = reader.getString(); - } else if ("requiredMembers".equals(fieldName)) { - List requiredMembers = reader.readArray(reader1 -> reader1.getString()); - deserializedPrivateLinkResourcesProperties.requiredMembers = requiredMembers; - } else if ("requiredZoneNames".equals(fieldName)) { - List requiredZoneNames = reader.readArray(reader1 -> reader1.getString()); - deserializedPrivateLinkResourcesProperties.requiredZoneNames = requiredZoneNames; - } else if ("provisioningState".equals(fieldName)) { - deserializedPrivateLinkResourcesProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedPrivateLinkResourcesProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java deleted file mode 100644 index a7dca4e6c0d3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java +++ /dev/null @@ -1,205 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.DatabaseStatistics; -import com.azure.resourcemanager.synapse.models.PrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; -import java.time.Duration; - -/** - * Class representing the Kusto database properties. - */ -@Fluent -public final class ReadOnlyFollowingDatabaseProperties - implements JsonSerializable { - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /* - * The time the data should be kept before it stops being accessible to queries in TimeSpan. - */ - private Duration softDeletePeriod; - - /* - * The time the data should be kept in cache for fast queries in TimeSpan. - */ - private Duration hotCachePeriod; - - /* - * The statistics of the database. - */ - private DatabaseStatistics statistics; - - /* - * The name of the leader cluster - */ - private String leaderClusterResourceId; - - /* - * The name of the attached database configuration cluster - */ - private String attachedDatabaseConfigurationName; - - /* - * The principals modification kind of the database - */ - private PrincipalsModificationKind principalsModificationKind; - - /** - * Creates an instance of ReadOnlyFollowingDatabaseProperties class. - */ - public ReadOnlyFollowingDatabaseProperties() { - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries - * in TimeSpan. - * - * @return the softDeletePeriod value. - */ - public Duration softDeletePeriod() { - return this.softDeletePeriod; - } - - /** - * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * - * @return the hotCachePeriod value. - */ - public Duration hotCachePeriod() { - return this.hotCachePeriod; - } - - /** - * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * - * @param hotCachePeriod the hotCachePeriod value to set. - * @return the ReadOnlyFollowingDatabaseProperties object itself. - */ - public ReadOnlyFollowingDatabaseProperties withHotCachePeriod(Duration hotCachePeriod) { - this.hotCachePeriod = hotCachePeriod; - return this; - } - - /** - * Get the statistics property: The statistics of the database. - * - * @return the statistics value. - */ - public DatabaseStatistics statistics() { - return this.statistics; - } - - /** - * Get the leaderClusterResourceId property: The name of the leader cluster. - * - * @return the leaderClusterResourceId value. - */ - public String leaderClusterResourceId() { - return this.leaderClusterResourceId; - } - - /** - * Get the attachedDatabaseConfigurationName property: The name of the attached database configuration cluster. - * - * @return the attachedDatabaseConfigurationName value. - */ - public String attachedDatabaseConfigurationName() { - return this.attachedDatabaseConfigurationName; - } - - /** - * Get the principalsModificationKind property: The principals modification kind of the database. - * - * @return the principalsModificationKind value. - */ - public PrincipalsModificationKind principalsModificationKind() { - return this.principalsModificationKind; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (statistics() != null) { - statistics().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("hotCachePeriod", CoreUtils.durationToStringWithDays(this.hotCachePeriod)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ReadOnlyFollowingDatabaseProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ReadOnlyFollowingDatabaseProperties if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the ReadOnlyFollowingDatabaseProperties. - */ - public static ReadOnlyFollowingDatabaseProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ReadOnlyFollowingDatabaseProperties deserializedReadOnlyFollowingDatabaseProperties - = new ReadOnlyFollowingDatabaseProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedReadOnlyFollowingDatabaseProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else if ("softDeletePeriod".equals(fieldName)) { - deserializedReadOnlyFollowingDatabaseProperties.softDeletePeriod - = reader.getNullable(nonNullReader -> Duration.parse(nonNullReader.getString())); - } else if ("hotCachePeriod".equals(fieldName)) { - deserializedReadOnlyFollowingDatabaseProperties.hotCachePeriod - = reader.getNullable(nonNullReader -> Duration.parse(nonNullReader.getString())); - } else if ("statistics".equals(fieldName)) { - deserializedReadOnlyFollowingDatabaseProperties.statistics = DatabaseStatistics.fromJson(reader); - } else if ("leaderClusterResourceId".equals(fieldName)) { - deserializedReadOnlyFollowingDatabaseProperties.leaderClusterResourceId = reader.getString(); - } else if ("attachedDatabaseConfigurationName".equals(fieldName)) { - deserializedReadOnlyFollowingDatabaseProperties.attachedDatabaseConfigurationName - = reader.getString(); - } else if ("principalsModificationKind".equals(fieldName)) { - deserializedReadOnlyFollowingDatabaseProperties.principalsModificationKind - = PrincipalsModificationKind.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedReadOnlyFollowingDatabaseProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java deleted file mode 100644 index 2f71a8e303c3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.DatabaseStatistics; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.io.IOException; -import java.time.Duration; - -/** - * Class representing the Kusto database properties. - */ -@Fluent -public final class ReadWriteDatabaseProperties implements JsonSerializable { - /* - * The provisioned state of the resource. - */ - private ResourceProvisioningState provisioningState; - - /* - * The time the data should be kept before it stops being accessible to queries in TimeSpan. - */ - private Duration softDeletePeriod; - - /* - * The time the data should be kept in cache for fast queries in TimeSpan. - */ - private Duration hotCachePeriod; - - /* - * The statistics of the database. - */ - private DatabaseStatistics statistics; - - /* - * Indicates whether the database is followed. - */ - private Boolean isFollowed; - - /** - * Creates an instance of ReadWriteDatabaseProperties class. - */ - public ReadWriteDatabaseProperties() { - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries - * in TimeSpan. - * - * @return the softDeletePeriod value. - */ - public Duration softDeletePeriod() { - return this.softDeletePeriod; - } - - /** - * Set the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries - * in TimeSpan. - * - * @param softDeletePeriod the softDeletePeriod value to set. - * @return the ReadWriteDatabaseProperties object itself. - */ - public ReadWriteDatabaseProperties withSoftDeletePeriod(Duration softDeletePeriod) { - this.softDeletePeriod = softDeletePeriod; - return this; - } - - /** - * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * - * @return the hotCachePeriod value. - */ - public Duration hotCachePeriod() { - return this.hotCachePeriod; - } - - /** - * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * - * @param hotCachePeriod the hotCachePeriod value to set. - * @return the ReadWriteDatabaseProperties object itself. - */ - public ReadWriteDatabaseProperties withHotCachePeriod(Duration hotCachePeriod) { - this.hotCachePeriod = hotCachePeriod; - return this; - } - - /** - * Get the statistics property: The statistics of the database. - * - * @return the statistics value. - */ - public DatabaseStatistics statistics() { - return this.statistics; - } - - /** - * Get the isFollowed property: Indicates whether the database is followed. - * - * @return the isFollowed value. - */ - public Boolean isFollowed() { - return this.isFollowed; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (statistics() != null) { - statistics().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("softDeletePeriod", CoreUtils.durationToStringWithDays(this.softDeletePeriod)); - jsonWriter.writeStringField("hotCachePeriod", CoreUtils.durationToStringWithDays(this.hotCachePeriod)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ReadWriteDatabaseProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ReadWriteDatabaseProperties if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the ReadWriteDatabaseProperties. - */ - public static ReadWriteDatabaseProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ReadWriteDatabaseProperties deserializedReadWriteDatabaseProperties = new ReadWriteDatabaseProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedReadWriteDatabaseProperties.provisioningState - = ResourceProvisioningState.fromString(reader.getString()); - } else if ("softDeletePeriod".equals(fieldName)) { - deserializedReadWriteDatabaseProperties.softDeletePeriod - = reader.getNullable(nonNullReader -> Duration.parse(nonNullReader.getString())); - } else if ("hotCachePeriod".equals(fieldName)) { - deserializedReadWriteDatabaseProperties.hotCachePeriod - = reader.getNullable(nonNullReader -> Duration.parse(nonNullReader.getString())); - } else if ("statistics".equals(fieldName)) { - deserializedReadWriteDatabaseProperties.statistics = DatabaseStatistics.fromJson(reader); - } else if ("isFollowed".equals(fieldName)) { - deserializedReadWriteDatabaseProperties.isFollowed = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedReadWriteDatabaseProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java index 20dc485e875b..9e18a9fe77d8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java @@ -110,26 +110,6 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties */ private OffsetDateTime autoUpdateEta; - /* - * The service region of the integration runtime - */ - private String serviceRegion; - - /* - * The newer versions on download center. - */ - private List newerVersions; - - /* - * The osType property. - */ - private Integer osType; - - /* - * The targetFramework property. - */ - private Integer targetFramework; - /** * Creates an instance of SelfHostedIntegrationRuntimeStatusTypeProperties class. */ @@ -317,64 +297,6 @@ public OffsetDateTime autoUpdateEta() { return this.autoUpdateEta; } - /** - * Get the serviceRegion property: The service region of the integration runtime. - * - * @return the serviceRegion value. - */ - public String serviceRegion() { - return this.serviceRegion; - } - - /** - * Set the serviceRegion property: The service region of the integration runtime. - * - * @param serviceRegion the serviceRegion value to set. - * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. - */ - public SelfHostedIntegrationRuntimeStatusTypeProperties withServiceRegion(String serviceRegion) { - this.serviceRegion = serviceRegion; - return this; - } - - /** - * Get the newerVersions property: The newer versions on download center. - * - * @return the newerVersions value. - */ - public List newerVersions() { - return this.newerVersions; - } - - /** - * Set the newerVersions property: The newer versions on download center. - * - * @param newerVersions the newerVersions value to set. - * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. - */ - public SelfHostedIntegrationRuntimeStatusTypeProperties withNewerVersions(List newerVersions) { - this.newerVersions = newerVersions; - return this; - } - - /** - * Get the osType property: The osType property. - * - * @return the osType value. - */ - public Integer osType() { - return this.osType; - } - - /** - * Get the targetFramework property: The targetFramework property. - * - * @return the targetFramework value. - */ - public Integer targetFramework() { - return this.targetFramework; - } - /** * Validates the instance. * @@ -397,9 +319,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("nodes", this.nodes, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("links", this.links, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("serviceRegion", this.serviceRegion); - jsonWriter.writeArrayField("newerVersions", this.newerVersions, - (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -466,17 +385,6 @@ public static SelfHostedIntegrationRuntimeStatusTypeProperties fromJson(JsonRead } else if ("autoUpdateETA".equals(fieldName)) { deserializedSelfHostedIntegrationRuntimeStatusTypeProperties.autoUpdateEta = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("serviceRegion".equals(fieldName)) { - deserializedSelfHostedIntegrationRuntimeStatusTypeProperties.serviceRegion = reader.getString(); - } else if ("newerVersions".equals(fieldName)) { - List newerVersions = reader.readArray(reader1 -> reader1.getString()); - deserializedSelfHostedIntegrationRuntimeStatusTypeProperties.newerVersions = newerVersions; - } else if ("osType".equals(fieldName)) { - deserializedSelfHostedIntegrationRuntimeStatusTypeProperties.osType - = reader.getNullable(JsonReader::getInt); - } else if ("targetFramework".equals(fieldName)) { - deserializedSelfHostedIntegrationRuntimeStatusTypeProperties.targetFramework - = reader.getNullable(JsonReader::getInt); } else { reader.skipChildren(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java index c513e5d2a850..889442132488 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java @@ -475,55 +475,6 @@ public ServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelayMs) { return this; } - /** - * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @return the isDevopsAuditEnabled value. - */ - public Boolean isDevopsAuditEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().isDevopsAuditEnabled(); - } - - /** - * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. - * @return the ServerBlobAuditingPolicyInner object itself. - */ - public ServerBlobAuditingPolicyInner withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new ServerBlobAuditingPolicyProperties(); - } - this.innerProperties().withIsDevopsAuditEnabled(isDevopsAuditEnabled); - return this; - } - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java index 907698960cc3..6d3037699c22 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java @@ -159,25 +159,6 @@ public final class ServerBlobAuditingPolicyProperties implements JsonSerializabl */ private Integer queueDelayMs; - /* - * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft. - * Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api- - * version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - private Boolean isDevopsAuditEnabled; - /** * Creates an instance of ServerBlobAuditingPolicyProperties class. */ @@ -548,52 +529,6 @@ public ServerBlobAuditingPolicyProperties withQueueDelayMs(Integer queueDelayMs) return this; } - /** - * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @return the isDevopsAuditEnabled value. - */ - public Boolean isDevopsAuditEnabled() { - return this.isDevopsAuditEnabled; - } - - /** - * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. - * @return the ServerBlobAuditingPolicyProperties object itself. - */ - public ServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { - this.isDevopsAuditEnabled = isDevopsAuditEnabled; - return this; - } - /** * Validates the instance. * @@ -626,7 +561,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("isStorageSecondaryKeyInUse", this.isStorageSecondaryKeyInUse); jsonWriter.writeBooleanField("isAzureMonitorTargetEnabled", this.isAzureMonitorTargetEnabled); jsonWriter.writeNumberField("queueDelayMs", this.queueDelayMs); - jsonWriter.writeBooleanField("isDevopsAuditEnabled", this.isDevopsAuditEnabled); return jsonWriter.writeEndObject(); } @@ -672,9 +606,6 @@ public static ServerBlobAuditingPolicyProperties fromJson(JsonReader jsonReader) } else if ("queueDelayMs".equals(fieldName)) { deserializedServerBlobAuditingPolicyProperties.queueDelayMs = reader.getNullable(JsonReader::getInt); - } else if ("isDevopsAuditEnabled".equals(fieldName)) { - deserializedServerBlobAuditingPolicyProperties.isDevopsAuditEnabled - = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java deleted file mode 100644 index 7cd7b5b6f26d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.SkuLocationInfoItem; -import java.io.IOException; -import java.util.List; - -/** - * The Kusto SKU description of given resource type. - */ -@Immutable -public final class SkuDescriptionInner implements JsonSerializable { - /* - * The resource type - */ - private String resourceType; - - /* - * The name of the SKU - */ - private String name; - - /* - * The size of the SKU - */ - private String size; - - /* - * The set of locations that the SKU is available - */ - private List locations; - - /* - * Locations and zones - */ - private List locationInfo; - - /* - * The restrictions because of which SKU cannot be used - */ - private List restrictions; - - /** - * Creates an instance of SkuDescriptionInner class. - */ - public SkuDescriptionInner() { - } - - /** - * Get the resourceType property: The resource type. - * - * @return the resourceType value. - */ - public String resourceType() { - return this.resourceType; - } - - /** - * Get the name property: The name of the SKU. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the size property: The size of the SKU. - * - * @return the size value. - */ - public String size() { - return this.size; - } - - /** - * Get the locations property: The set of locations that the SKU is available. - * - * @return the locations value. - */ - public List locations() { - return this.locations; - } - - /** - * Get the locationInfo property: Locations and zones. - * - * @return the locationInfo value. - */ - public List locationInfo() { - return this.locationInfo; - } - - /** - * Get the restrictions property: The restrictions because of which SKU cannot be used. - * - * @return the restrictions value. - */ - public List restrictions() { - return this.restrictions; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (locationInfo() != null) { - locationInfo().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SkuDescriptionInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SkuDescriptionInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the SkuDescriptionInner. - */ - public static SkuDescriptionInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SkuDescriptionInner deserializedSkuDescriptionInner = new SkuDescriptionInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceType".equals(fieldName)) { - deserializedSkuDescriptionInner.resourceType = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedSkuDescriptionInner.name = reader.getString(); - } else if ("size".equals(fieldName)) { - deserializedSkuDescriptionInner.size = reader.getString(); - } else if ("locations".equals(fieldName)) { - List locations = reader.readArray(reader1 -> reader1.getString()); - deserializedSkuDescriptionInner.locations = locations; - } else if ("locationInfo".equals(fieldName)) { - List locationInfo - = reader.readArray(reader1 -> SkuLocationInfoItem.fromJson(reader1)); - deserializedSkuDescriptionInner.locationInfo = locationInfo; - } else if ("restrictions".equals(fieldName)) { - List restrictions = reader.readArray(reader1 -> reader1.readUntyped()); - deserializedSkuDescriptionInner.restrictions = restrictions; - } else { - reader.skipChildren(); - } - } - - return deserializedSkuDescriptionInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java deleted file mode 100644 index 01a29bdfbbc3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java +++ /dev/null @@ -1,282 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.List; -import java.util.Map; - -/** - * Information about a SparkConfiguration created at the workspace level. - * - * SparkConfiguration Artifact information. - */ -@Fluent -public final class SparkConfigurationInfo implements JsonSerializable { - /* - * Description about the SparkConfiguration. - */ - private String description; - - /* - * SparkConfiguration configs. - */ - private Map configs; - - /* - * Annotations for SparkConfiguration. - */ - private List annotations; - - /* - * additional Notes. - */ - private String notes; - - /* - * The identity that created the resource. - */ - private String createdBy; - - /* - * The timestamp of resource creation. - */ - private OffsetDateTime created; - - /* - * SparkConfiguration merge configs. - */ - private Map configMergeRule; - - /** - * Creates an instance of SparkConfigurationInfo class. - */ - public SparkConfigurationInfo() { - } - - /** - * Get the description property: Description about the SparkConfiguration. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Description about the SparkConfiguration. - * - * @param description the description value to set. - * @return the SparkConfigurationInfo object itself. - */ - public SparkConfigurationInfo withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the configs property: SparkConfiguration configs. - * - * @return the configs value. - */ - public Map configs() { - return this.configs; - } - - /** - * Set the configs property: SparkConfiguration configs. - * - * @param configs the configs value to set. - * @return the SparkConfigurationInfo object itself. - */ - public SparkConfigurationInfo withConfigs(Map configs) { - this.configs = configs; - return this; - } - - /** - * Get the annotations property: Annotations for SparkConfiguration. - * - * @return the annotations value. - */ - public List annotations() { - return this.annotations; - } - - /** - * Set the annotations property: Annotations for SparkConfiguration. - * - * @param annotations the annotations value to set. - * @return the SparkConfigurationInfo object itself. - */ - public SparkConfigurationInfo withAnnotations(List annotations) { - this.annotations = annotations; - return this; - } - - /** - * Get the notes property: additional Notes. - * - * @return the notes value. - */ - public String notes() { - return this.notes; - } - - /** - * Set the notes property: additional Notes. - * - * @param notes the notes value to set. - * @return the SparkConfigurationInfo object itself. - */ - public SparkConfigurationInfo withNotes(String notes) { - this.notes = notes; - return this; - } - - /** - * Get the createdBy property: The identity that created the resource. - * - * @return the createdBy value. - */ - public String createdBy() { - return this.createdBy; - } - - /** - * Set the createdBy property: The identity that created the resource. - * - * @param createdBy the createdBy value to set. - * @return the SparkConfigurationInfo object itself. - */ - public SparkConfigurationInfo withCreatedBy(String createdBy) { - this.createdBy = createdBy; - return this; - } - - /** - * Get the created property: The timestamp of resource creation. - * - * @return the created value. - */ - public OffsetDateTime created() { - return this.created; - } - - /** - * Set the created property: The timestamp of resource creation. - * - * @param created the created value to set. - * @return the SparkConfigurationInfo object itself. - */ - public SparkConfigurationInfo withCreated(OffsetDateTime created) { - this.created = created; - return this; - } - - /** - * Get the configMergeRule property: SparkConfiguration merge configs. - * - * @return the configMergeRule value. - */ - public Map configMergeRule() { - return this.configMergeRule; - } - - /** - * Set the configMergeRule property: SparkConfiguration merge configs. - * - * @param configMergeRule the configMergeRule value to set. - * @return the SparkConfigurationInfo object itself. - */ - public SparkConfigurationInfo withConfigMergeRule(Map configMergeRule) { - this.configMergeRule = configMergeRule; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (configs() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property configs in model SparkConfigurationInfo")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationInfo.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeMapField("configs", this.configs, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("description", this.description); - jsonWriter.writeArrayField("annotations", this.annotations, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("notes", this.notes); - jsonWriter.writeStringField("createdBy", this.createdBy); - jsonWriter.writeStringField("created", - this.created == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.created)); - jsonWriter.writeMapField("configMergeRule", this.configMergeRule, - (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SparkConfigurationInfo from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SparkConfigurationInfo if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the SparkConfigurationInfo. - */ - public static SparkConfigurationInfo fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SparkConfigurationInfo deserializedSparkConfigurationInfo = new SparkConfigurationInfo(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("configs".equals(fieldName)) { - Map configs = reader.readMap(reader1 -> reader1.getString()); - deserializedSparkConfigurationInfo.configs = configs; - } else if ("description".equals(fieldName)) { - deserializedSparkConfigurationInfo.description = reader.getString(); - } else if ("annotations".equals(fieldName)) { - List annotations = reader.readArray(reader1 -> reader1.getString()); - deserializedSparkConfigurationInfo.annotations = annotations; - } else if ("notes".equals(fieldName)) { - deserializedSparkConfigurationInfo.notes = reader.getString(); - } else if ("createdBy".equals(fieldName)) { - deserializedSparkConfigurationInfo.createdBy = reader.getString(); - } else if ("created".equals(fieldName)) { - deserializedSparkConfigurationInfo.created = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("configMergeRule".equals(fieldName)) { - Map configMergeRule = reader.readMap(reader1 -> reader1.getString()); - deserializedSparkConfigurationInfo.configMergeRule = configMergeRule; - } else { - reader.skipChildren(); - } - } - - return deserializedSparkConfigurationInfo; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java deleted file mode 100644 index da18197560e1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java +++ /dev/null @@ -1,328 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.EntityResource; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -/** - * SparkConfiguration response details. - */ -@Fluent -public final class SparkConfigurationResourceInner extends EntityResource { - /* - * SparkConfiguration properties. - */ - private SparkConfigurationInfo innerProperties = new SparkConfigurationInfo(); - - /* - * Resource Etag. - */ - private String etag; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of SparkConfigurationResourceInner class. - */ - public SparkConfigurationResourceInner() { - } - - /** - * Get the innerProperties property: SparkConfiguration properties. - * - * @return the innerProperties value. - */ - private SparkConfigurationInfo innerProperties() { - return this.innerProperties; - } - - /** - * Get the etag property: Resource Etag. - * - * @return the etag value. - */ - @Override - public String etag() { - return this.etag; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the description property: Description about the SparkConfiguration. - * - * @return the description value. - */ - public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); - } - - /** - * Set the description property: Description about the SparkConfiguration. - * - * @param description the description value to set. - * @return the SparkConfigurationResourceInner object itself. - */ - public SparkConfigurationResourceInner withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new SparkConfigurationInfo(); - } - this.innerProperties().withDescription(description); - return this; - } - - /** - * Get the configs property: SparkConfiguration configs. - * - * @return the configs value. - */ - public Map configs() { - return this.innerProperties() == null ? null : this.innerProperties().configs(); - } - - /** - * Set the configs property: SparkConfiguration configs. - * - * @param configs the configs value to set. - * @return the SparkConfigurationResourceInner object itself. - */ - public SparkConfigurationResourceInner withConfigs(Map configs) { - if (this.innerProperties() == null) { - this.innerProperties = new SparkConfigurationInfo(); - } - this.innerProperties().withConfigs(configs); - return this; - } - - /** - * Get the annotations property: Annotations for SparkConfiguration. - * - * @return the annotations value. - */ - public List annotations() { - return this.innerProperties() == null ? null : this.innerProperties().annotations(); - } - - /** - * Set the annotations property: Annotations for SparkConfiguration. - * - * @param annotations the annotations value to set. - * @return the SparkConfigurationResourceInner object itself. - */ - public SparkConfigurationResourceInner withAnnotations(List annotations) { - if (this.innerProperties() == null) { - this.innerProperties = new SparkConfigurationInfo(); - } - this.innerProperties().withAnnotations(annotations); - return this; - } - - /** - * Get the notes property: additional Notes. - * - * @return the notes value. - */ - public String notes() { - return this.innerProperties() == null ? null : this.innerProperties().notes(); - } - - /** - * Set the notes property: additional Notes. - * - * @param notes the notes value to set. - * @return the SparkConfigurationResourceInner object itself. - */ - public SparkConfigurationResourceInner withNotes(String notes) { - if (this.innerProperties() == null) { - this.innerProperties = new SparkConfigurationInfo(); - } - this.innerProperties().withNotes(notes); - return this; - } - - /** - * Get the createdBy property: The identity that created the resource. - * - * @return the createdBy value. - */ - public String createdBy() { - return this.innerProperties() == null ? null : this.innerProperties().createdBy(); - } - - /** - * Set the createdBy property: The identity that created the resource. - * - * @param createdBy the createdBy value to set. - * @return the SparkConfigurationResourceInner object itself. - */ - public SparkConfigurationResourceInner withCreatedBy(String createdBy) { - if (this.innerProperties() == null) { - this.innerProperties = new SparkConfigurationInfo(); - } - this.innerProperties().withCreatedBy(createdBy); - return this; - } - - /** - * Get the created property: The timestamp of resource creation. - * - * @return the created value. - */ - public OffsetDateTime created() { - return this.innerProperties() == null ? null : this.innerProperties().created(); - } - - /** - * Set the created property: The timestamp of resource creation. - * - * @param created the created value to set. - * @return the SparkConfigurationResourceInner object itself. - */ - public SparkConfigurationResourceInner withCreated(OffsetDateTime created) { - if (this.innerProperties() == null) { - this.innerProperties = new SparkConfigurationInfo(); - } - this.innerProperties().withCreated(created); - return this; - } - - /** - * Get the configMergeRule property: SparkConfiguration merge configs. - * - * @return the configMergeRule value. - */ - public Map configMergeRule() { - return this.innerProperties() == null ? null : this.innerProperties().configMergeRule(); - } - - /** - * Set the configMergeRule property: SparkConfiguration merge configs. - * - * @param configMergeRule the configMergeRule value to set. - * @return the SparkConfigurationResourceInner object itself. - */ - public SparkConfigurationResourceInner withConfigMergeRule(Map configMergeRule) { - if (this.innerProperties() == null) { - this.innerProperties = new SparkConfigurationInfo(); - } - this.innerProperties().withConfigMergeRule(configMergeRule); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model SparkConfigurationResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationResourceInner.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SparkConfigurationResourceInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SparkConfigurationResourceInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the SparkConfigurationResourceInner. - */ - public static SparkConfigurationResourceInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SparkConfigurationResourceInner deserializedSparkConfigurationResourceInner - = new SparkConfigurationResourceInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedSparkConfigurationResourceInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedSparkConfigurationResourceInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedSparkConfigurationResourceInner.type = reader.getString(); - } else if ("etag".equals(fieldName)) { - deserializedSparkConfigurationResourceInner.etag = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedSparkConfigurationResourceInner.innerProperties - = SparkConfigurationInfo.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedSparkConfigurationResourceInner; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java index ec1bcd5ed06f..df2617aab9eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java @@ -255,6 +255,20 @@ public String status() { return this.innerProperties() == null ? null : this.innerProperties().status(); } + /** + * Set the status property: Resource status. + * + * @param status the status value to set. + * @return the SqlPoolInner object itself. + */ + public SqlPoolInner withStatus(String status) { + if (this.innerProperties() == null) { + this.innerProperties = new SqlPoolResourceProperties(); + } + this.innerProperties().withStatus(status); + return this; + } + /** * Get the restorePointInTime property: Snapshot time to restore. * @@ -335,48 +349,39 @@ public OffsetDateTime creationDate() { } /** - * Get the storageAccountType property: The storage account type used to store backups for this sql pool. + * Set the creationDate property: Date the SQL pool was created. * - * @return the storageAccountType value. - */ - public StorageAccountType storageAccountType() { - return this.innerProperties() == null ? null : this.innerProperties().storageAccountType(); - } - - /** - * Set the storageAccountType property: The storage account type used to store backups for this sql pool. - * - * @param storageAccountType the storageAccountType value to set. + * @param creationDate the creationDate value to set. * @return the SqlPoolInner object itself. */ - public SqlPoolInner withStorageAccountType(StorageAccountType storageAccountType) { + public SqlPoolInner withCreationDate(OffsetDateTime creationDate) { if (this.innerProperties() == null) { this.innerProperties = new SqlPoolResourceProperties(); } - this.innerProperties().withStorageAccountType(storageAccountType); + this.innerProperties().withCreationDate(creationDate); return this; } /** - * Get the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. + * Get the storageAccountType property: The storage account type used to store backups for this sql pool. * - * @return the sourceDatabaseDeletionDate value. + * @return the storageAccountType value. */ - public OffsetDateTime sourceDatabaseDeletionDate() { - return this.innerProperties() == null ? null : this.innerProperties().sourceDatabaseDeletionDate(); + public StorageAccountType storageAccountType() { + return this.innerProperties() == null ? null : this.innerProperties().storageAccountType(); } /** - * Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. + * Set the storageAccountType property: The storage account type used to store backups for this sql pool. * - * @param sourceDatabaseDeletionDate the sourceDatabaseDeletionDate value to set. + * @param storageAccountType the storageAccountType value to set. * @return the SqlPoolInner object itself. */ - public SqlPoolInner withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate) { + public SqlPoolInner withStorageAccountType(StorageAccountType storageAccountType) { if (this.innerProperties() == null) { this.innerProperties = new SqlPoolResourceProperties(); } - this.innerProperties().withSourceDatabaseDeletionDate(sourceDatabaseDeletionDate); + this.innerProperties().withStorageAccountType(storageAccountType); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java index 1ad46e8069b6..a8bab31fe6eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java @@ -85,11 +85,6 @@ public final class SqlPoolResourceProperties implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else { reader.skipChildren(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java index 78dbeb43b550..59866552b03b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java @@ -9,7 +9,6 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; import com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails; import com.azure.resourcemanager.synapse.models.EncryptionDetails; import com.azure.resourcemanager.synapse.models.ManagedIdentity; @@ -275,6 +274,20 @@ public Map connectivityEndpoints() { return this.innerProperties() == null ? null : this.innerProperties().connectivityEndpoints(); } + /** + * Set the connectivityEndpoints property: Connectivity endpoints. + * + * @param connectivityEndpoints the connectivityEndpoints value to set. + * @return the WorkspaceInner object itself. + */ + public WorkspaceInner withConnectivityEndpoints(Map connectivityEndpoints) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkspaceProperties(); + } + this.innerProperties().withConnectivityEndpoints(connectivityEndpoints); + return this; + } + /** * Get the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this workspace * is in a virtual network managed on behalf of the user. @@ -361,7 +374,7 @@ public UUID workspaceUid() { * * @return the extraProperties value. */ - public Object extraProperties() { + public Map extraProperties() { return this.innerProperties() == null ? null : this.innerProperties().extraProperties(); } @@ -468,86 +481,6 @@ public WorkspaceInner withPublicNetworkAccess(WorkspacePublicNetworkAccess publi return this; } - /** - * Get the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * - * @return the cspWorkspaceAdminProperties value. - */ - public CspWorkspaceAdminProperties cspWorkspaceAdminProperties() { - return this.innerProperties() == null ? null : this.innerProperties().cspWorkspaceAdminProperties(); - } - - /** - * Set the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * - * @param cspWorkspaceAdminProperties the cspWorkspaceAdminProperties value to set. - * @return the WorkspaceInner object itself. - */ - public WorkspaceInner withCspWorkspaceAdminProperties(CspWorkspaceAdminProperties cspWorkspaceAdminProperties) { - if (this.innerProperties() == null) { - this.innerProperties = new WorkspaceProperties(); - } - this.innerProperties().withCspWorkspaceAdminProperties(cspWorkspaceAdminProperties); - return this; - } - - /** - * Get the settings property: Workspace settings. - * - * @return the settings value. - */ - public Map settings() { - return this.innerProperties() == null ? null : this.innerProperties().settings(); - } - - /** - * Get the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace - * subresource. - * - * @return the azureADOnlyAuthentication value. - */ - public Boolean azureADOnlyAuthentication() { - return this.innerProperties() == null ? null : this.innerProperties().azureADOnlyAuthentication(); - } - - /** - * Set the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace - * subresource. - * - * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set. - * @return the WorkspaceInner object itself. - */ - public WorkspaceInner withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication) { - if (this.innerProperties() == null) { - this.innerProperties = new WorkspaceProperties(); - } - this.innerProperties().withAzureADOnlyAuthentication(azureADOnlyAuthentication); - return this; - } - - /** - * Get the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * - * @return the trustedServiceBypassEnabled value. - */ - public Boolean trustedServiceBypassEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().trustedServiceBypassEnabled(); - } - - /** - * Set the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * - * @param trustedServiceBypassEnabled the trustedServiceBypassEnabled value to set. - * @return the WorkspaceInner object itself. - */ - public WorkspaceInner withTrustedServiceBypassEnabled(Boolean trustedServiceBypassEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new WorkspaceProperties(); - } - this.innerProperties().withTrustedServiceBypassEnabled(trustedServiceBypassEnabled); - return this; - } - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java index 38f0c1ceebb3..4678f5927725 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java @@ -9,7 +9,6 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; import com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails; import com.azure.resourcemanager.synapse.models.EncryptionDetails; import com.azure.resourcemanager.synapse.models.ManagedVirtualNetworkSettings; @@ -88,7 +87,7 @@ public final class WorkspaceProperties implements JsonSerializable extraProperties; /* * Managed Virtual Network Settings @@ -115,26 +114,6 @@ public final class WorkspaceProperties implements JsonSerializable settings; - - /* - * Enable or Disable AzureADOnlyAuthentication on All Workspace subresource - */ - private Boolean azureADOnlyAuthentication; - - /* - * Is trustedServiceBypassEnabled for the workspace - */ - private Boolean trustedServiceBypassEnabled; - /** * Creates an instance of WorkspaceProperties class. */ @@ -265,6 +244,17 @@ public Map connectivityEndpoints() { return this.connectivityEndpoints; } + /** + * Set the connectivityEndpoints property: Connectivity endpoints. + * + * @param connectivityEndpoints the connectivityEndpoints value to set. + * @return the WorkspaceProperties object itself. + */ + public WorkspaceProperties withConnectivityEndpoints(Map connectivityEndpoints) { + this.connectivityEndpoints = connectivityEndpoints; + return this; + } + /** * Get the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this workspace * is in a virtual network managed on behalf of the user. @@ -342,7 +332,7 @@ public UUID workspaceUid() { * * @return the extraProperties value. */ - public Object extraProperties() { + public Map extraProperties() { return this.extraProperties; } @@ -437,78 +427,6 @@ public WorkspaceProperties withPublicNetworkAccess(WorkspacePublicNetworkAccess return this; } - /** - * Get the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * - * @return the cspWorkspaceAdminProperties value. - */ - public CspWorkspaceAdminProperties cspWorkspaceAdminProperties() { - return this.cspWorkspaceAdminProperties; - } - - /** - * Set the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * - * @param cspWorkspaceAdminProperties the cspWorkspaceAdminProperties value to set. - * @return the WorkspaceProperties object itself. - */ - public WorkspaceProperties - withCspWorkspaceAdminProperties(CspWorkspaceAdminProperties cspWorkspaceAdminProperties) { - this.cspWorkspaceAdminProperties = cspWorkspaceAdminProperties; - return this; - } - - /** - * Get the settings property: Workspace settings. - * - * @return the settings value. - */ - public Map settings() { - return this.settings; - } - - /** - * Get the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace - * subresource. - * - * @return the azureADOnlyAuthentication value. - */ - public Boolean azureADOnlyAuthentication() { - return this.azureADOnlyAuthentication; - } - - /** - * Set the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace - * subresource. - * - * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set. - * @return the WorkspaceProperties object itself. - */ - public WorkspaceProperties withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication) { - this.azureADOnlyAuthentication = azureADOnlyAuthentication; - return this; - } - - /** - * Get the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * - * @return the trustedServiceBypassEnabled value. - */ - public Boolean trustedServiceBypassEnabled() { - return this.trustedServiceBypassEnabled; - } - - /** - * Set the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * - * @param trustedServiceBypassEnabled the trustedServiceBypassEnabled value to set. - * @return the WorkspaceProperties object itself. - */ - public WorkspaceProperties withTrustedServiceBypassEnabled(Boolean trustedServiceBypassEnabled) { - this.trustedServiceBypassEnabled = trustedServiceBypassEnabled; - return this; - } - /** * Validates the instance. * @@ -536,9 +454,6 @@ public void validate() { if (purviewConfiguration() != null) { purviewConfiguration().validate(); } - if (cspWorkspaceAdminProperties() != null) { - cspWorkspaceAdminProperties().validate(); - } } /** @@ -552,6 +467,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("managedResourceGroupName", this.managedResourceGroupName); jsonWriter.writeStringField("sqlAdministratorLogin", this.sqlAdministratorLogin); jsonWriter.writeJsonField("virtualNetworkProfile", this.virtualNetworkProfile); + jsonWriter.writeMapField("connectivityEndpoints", this.connectivityEndpoints, + (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("managedVirtualNetwork", this.managedVirtualNetwork); jsonWriter.writeArrayField("privateEndpointConnections", this.privateEndpointConnections, (writer, element) -> writer.writeJson(element)); @@ -561,9 +478,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("purviewConfiguration", this.purviewConfiguration); jsonWriter.writeStringField("publicNetworkAccess", this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString()); - jsonWriter.writeJsonField("cspWorkspaceAdminProperties", this.cspWorkspaceAdminProperties); - jsonWriter.writeBooleanField("azureADOnlyAuthentication", this.azureADOnlyAuthentication); - jsonWriter.writeBooleanField("trustedServiceBypassEnabled", this.trustedServiceBypassEnabled); return jsonWriter.writeEndObject(); } @@ -610,7 +524,8 @@ public static WorkspaceProperties fromJson(JsonReader jsonReader) throws IOExcep deserializedWorkspaceProperties.workspaceUid = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); } else if ("extraProperties".equals(fieldName)) { - deserializedWorkspaceProperties.extraProperties = reader.readUntyped(); + Map extraProperties = reader.readMap(reader1 -> reader1.readUntyped()); + deserializedWorkspaceProperties.extraProperties = extraProperties; } else if ("managedVirtualNetworkSettings".equals(fieldName)) { deserializedWorkspaceProperties.managedVirtualNetworkSettings = ManagedVirtualNetworkSettings.fromJson(reader); @@ -624,18 +539,6 @@ public static WorkspaceProperties fromJson(JsonReader jsonReader) throws IOExcep } else if ("publicNetworkAccess".equals(fieldName)) { deserializedWorkspaceProperties.publicNetworkAccess = WorkspacePublicNetworkAccess.fromString(reader.getString()); - } else if ("cspWorkspaceAdminProperties".equals(fieldName)) { - deserializedWorkspaceProperties.cspWorkspaceAdminProperties - = CspWorkspaceAdminProperties.fromJson(reader); - } else if ("settings".equals(fieldName)) { - Map settings = reader.readMap(reader1 -> reader1.readUntyped()); - deserializedWorkspaceProperties.settings = settings; - } else if ("azureADOnlyAuthentication".equals(fieldName)) { - deserializedWorkspaceProperties.azureADOnlyAuthentication - = reader.getNullable(JsonReader::getBoolean); - } else if ("trustedServiceBypassEnabled".equals(fieldName)) { - deserializedWorkspaceProperties.trustedServiceBypassEnabled - = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AttachedDatabaseConfigurationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AttachedDatabaseConfigurationImpl.java deleted file mode 100644 index b503c19d0180..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AttachedDatabaseConfigurationImpl.java +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Collections; -import java.util.List; - -public final class AttachedDatabaseConfigurationImpl implements AttachedDatabaseConfiguration, - AttachedDatabaseConfiguration.Definition, AttachedDatabaseConfiguration.Update { - private AttachedDatabaseConfigurationInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public ResourceProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public String databaseName() { - return this.innerModel().databaseName(); - } - - public String kustoPoolResourceId() { - return this.innerModel().kustoPoolResourceId(); - } - - public List attachedDatabaseNames() { - List inner = this.innerModel().attachedDatabaseNames(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() { - return this.innerModel().defaultPrincipalsModificationKind(); - } - - public TableLevelSharingProperties tableLevelSharingProperties() { - return this.innerModel().tableLevelSharingProperties(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public AttachedDatabaseConfigurationInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - private String workspaceName; - - private String kustoPoolName; - - private String attachedDatabaseConfigurationName; - - private String resourceGroupName; - - public AttachedDatabaseConfigurationImpl withExistingKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName) { - this.workspaceName = workspaceName; - this.kustoPoolName = kustoPoolName; - this.resourceGroupName = resourceGroupName; - return this; - } - - public AttachedDatabaseConfiguration create() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .createOrUpdate(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - this.innerModel(), Context.NONE); - return this; - } - - public AttachedDatabaseConfiguration create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .createOrUpdate(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - this.innerModel(), context); - return this; - } - - AttachedDatabaseConfigurationImpl(String name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = new AttachedDatabaseConfigurationInner(); - this.serviceManager = serviceManager; - this.attachedDatabaseConfigurationName = name; - } - - public AttachedDatabaseConfigurationImpl update() { - return this; - } - - public AttachedDatabaseConfiguration apply() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .createOrUpdate(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - this.innerModel(), Context.NONE); - return this; - } - - public AttachedDatabaseConfiguration apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .createOrUpdate(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - this.innerModel(), context); - return this; - } - - AttachedDatabaseConfigurationImpl(AttachedDatabaseConfigurationInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.kustoPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kustoPools"); - this.attachedDatabaseConfigurationName - = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "attachedDatabaseConfigurations"); - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - } - - public AttachedDatabaseConfiguration refresh() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - Context.NONE) - .getValue(); - return this; - } - - public AttachedDatabaseConfiguration refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - context) - .getValue(); - return this; - } - - public AttachedDatabaseConfigurationImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public AttachedDatabaseConfigurationImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public AttachedDatabaseConfigurationImpl withDatabaseName(String databaseName) { - this.innerModel().withDatabaseName(databaseName); - return this; - } - - public AttachedDatabaseConfigurationImpl withKustoPoolResourceId(String kustoPoolResourceId) { - this.innerModel().withKustoPoolResourceId(kustoPoolResourceId); - return this; - } - - public AttachedDatabaseConfigurationImpl - withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { - this.innerModel().withDefaultPrincipalsModificationKind(defaultPrincipalsModificationKind); - return this; - } - - public AttachedDatabaseConfigurationImpl - withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties) { - this.innerModel().withTableLevelSharingProperties(tableLevelSharingProperties); - return this; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationImpl.java deleted file mode 100644 index 5f24136343df..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationImpl.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -import com.azure.resourcemanager.synapse.models.StateValue; -import java.time.OffsetDateTime; - -public final class AzureADOnlyAuthenticationImpl - implements AzureADOnlyAuthentication, AzureADOnlyAuthentication.Definition { - private AzureADOnlyAuthenticationInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - AzureADOnlyAuthenticationImpl(AzureADOnlyAuthenticationInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public boolean azureADOnlyAuthentication() { - return this.innerModel().azureADOnlyAuthentication(); - } - - public StateValue state() { - return this.innerModel().state(); - } - - public OffsetDateTime creationDate() { - return this.innerModel().creationDate(); - } - - public AzureADOnlyAuthenticationInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String workspaceName; - - private AzureADOnlyAuthenticationName azureADOnlyAuthenticationName; - - public AzureADOnlyAuthenticationImpl withExistingWorkspace(String resourceGroupName, String workspaceName) { - this.resourceGroupName = resourceGroupName; - this.workspaceName = workspaceName; - return this; - } - - public AzureADOnlyAuthentication create() { - this.innerObject = serviceManager.serviceClient() - .getAzureADOnlyAuthentications() - .create(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, this.innerModel(), Context.NONE); - return this; - } - - public AzureADOnlyAuthentication create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getAzureADOnlyAuthentications() - .create(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, this.innerModel(), context); - return this; - } - - AzureADOnlyAuthenticationImpl(AzureADOnlyAuthenticationName name, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = new AzureADOnlyAuthenticationInner(); - this.serviceManager = serviceManager; - this.azureADOnlyAuthenticationName = name; - } - - public AzureADOnlyAuthentication refresh() { - this.innerObject = serviceManager.serviceClient() - .getAzureADOnlyAuthentications() - .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE) - .getValue(); - return this; - } - - public AzureADOnlyAuthentication refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getAzureADOnlyAuthentications() - .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context) - .getValue(); - return this; - } - - public AzureADOnlyAuthenticationImpl withAzureADOnlyAuthentication(boolean azureADOnlyAuthentication) { - this.innerModel().withAzureADOnlyAuthentication(azureADOnlyAuthentication); - return this; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java deleted file mode 100644 index f45cd57ffe44..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java +++ /dev/null @@ -1,770 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.AzureADOnlyAuthenticationsClient; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationListResult; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. - */ -public final class AzureADOnlyAuthenticationsClientImpl implements AzureADOnlyAuthenticationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final AzureADOnlyAuthenticationsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of AzureADOnlyAuthenticationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - AzureADOnlyAuthenticationsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(AzureADOnlyAuthenticationsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientAzureADOnlyAuthentications to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface AzureADOnlyAuthenticationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("azureADOnlyAuthenticationName") AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}") - @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("azureADOnlyAuthenticationName") AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - @BodyParam("application/json") AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (azureADOnlyAuthenticationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (azureADOnlyAuthenticationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, azureADOnlyAuthenticationName, accept, context); - } - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { - return getWithResponseAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context).block(); - } - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AzureADOnlyAuthenticationInner get(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { - return getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE) - .getValue(); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (azureADOnlyAuthenticationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); - } - if (azureADOnlyAuthenticationInfo == null) { - return Mono.error(new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationInfo is required and cannot be null.")); - } else { - azureADOnlyAuthenticationInfo.validate(); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (azureADOnlyAuthenticationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); - } - if (azureADOnlyAuthenticationInfo == null) { - return Mono.error(new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationInfo is required and cannot be null.")); - } else { - azureADOnlyAuthenticationInfo.validate(); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, accept, context); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AzureADOnlyAuthenticationInner> beginCreateAsync( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - Mono>> mono = createWithResponseAsync(resourceGroupName, workspaceName, - azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), AzureADOnlyAuthenticationInner.class, AzureADOnlyAuthenticationInner.class, - this.client.getContext()); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AzureADOnlyAuthenticationInner> beginCreateAsync( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createWithResponseAsync(resourceGroupName, workspaceName, - azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), AzureADOnlyAuthenticationInner.class, AzureADOnlyAuthenticationInner.class, - context); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - return this - .beginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo) - .getSyncPoller(); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { - return this - .beginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo, context) - .getSyncPoller(); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - return beginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { - return beginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AzureADOnlyAuthenticationInner create(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - return createAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo).block(); - } - - /** - * Create or Update Azure Active Directory only authentication property - * - * Create or Update a Azure Active Directory only authentication property for the workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param azureADOnlyAuthenticationInfo Azure Active Directory Property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AzureADOnlyAuthenticationInner create(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { - return createAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo, context).block(); - } - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace along with - * {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String workspaceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace along with - * {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String workspaceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String workspaceName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(listAsync(resourceGroupName, workspaceName)); - } - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String workspaceName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active directory only authentications along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active directory only authentications along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java deleted file mode 100644 index 2d5c407cf821..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.AzureADOnlyAuthenticationsClient; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentications; - -public final class AzureADOnlyAuthenticationsImpl implements AzureADOnlyAuthentications { - private static final ClientLogger LOGGER = new ClientLogger(AzureADOnlyAuthenticationsImpl.class); - - private final AzureADOnlyAuthenticationsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public AzureADOnlyAuthenticationsImpl(AzureADOnlyAuthenticationsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new AzureADOnlyAuthenticationImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public AzureADOnlyAuthentication get(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { - AzureADOnlyAuthenticationInner inner - = this.serviceClient().get(resourceGroupName, workspaceName, azureADOnlyAuthenticationName); - if (inner != null) { - return new AzureADOnlyAuthenticationImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable list(String resourceGroupName, String workspaceName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, workspaceName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureADOnlyAuthenticationImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String workspaceName, - Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, workspaceName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureADOnlyAuthenticationImpl(inner1, this.manager())); - } - - public AzureADOnlyAuthentication getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String azureADOnlyAuthenticationNameLocal - = ResourceManagerUtils.getValueFromIdByName(id, "azureADOnlyAuthentications"); - if (azureADOnlyAuthenticationNameLocal == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'azureADOnlyAuthentications'.", id))); - } - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName - = AzureADOnlyAuthenticationName.fromString(azureADOnlyAuthenticationNameLocal); - return this.getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String azureADOnlyAuthenticationNameLocal - = ResourceManagerUtils.getValueFromIdByName(id, "azureADOnlyAuthentications"); - if (azureADOnlyAuthenticationNameLocal == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'azureADOnlyAuthentications'.", id))); - } - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName - = AzureADOnlyAuthenticationName.fromString(azureADOnlyAuthenticationNameLocal); - return this.getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context); - } - - private AzureADOnlyAuthenticationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - public AzureADOnlyAuthenticationImpl define(AzureADOnlyAuthenticationName name) { - return new AzureADOnlyAuthenticationImpl(name, this.manager()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureResourceSkuImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureResourceSkuImpl.java deleted file mode 100644 index 890e1f73b66c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureResourceSkuImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.azure.resourcemanager.synapse.models.AzureCapacity; -import com.azure.resourcemanager.synapse.models.AzureResourceSku; -import com.azure.resourcemanager.synapse.models.AzureSku; - -public final class AzureResourceSkuImpl implements AzureResourceSku { - private AzureResourceSkuInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - AzureResourceSkuImpl(AzureResourceSkuInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String resourceType() { - return this.innerModel().resourceType(); - } - - public AzureSku sku() { - return this.innerModel().sku(); - } - - public AzureCapacity capacity() { - return this.innerModel().capacity(); - } - - public AzureResourceSkuInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java index 8a97e40caaa8..fa8883704ebb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java @@ -16,7 +16,6 @@ import com.azure.resourcemanager.synapse.models.LibraryRequirements; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; import java.time.OffsetDateTime; import java.util.Collections; import java.util.List; @@ -73,10 +72,6 @@ public Boolean isComputeIsolationEnabled() { return this.innerModel().isComputeIsolationEnabled(); } - public Boolean isAutotuneEnabled() { - return this.innerModel().isAutotuneEnabled(); - } - public Boolean sessionLevelPackagesEnabled() { return this.innerModel().sessionLevelPackagesEnabled(); } @@ -110,7 +105,7 @@ public List customLibraries() { } } - public SparkConfigProperties sparkConfigProperties() { + public LibraryRequirements sparkConfigProperties() { return this.innerModel().sparkConfigProperties(); } @@ -269,6 +264,11 @@ public BigDataPoolResourceInfoImpl withAutoScale(AutoScaleProperties autoScale) return this; } + public BigDataPoolResourceInfoImpl withCreationDate(OffsetDateTime creationDate) { + this.innerModel().withCreationDate(creationDate); + return this; + } + public BigDataPoolResourceInfoImpl withAutoPause(AutoPauseProperties autoPause) { this.innerModel().withAutoPause(autoPause); return this; @@ -279,11 +279,6 @@ public BigDataPoolResourceInfoImpl withIsComputeIsolationEnabled(Boolean isCompu return this; } - public BigDataPoolResourceInfoImpl withIsAutotuneEnabled(Boolean isAutotuneEnabled) { - this.innerModel().withIsAutotuneEnabled(isAutotuneEnabled); - return this; - } - public BigDataPoolResourceInfoImpl withSessionLevelPackagesEnabled(Boolean sessionLevelPackagesEnabled) { this.innerModel().withSessionLevelPackagesEnabled(sessionLevelPackagesEnabled); return this; @@ -320,7 +315,7 @@ public BigDataPoolResourceInfoImpl withCustomLibraries(List customL return this; } - public BigDataPoolResourceInfoImpl withSparkConfigProperties(SparkConfigProperties sparkConfigProperties) { + public BigDataPoolResourceInfoImpl withSparkConfigProperties(LibraryRequirements sparkConfigProperties) { this.innerModel().withSparkConfigProperties(sparkConfigProperties); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java index 655cab5ab51d..f20f3a96dc7d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java @@ -167,11 +167,10 @@ private Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter bigDataPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, bigDataPoolName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, bigDataPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -211,11 +210,10 @@ private Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter bigDataPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, bigDataPoolName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, bigDataPoolName, accept, context); } /** @@ -318,12 +316,11 @@ private Mono> updateWithResponseAsync(Str } else { bigDataPoolPatchInfo.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, bigDataPoolName, + bigDataPoolPatchInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -370,11 +367,10 @@ private Mono> updateWithResponseAsync(Str } else { bigDataPoolPatchInfo.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, bigDataPoolName, bigDataPoolPatchInfo, accept, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, accept, context); } /** @@ -484,10 +480,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { bigDataPoolInfo.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, bigDataPoolName, force, bigDataPoolInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -538,11 +533,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { bigDataPoolInfo.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, bigDataPoolName, force, bigDataPoolInfo, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, bigDataPoolName, force, bigDataPoolInfo, + accept, context); } /** @@ -798,7 +793,7 @@ public BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, @@ -822,10 +817,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter bigDataPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, bigDataPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -842,7 +836,7 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, @@ -866,11 +860,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter bigDataPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, bigDataPoolName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, bigDataPoolName, accept, context); } /** @@ -884,15 +877,14 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of big Data pool. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BigDataPoolResourceInfoInner> - beginDeleteAsync(String resourceGroupName, String workspaceName, String bigDataPoolName) { + private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), BigDataPoolResourceInfoInner.class, BigDataPoolResourceInfoInner.class, + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); } @@ -908,16 +900,15 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of big Data pool. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BigDataPoolResourceInfoInner> - beginDeleteAsync(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), BigDataPoolResourceInfoInner.class, BigDataPoolResourceInfoInner.class, + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, context); } @@ -932,11 +923,11 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of big Data pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BigDataPoolResourceInfoInner> - beginDelete(String resourceGroupName, String workspaceName, String bigDataPoolName) { + public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + String bigDataPoolName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName).getSyncPoller(); } @@ -952,11 +943,11 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of big Data pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BigDataPoolResourceInfoInner> - beginDelete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context).getSyncPoller(); } @@ -971,11 +962,10 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, - String bigDataPoolName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String bigDataPoolName) { return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -992,11 +982,11 @@ private Mono deleteAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, - String bigDataPoolName, Context context) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String bigDataPoolName, + Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1012,10 +1002,10 @@ private Mono deleteAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner delete(String resourceGroupName, String workspaceName, String bigDataPoolName) { + public Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName) { return deleteAsync(resourceGroupName, workspaceName, bigDataPoolName).block(); } @@ -1031,11 +1021,10 @@ public BigDataPoolResourceInfoInner delete(String resourceGroupName, String work * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner delete(String resourceGroupName, String workspaceName, String bigDataPoolName, - Context context) { + public Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { return deleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context).block(); } @@ -1069,10 +1058,9 @@ private Mono> listByWorkspaceSingleP if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1110,12 +1098,11 @@ private Mono> listByWorkspaceSingleP if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java index 0a5cd36da002..41dea3ba78ec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java @@ -49,25 +49,12 @@ public BigDataPoolResourceInfo get(String resourceGroupName, String workspaceNam } } - public BigDataPoolResourceInfo delete(String resourceGroupName, String workspaceName, String bigDataPoolName) { - BigDataPoolResourceInfoInner inner - = this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName); - if (inner != null) { - return new BigDataPoolResourceInfoImpl(inner, this.manager()); - } else { - return null; - } + public Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName) { + return this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName); } - public BigDataPoolResourceInfo delete(String resourceGroupName, String workspaceName, String bigDataPoolName, - Context context) { - BigDataPoolResourceInfoInner inner - = this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName, context); - if (inner != null) { - return new BigDataPoolResourceInfoImpl(inner, this.manager()); - } else { - return null; - } + public Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + return this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName, context); } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -121,7 +108,7 @@ public Response getByIdWithResponse(String id, Context return this.getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, context); } - public BigDataPoolResourceInfo deleteById(String id) { + public Object deleteById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -140,7 +127,7 @@ public BigDataPoolResourceInfo deleteById(String id) { return this.delete(resourceGroupName, workspaceName, bigDataPoolName, Context.NONE); } - public BigDataPoolResourceInfo deleteByIdWithResponse(String id, Context context) { + public Object deleteByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameResultImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameResultImpl.java deleted file mode 100644 index 6d8275cbe09c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameResultImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.Reason; - -public final class CheckNameResultImpl implements CheckNameResult { - private CheckNameResultInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - CheckNameResultImpl(CheckNameResultInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public Boolean nameAvailable() { - return this.innerModel().nameAvailable(); - } - - public String name() { - return this.innerModel().name(); - } - - public String message() { - return this.innerModel().message(); - } - - public Reason reason() { - return this.innerModel().reason(); - } - - public CheckNameResultInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ClusterPrincipalAssignmentImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ClusterPrincipalAssignmentImpl.java deleted file mode 100644 index 936644619d21..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ClusterPrincipalAssignmentImpl.java +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; - -public final class ClusterPrincipalAssignmentImpl - implements ClusterPrincipalAssignment, ClusterPrincipalAssignment.Definition, ClusterPrincipalAssignment.Update { - private ClusterPrincipalAssignmentInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String principalId() { - return this.innerModel().principalId(); - } - - public ClusterPrincipalRole role() { - return this.innerModel().role(); - } - - public String tenantId() { - return this.innerModel().tenantId(); - } - - public PrincipalType principalType() { - return this.innerModel().principalType(); - } - - public String tenantName() { - return this.innerModel().tenantName(); - } - - public String principalName() { - return this.innerModel().principalName(); - } - - public ResourceProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public String aadObjectId() { - return this.innerModel().aadObjectId(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ClusterPrincipalAssignmentInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - private String workspaceName; - - private String kustoPoolName; - - private String principalAssignmentName; - - private String resourceGroupName; - - public ClusterPrincipalAssignmentImpl withExistingKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName) { - this.workspaceName = workspaceName; - this.kustoPoolName = kustoPoolName; - this.resourceGroupName = resourceGroupName; - return this; - } - - public ClusterPrincipalAssignment create() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolPrincipalAssignments() - .createOrUpdate(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, this.innerModel(), - Context.NONE); - return this; - } - - public ClusterPrincipalAssignment create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolPrincipalAssignments() - .createOrUpdate(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, this.innerModel(), - context); - return this; - } - - ClusterPrincipalAssignmentImpl(String name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = new ClusterPrincipalAssignmentInner(); - this.serviceManager = serviceManager; - this.principalAssignmentName = name; - } - - public ClusterPrincipalAssignmentImpl update() { - return this; - } - - public ClusterPrincipalAssignment apply() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolPrincipalAssignments() - .createOrUpdate(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, this.innerModel(), - Context.NONE); - return this; - } - - public ClusterPrincipalAssignment apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolPrincipalAssignments() - .createOrUpdate(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, this.innerModel(), - context); - return this; - } - - ClusterPrincipalAssignmentImpl(ClusterPrincipalAssignmentInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.kustoPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kustoPools"); - this.principalAssignmentName - = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "principalAssignments"); - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - } - - public ClusterPrincipalAssignment refresh() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolPrincipalAssignments() - .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE) - .getValue(); - return this; - } - - public ClusterPrincipalAssignment refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolPrincipalAssignments() - .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) - .getValue(); - return this; - } - - public ClusterPrincipalAssignmentImpl withPrincipalId(String principalId) { - this.innerModel().withPrincipalId(principalId); - return this; - } - - public ClusterPrincipalAssignmentImpl withRole(ClusterPrincipalRole role) { - this.innerModel().withRole(role); - return this; - } - - public ClusterPrincipalAssignmentImpl withTenantId(String tenantId) { - this.innerModel().withTenantId(tenantId); - return this; - } - - public ClusterPrincipalAssignmentImpl withPrincipalType(PrincipalType principalType) { - this.innerModel().withPrincipalType(principalType); - return this; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionImpl.java deleted file mode 100644 index ffd723f46694..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.management.SystemData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.models.DataConnection; -import com.azure.resourcemanager.synapse.models.DataConnectionKind; - -public final class DataConnectionImpl implements DataConnection { - private DataConnectionInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - DataConnectionImpl(DataConnectionInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public DataConnectionKind kind() { - return this.innerModel().kind(); - } - - public String location() { - return this.innerModel().location(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public DataConnectionInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationImpl.java deleted file mode 100644 index 5833579af4c5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import com.azure.resourcemanager.synapse.models.DataConnection; -import com.azure.resourcemanager.synapse.models.DataConnectionValidation; - -public final class DataConnectionValidationImpl implements DataConnectionValidation { - private DataConnectionValidationInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - DataConnectionValidationImpl(DataConnectionValidationInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String dataConnectionName() { - return this.innerModel().dataConnectionName(); - } - - public DataConnection properties() { - DataConnectionInner inner = this.innerModel().properties(); - if (inner != null) { - return new DataConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - - public DataConnectionValidationInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationListResultImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationListResultImpl.java deleted file mode 100644 index c7e5282acb0a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationListResultImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationListResult; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationResult; -import java.util.Collections; -import java.util.List; - -public final class DataConnectionValidationListResultImpl implements DataConnectionValidationListResult { - private DataConnectionValidationListResultInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - DataConnectionValidationListResultImpl(DataConnectionValidationListResultInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public DataConnectionValidationListResultInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java index 9865c10e9ab6..52dcc8a88cea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java @@ -121,11 +121,10 @@ private Mono> createOrUpdateWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -170,12 +169,12 @@ private Mono> createOrUpdateWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, + parameters, accept, context); } /** @@ -268,12 +267,12 @@ private Mono> getWithResponseAsync(String resou if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -310,12 +309,11 @@ private Mono> getWithResponseAsync(String resou if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java index 7acf29b63da3..3fafe4d33ad2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java @@ -145,11 +145,10 @@ private Mono> createOrUpdateWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, dataMaskingRuleName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -201,13 +200,12 @@ private Mono> createOrUpdateWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, dataMaskingRuleName, parameters, - accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, + dataMaskingRuleName, parameters, accept, context); } /** @@ -309,13 +307,12 @@ private Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter dataMaskingRuleName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, dataMaskingRuleName, accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, + dataMaskingRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -358,12 +355,11 @@ private Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter dataMaskingRuleName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, dataMaskingPolicyName, dataMaskingRuleName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, dataMaskingRuleName, accept, context); } /** @@ -457,13 +453,12 @@ private Mono> listBySqlPoolSinglePageAsync(S if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listBySqlPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context)) + .withContext(context -> service.listBySqlPool(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -503,13 +498,12 @@ private Mono> listBySqlPoolSinglePageAsync(S if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySqlPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context) + .listBySqlPool(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabaseImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabaseImpl.java deleted file mode 100644 index 97a7fa61a7b0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabaseImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.management.SystemData; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.Database; -import com.azure.resourcemanager.synapse.models.Kind; - -public final class DatabaseImpl implements Database { - private DatabaseInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - DatabaseImpl(DatabaseInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public Kind kind() { - return this.innerModel().kind(); - } - - public String location() { - return this.innerModel().location(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public DatabaseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabasePrincipalAssignmentImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabasePrincipalAssignmentImpl.java deleted file mode 100644 index 7debe17beaab..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabasePrincipalAssignmentImpl.java +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; - -public final class DatabasePrincipalAssignmentImpl - implements DatabasePrincipalAssignment, DatabasePrincipalAssignment.Definition, DatabasePrincipalAssignment.Update { - private DatabasePrincipalAssignmentInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String principalId() { - return this.innerModel().principalId(); - } - - public DatabasePrincipalRole role() { - return this.innerModel().role(); - } - - public String tenantId() { - return this.innerModel().tenantId(); - } - - public PrincipalType principalType() { - return this.innerModel().principalType(); - } - - public String tenantName() { - return this.innerModel().tenantName(); - } - - public String principalName() { - return this.innerModel().principalName(); - } - - public ResourceProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public String aadObjectId() { - return this.innerModel().aadObjectId(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public DatabasePrincipalAssignmentInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - private String workspaceName; - - private String kustoPoolName; - - private String databaseName; - - private String principalAssignmentName; - - private String resourceGroupName; - - public DatabasePrincipalAssignmentImpl withExistingDatabase(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName) { - this.workspaceName = workspaceName; - this.kustoPoolName = kustoPoolName; - this.databaseName = databaseName; - this.resourceGroupName = resourceGroupName; - return this; - } - - public DatabasePrincipalAssignment create() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .createOrUpdate(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - this.innerModel(), Context.NONE); - return this; - } - - public DatabasePrincipalAssignment create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .createOrUpdate(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - this.innerModel(), context); - return this; - } - - DatabasePrincipalAssignmentImpl(String name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = new DatabasePrincipalAssignmentInner(); - this.serviceManager = serviceManager; - this.principalAssignmentName = name; - } - - public DatabasePrincipalAssignmentImpl update() { - return this; - } - - public DatabasePrincipalAssignment apply() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .createOrUpdate(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - this.innerModel(), Context.NONE); - return this; - } - - public DatabasePrincipalAssignment apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .createOrUpdate(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - this.innerModel(), context); - return this; - } - - DatabasePrincipalAssignmentImpl(DatabasePrincipalAssignmentInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.kustoPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kustoPools"); - this.databaseName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "databases"); - this.principalAssignmentName - = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "principalAssignments"); - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - } - - public DatabasePrincipalAssignment refresh() { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - Context.NONE) - .getValue(); - return this; - } - - public DatabasePrincipalAssignment refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - context) - .getValue(); - return this; - } - - public DatabasePrincipalAssignmentImpl withPrincipalId(String principalId) { - this.innerModel().withPrincipalId(principalId); - return this; - } - - public DatabasePrincipalAssignmentImpl withRole(DatabasePrincipalRole role) { - this.innerModel().withRole(role); - return this; - } - - public DatabasePrincipalAssignmentImpl withTenantId(String tenantId) { - this.innerModel().withTenantId(tenantId); - return this; - } - - public DatabasePrincipalAssignmentImpl withPrincipalType(PrincipalType principalType) { - this.innerModel().withPrincipalType(principalType); - return this; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java deleted file mode 100644 index c8ede9999b83..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; - -public final class DedicatedSQLminimalTlsSettingsImpl implements DedicatedSQLminimalTlsSettings { - private DedicatedSQLminimalTlsSettingsInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - DedicatedSQLminimalTlsSettingsImpl(DedicatedSQLminimalTlsSettingsInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public String minimalTlsVersion() { - return this.innerModel().minimalTlsVersion(); - } - - public DedicatedSQLminimalTlsSettingsInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java index c84cfa0a3295..4cf6d9386d78 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java @@ -76,10 +76,6 @@ public Integer queueDelayMs() { return this.innerModel().queueDelayMs(); } - public Boolean isDevopsAuditEnabled() { - return this.innerModel().isDevopsAuditEnabled(); - } - public String resourceGroupName() { return resourceGroupName; } @@ -218,9 +214,4 @@ public ExtendedServerBlobAuditingPolicyImpl withQueueDelayMs(Integer queueDelayM this.innerModel().withQueueDelayMs(queueDelayMs); return this; } - - public ExtendedServerBlobAuditingPolicyImpl withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { - this.innerModel().withIsDevopsAuditEnabled(isDevopsAuditEnabled); - return this; - } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java index 4b905c6d9a2d..4e8c6821c31c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java @@ -138,12 +138,12 @@ private Mono> getWithResponseAs if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String blobAuditingPolicyName = "default"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -181,12 +181,11 @@ private Mono> getWithResponseAs if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String blobAuditingPolicyName = "default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context); } /** @@ -282,11 +281,10 @@ private Mono> createOrUpdateWit } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String blobAuditingPolicyName = "default"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -333,12 +331,12 @@ private Mono> createOrUpdateWit } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String blobAuditingPolicyName = "default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, + parameters, accept, context); } /** @@ -432,10 +430,9 @@ public ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate(String resourceGrou if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listBySqlPool(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listBySqlPool(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -476,12 +473,11 @@ private Mono> listBySqlPoo if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySqlPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .listBySqlPool(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/FollowerDatabaseDefinitionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/FollowerDatabaseDefinitionImpl.java deleted file mode 100644 index 23a35fd4ffb7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/FollowerDatabaseDefinitionImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import com.azure.resourcemanager.synapse.models.FollowerDatabaseDefinition; - -public final class FollowerDatabaseDefinitionImpl implements FollowerDatabaseDefinition { - private FollowerDatabaseDefinitionInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - FollowerDatabaseDefinitionImpl(FollowerDatabaseDefinitionInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String kustoPoolResourceId() { - return this.innerModel().kustoPoolResourceId(); - } - - public String attachedDatabaseConfigurationName() { - return this.innerModel().attachedDatabaseConfigurationName(); - } - - public String databaseName() { - return this.innerModel().databaseName(); - } - - public FollowerDatabaseDefinitionInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsClientImpl.java deleted file mode 100644 index 24fb23fc2866..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsClientImpl.java +++ /dev/null @@ -1,598 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.synapse.fluent.GetsClient; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in GetsClient. - */ -public final class GetsClientImpl implements GetsClient { - /** - * The proxy service used to perform REST calls. - */ - private final GetsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of GetsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - GetsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(GetsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientGets to be used by the proxy service to - * perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface GetsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start/operationstatuses/{integrationRuntimeOperationId}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> integrationRuntimeStart( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("integrationRuntimeOperationId") String integrationRuntimeOperationId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop/operationstatuses/{integrationRuntimeOperationId}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> integrationRuntimeStop( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("integrationRuntimeOperationId") String integrationRuntimeOperationId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableinteractivequery/operationstatuses/{integrationRuntimeOperationId}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> integrationRuntimeEnableInteractivequery( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("integrationRuntimeOperationId") String integrationRuntimeOperationId, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> integrationRuntimeStartWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono.error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntimeOperationId == null) { - return Mono.error(new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.integrationRuntimeStart(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> integrationRuntimeStartWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono.error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntimeOperationId == null) { - return Mono.error(new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.integrationRuntimeStart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, accept, context); - } - - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono integrationRuntimeStartAsync(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { - return integrationRuntimeStartWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response integrationRuntimeStartWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId, Context context) { - return integrationRuntimeStartWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, context).block(); - } - - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeOperationStatusInner integrationRuntimeStart(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { - return integrationRuntimeStartWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, Context.NONE).getValue(); - } - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> integrationRuntimeStopWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono.error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntimeOperationId == null) { - return Mono.error(new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.integrationRuntimeStop(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> integrationRuntimeStopWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono.error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntimeOperationId == null) { - return Mono.error(new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.integrationRuntimeStop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, accept, context); - } - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono integrationRuntimeStopAsync(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { - return integrationRuntimeStopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response integrationRuntimeStopWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId, Context context) { - return integrationRuntimeStopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, context).block(); - } - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { - return integrationRuntimeStopWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, Context.NONE).getValue(); - } - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - integrationRuntimeEnableInteractivequeryWithResponseAsync(String resourceGroupName, String workspaceName, - String integrationRuntimeName, String integrationRuntimeOperationId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono.error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntimeOperationId == null) { - return Mono.error(new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.integrationRuntimeEnableInteractivequery(this.client.getEndpoint(), - apiVersion, this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - integrationRuntimeEnableInteractivequeryWithResponseAsync(String resourceGroupName, String workspaceName, - String integrationRuntimeName, String integrationRuntimeOperationId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - return Mono.error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntimeOperationId == null) { - return Mono.error(new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.integrationRuntimeEnableInteractivequery(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, accept, context); - } - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono integrationRuntimeEnableInteractivequeryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId) { - return integrationRuntimeEnableInteractivequeryWithResponseAsync(resourceGroupName, workspaceName, - integrationRuntimeName, integrationRuntimeOperationId).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response integrationRuntimeEnableInteractivequeryWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId, Context context) { - return integrationRuntimeEnableInteractivequeryWithResponseAsync(resourceGroupName, workspaceName, - integrationRuntimeName, integrationRuntimeOperationId, context).block(); - } - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeEnableinteractivequeryInner integrationRuntimeEnableInteractivequery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId) { - return integrationRuntimeEnableInteractivequeryWithResponse(resourceGroupName, workspaceName, - integrationRuntimeName, integrationRuntimeOperationId, Context.NONE).getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsImpl.java deleted file mode 100644 index f2d62f7af671..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsImpl.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.GetsClient; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; -import com.azure.resourcemanager.synapse.models.Gets; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeEnableinteractivequery; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOperationStatus; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStopOperationStatus; - -public final class GetsImpl implements Gets { - private static final ClientLogger LOGGER = new ClientLogger(GetsImpl.class); - - private final GetsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public GetsImpl(GetsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response integrationRuntimeStartWithResponse(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context) { - Response inner = this.serviceClient() - .integrationRuntimeStartWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new IntegrationRuntimeOperationStatusImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeOperationStatus integrationRuntimeStart(String resourceGroupName, String workspaceName, - String integrationRuntimeName, String integrationRuntimeOperationId) { - IntegrationRuntimeOperationStatusInner inner = this.serviceClient() - .integrationRuntimeStart(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId); - if (inner != null) { - return new IntegrationRuntimeOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response integrationRuntimeStopWithResponse(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context) { - Response inner = this.serviceClient() - .integrationRuntimeStopWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new IntegrationRuntimeStopOperationStatusImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeStopOperationStatus integrationRuntimeStop(String resourceGroupName, String workspaceName, - String integrationRuntimeName, String integrationRuntimeOperationId) { - IntegrationRuntimeStopOperationStatusInner inner = this.serviceClient() - .integrationRuntimeStop(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId); - if (inner != null) { - return new IntegrationRuntimeStopOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response integrationRuntimeEnableInteractivequeryWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId, Context context) { - Response inner = this.serviceClient() - .integrationRuntimeEnableInteractivequeryWithResponse(resourceGroupName, workspaceName, - integrationRuntimeName, integrationRuntimeOperationId, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new IntegrationRuntimeEnableinteractivequeryImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public IntegrationRuntimeEnableinteractivequery integrationRuntimeEnableInteractivequery(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { - IntegrationRuntimeEnableinteractivequeryInner inner = this.serviceClient() - .integrationRuntimeEnableInteractivequery(resourceGroupName, workspaceName, integrationRuntimeName, - integrationRuntimeOperationId); - if (inner != null) { - return new IntegrationRuntimeEnableinteractivequeryImpl(inner, this.manager()); - } else { - return null; - } - } - - private GetsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java index c0090d2eb355..caff0fcce006 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java @@ -127,12 +127,11 @@ private Mono> regenerateWithResponseAs } else { regenerateKeyParameters.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.regenerate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, accept, context)) + .withContext(context -> service.regenerate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + regenerateKeyParameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -181,11 +180,11 @@ private Mono> regenerateWithResponseAs } else { regenerateKeyParameters.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.regenerate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, accept, context); + return service.regenerate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + regenerateKeyParameters, accept, context); } /** @@ -289,11 +288,9 @@ private Mono> listWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -334,11 +331,10 @@ private Mono> listWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, accept, context); + return service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java index fa28f579abd0..6ba17e774bc2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java @@ -104,11 +104,9 @@ private Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -149,11 +147,10 @@ private Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java index c592c7d45c0a..fc035ab88256 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java @@ -105,11 +105,9 @@ private Mono> syncWithResponseAsync(String resourceGroupName, Str return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.sync(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.sync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -152,11 +150,10 @@ private Mono> syncWithResponseAsync(String resourceGroupName, Str return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.sync(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, accept, context); + return service.sync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeEnableinteractivequeryImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeEnableinteractivequeryImpl.java deleted file mode 100644 index f06794e116b9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeEnableinteractivequeryImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeEnableinteractivequery; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; - -public final class IntegrationRuntimeEnableinteractivequeryImpl implements IntegrationRuntimeEnableinteractivequery { - private IntegrationRuntimeEnableinteractivequeryInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - IntegrationRuntimeEnableinteractivequeryImpl(IntegrationRuntimeEnableinteractivequeryInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public WorkspaceStatus status() { - return this.innerModel().status(); - } - - public String name() { - return this.innerModel().name(); - } - - public Object properties() { - return this.innerModel().properties(); - } - - public String error() { - return this.innerModel().error(); - } - - public IntegrationRuntimeEnableinteractivequeryInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java index f735117dcdb8..fd721d478106 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java @@ -104,11 +104,9 @@ private Mono> listWithResponseAs return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -149,11 +147,10 @@ private Mono> listWithResponseAs return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, accept, context); + return service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java index e38e7c5579ce..5e26a1c89315 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java @@ -110,11 +110,11 @@ private Mono> getWithResponseAsyn if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, nodeName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -159,11 +159,10 @@ private Mono> getWithResponseAsyn if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, nodeName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java index 62b0501bd585..865c1fe2a3e9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java @@ -132,11 +132,11 @@ private Mono> getWithResponseAsy if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, nodeName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -180,11 +180,10 @@ private Mono> getWithResponseAsy if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, nodeName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context); } /** @@ -299,10 +298,9 @@ private Mono> updateWithResponse } else { updateIntegrationRuntimeNodeRequest.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -357,11 +355,11 @@ private Mono> updateWithResponse } else { updateIntegrationRuntimeNodeRequest.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, accept, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, + accept, context); } /** @@ -473,12 +471,11 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, nodeName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -522,11 +519,10 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, nodeName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java index a1347e9b03d3..89c7b886d3b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java @@ -127,11 +127,11 @@ private Mono> listWithResponseAsyn if (getMetadataRequest != null) { getMetadataRequest.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + getMetadataRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -177,11 +177,10 @@ private Mono> listWithResponseAsyn if (getMetadataRequest != null) { getMetadataRequest.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, getMetadataRequest, accept, context); + return service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, accept, context); } /** @@ -284,12 +283,9 @@ private Mono>> refreshWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.refresh(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.refresh(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -329,10 +325,9 @@ private Mono>> refreshWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.refresh(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + return service.refresh(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeOperationStatusImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeOperationStatusImpl.java deleted file mode 100644 index 32492ce784f0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeOperationStatusImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOperationStatus; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; - -public final class IntegrationRuntimeOperationStatusImpl implements IntegrationRuntimeOperationStatus { - private IntegrationRuntimeOperationStatusInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - IntegrationRuntimeOperationStatusImpl(IntegrationRuntimeOperationStatusInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public WorkspaceStatus status() { - return this.innerModel().status(); - } - - public String name() { - return this.innerModel().name(); - } - - public Object properties() { - return this.innerModel().properties(); - } - - public String error() { - return this.innerModel().error(); - } - - public IntegrationRuntimeOperationStatusInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java index 3e29bce149d1..08432d28de3c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java @@ -103,11 +103,9 @@ private Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -147,11 +145,10 @@ private Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStopOperationStatusImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStopOperationStatusImpl.java deleted file mode 100644 index 8016688157f8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStopOperationStatusImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStopOperationStatus; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; - -public final class IntegrationRuntimeStopOperationStatusImpl implements IntegrationRuntimeStopOperationStatus { - private IntegrationRuntimeStopOperationStatusInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - IntegrationRuntimeStopOperationStatusImpl(IntegrationRuntimeStopOperationStatusInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public WorkspaceStatus status() { - return this.innerModel().status(); - } - - public String name() { - return this.innerModel().name(); - } - - public Object properties() { - return this.innerModel().properties(); - } - - public String error() { - return this.innerModel().error(); - } - - public IntegrationRuntimeStopOperationStatusInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java index 70b2f3dc656b..7c6de7592574 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java @@ -240,10 +240,9 @@ private Mono> updateWithResponseAsync( } else { updateIntegrationRuntimeRequest.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -293,11 +292,10 @@ private Mono> updateWithResponseAsync( } else { updateIntegrationRuntimeRequest.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, accept, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, accept, context); } /** @@ -402,11 +400,11 @@ private Mono> getWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -448,11 +446,10 @@ private Mono> getWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, ifNoneMatch, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, accept, context); } /** @@ -564,10 +561,9 @@ private Mono>> createWithResponseAsync(String resource } else { integrationRuntime.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, ifMatch, integrationRuntime, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -619,11 +615,10 @@ private Mono>> createWithResponseAsync(String resource } else { integrationRuntime.validate(); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, ifMatch, integrationRuntime, accept, context); + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, ifMatch, integrationRuntime, accept, context); } /** @@ -913,12 +908,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -958,11 +950,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** @@ -1160,12 +1151,9 @@ private Mono> upgradeWithResponseAsync(String resourceGroupName, return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.upgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.upgrade(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1205,10 +1193,9 @@ private Mono> upgradeWithResponseAsync(String resourceGroupName, return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.upgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + return service.upgrade(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } @@ -1299,10 +1286,9 @@ public void upgrade(String resourceGroupName, String workspaceName, String integ if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1341,12 +1327,11 @@ public void upgrade(String resourceGroupName, String workspaceName, String integ if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1462,12 +1447,9 @@ private Mono>> startWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.start(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1507,11 +1489,10 @@ private Mono>> startWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, accept, context); + return service.start(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** @@ -1717,11 +1698,9 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil.withContext(context -> service.stop(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1761,11 +1740,10 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, integrationRuntimeName, accept, context); + return service.stop(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** @@ -1965,12 +1943,11 @@ public void stop(String resourceGroupName, String workspaceName, String integrat return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), - apiVersion, this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, - accept, context)) + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, + integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2012,10 +1989,9 @@ public void stop(String resourceGroupName, String workspaceName, String integrat return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), apiVersion, + return service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } @@ -2117,10 +2093,11 @@ private Mono>> enableInteractiveQueryWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.enableInteractiveQuery(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil + .withContext(context -> service.enableInteractiveQuery(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, + integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2158,11 +2135,10 @@ private Mono>> enableInteractiveQueryWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.enableInteractiveQuery(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context); + return service.enableInteractiveQuery(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** @@ -2347,10 +2323,11 @@ private Mono>> disableInteractiveQueryWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.disableInteractiveQuery(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) + return FluxUtil + .withContext(context -> service.disableInteractiveQuery(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, + integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2388,11 +2365,10 @@ private Mono>> disableInteractiveQueryWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.disableInteractiveQuery(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, integrationRuntimeName, accept, context); + return service.disableInteractiveQuery(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java index 40bb8881e9e8..d972ca77be9d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java @@ -84,7 +84,7 @@ Mono> listByWorkspace(@HostParam("$host") @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}") - @ExpectedResponses({ 200, 201, 202 }) + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -158,10 +158,9 @@ private Mono> listByWorkspaceSinglePageAs if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -197,12 +196,11 @@ private Mono> listByWorkspaceSinglePageAs if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -312,10 +310,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { ipFirewallRuleInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -361,11 +358,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { ipFirewallRuleInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, accept, + context); } /** @@ -539,7 +536,7 @@ public IpFirewallRuleInfoInner createOrUpdate(String resourceGroupName, String w * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, @@ -562,10 +559,9 @@ private Mono>> deleteWithResponseAsync(String resource if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, ruleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -580,7 +576,7 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, @@ -603,11 +599,10 @@ private Mono>> deleteWithResponseAsync(String resource if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, ruleName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, ruleName, accept, context); } /** @@ -619,14 +614,13 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of iP firewall rule. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, IpFirewallRuleInfoInner> - beginDeleteAsync(String resourceGroupName, String workspaceName, String ruleName) { + private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName, + String ruleName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, ruleName); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), IpFirewallRuleInfoInner.class, IpFirewallRuleInfoInner.class, + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); } @@ -640,16 +634,16 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of iP firewall rule. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, IpFirewallRuleInfoInner> - beginDeleteAsync(String resourceGroupName, String workspaceName, String ruleName, Context context) { + private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName, + String ruleName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, ruleName, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), IpFirewallRuleInfoInner.class, IpFirewallRuleInfoInner.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + context); } /** @@ -661,11 +655,11 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of iP firewall rule. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, IpFirewallRuleInfoInner> - beginDelete(String resourceGroupName, String workspaceName, String ruleName) { + public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + String ruleName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, ruleName).getSyncPoller(); } @@ -679,11 +673,11 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of iP firewall rule. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, IpFirewallRuleInfoInner> - beginDelete(String resourceGroupName, String workspaceName, String ruleName, Context context) { + public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + String ruleName, Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, ruleName, context).getSyncPoller(); } @@ -696,10 +690,10 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String ruleName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String ruleName) { return beginDeleteAsync(resourceGroupName, workspaceName, ruleName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -714,11 +708,10 @@ private Mono deleteAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String ruleName, - Context context) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String ruleName, Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, ruleName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -732,10 +725,10 @@ private Mono deleteAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IpFirewallRuleInfoInner delete(String resourceGroupName, String workspaceName, String ruleName) { + public Object delete(String resourceGroupName, String workspaceName, String ruleName) { return deleteAsync(resourceGroupName, workspaceName, ruleName).block(); } @@ -749,11 +742,10 @@ public IpFirewallRuleInfoInner delete(String resourceGroupName, String workspace * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IpFirewallRuleInfoInner delete(String resourceGroupName, String workspaceName, String ruleName, - Context context) { + public Object delete(String resourceGroupName, String workspaceName, String ruleName, Context context) { return deleteAsync(resourceGroupName, workspaceName, ruleName, context).block(); } @@ -789,11 +781,10 @@ private Mono> getWithResponseAsync(String reso if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, ruleName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, ruleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -830,11 +821,10 @@ private Mono> getWithResponseAsync(String reso if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, ruleName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, ruleName, accept, context); } /** @@ -923,10 +913,9 @@ private Mono>> replaceAllWithResponseAsync(String reso } else { request.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.replaceAll(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.replaceAll(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, request, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -967,11 +956,10 @@ private Mono>> replaceAllWithResponseAsync(String reso } else { request.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.replaceAll(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, request, accept, context); + return service.replaceAll(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, request, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java index 6018a418ac5c..1f99eec4077b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java @@ -43,23 +43,12 @@ public PagedIterable listByWorkspace(String resourceGroupNam return ResourceManagerUtils.mapPage(inner, inner1 -> new IpFirewallRuleInfoImpl(inner1, this.manager())); } - public IpFirewallRuleInfo delete(String resourceGroupName, String workspaceName, String ruleName) { - IpFirewallRuleInfoInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, ruleName); - if (inner != null) { - return new IpFirewallRuleInfoImpl(inner, this.manager()); - } else { - return null; - } + public Object delete(String resourceGroupName, String workspaceName, String ruleName) { + return this.serviceClient().delete(resourceGroupName, workspaceName, ruleName); } - public IpFirewallRuleInfo delete(String resourceGroupName, String workspaceName, String ruleName, Context context) { - IpFirewallRuleInfoInner inner - = this.serviceClient().delete(resourceGroupName, workspaceName, ruleName, context); - if (inner != null) { - return new IpFirewallRuleInfoImpl(inner, this.manager()); - } else { - return null; - } + public Object delete(String resourceGroupName, String workspaceName, String ruleName, Context context) { + return this.serviceClient().delete(resourceGroupName, workspaceName, ruleName, context); } public Response getWithResponse(String resourceGroupName, String workspaceName, String ruleName, @@ -143,7 +132,7 @@ public Response getByIdWithResponse(String id, Context conte return this.getWithResponse(resourceGroupName, workspaceName, ruleName, context); } - public IpFirewallRuleInfo deleteById(String id) { + public Object deleteById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -162,7 +151,7 @@ public IpFirewallRuleInfo deleteById(String id) { return this.delete(resourceGroupName, workspaceName, ruleName, Context.NONE); } - public IpFirewallRuleInfo deleteByIdWithResponse(String id, Context context) { + public Object deleteByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java index 4bf0cf2590e5..26133644c889 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java @@ -138,10 +138,9 @@ private Mono> listByWorkspaceSinglePageAsync(String reso if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -177,12 +176,11 @@ private Mono> listByWorkspaceSinglePageAsync(String reso if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -283,11 +281,10 @@ private Mono> getWithResponseAsync(String resourceGroupName, if (keyName == null) { return Mono.error(new IllegalArgumentException("Parameter keyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, keyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, keyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -324,11 +321,10 @@ private Mono> getWithResponseAsync(String resourceGroupName, if (keyName == null) { return Mono.error(new IllegalArgumentException("Parameter keyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, keyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, keyName, accept, context); } /** @@ -420,10 +416,11 @@ private Mono> createOrUpdateWithResponseAsync(String resource } else { keyProperties.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, keyName, keyProperties, accept, context)) + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, keyName, keyProperties, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -466,11 +463,10 @@ private Mono> createOrUpdateWithResponseAsync(String resource } else { keyProperties.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, keyName, keyProperties, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, keyName, keyProperties, accept, context); } /** @@ -563,10 +559,9 @@ private Mono> deleteWithResponseAsync(String resourceGroupNam if (keyName == null) { return Mono.error(new IllegalArgumentException("Parameter keyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, keyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -604,11 +599,10 @@ private Mono> deleteWithResponseAsync(String resourceGroupNam if (keyName == null) { return Mono.error(new IllegalArgumentException("Parameter keyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, keyName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, keyName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java deleted file mode 100644 index f1c132972897..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.synapse.fluent.KustoOperationsClient; -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import com.azure.resourcemanager.synapse.models.OperationListResult; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in KustoOperationsClient. - */ -public final class KustoOperationsClientImpl implements KustoOperationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoOperationsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoOperationsClientImpl(SynapseManagementClientImpl client) { - this.service - = RestProxy.create(KustoOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoOperations to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoOperationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/providers/Microsoft.Synapse/kustooperations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java deleted file mode 100644 index fcb377f2d7f0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoOperationsClient; -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import com.azure.resourcemanager.synapse.models.KustoOperations; -import com.azure.resourcemanager.synapse.models.Operation; - -public final class KustoOperationsImpl implements KustoOperations { - private static final ClientLogger LOGGER = new ClientLogger(KustoOperationsImpl.class); - - private final KustoOperationsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoOperationsImpl(KustoOperationsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); - } - - private KustoOperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java deleted file mode 100644 index 96fc0dfe6d64..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java +++ /dev/null @@ -1,976 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.KustoPoolAttachedDatabaseConfigurationsClient; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfigurationListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in - * KustoPoolAttachedDatabaseConfigurationsClient. - */ -public final class KustoPoolAttachedDatabaseConfigurationsClientImpl - implements KustoPoolAttachedDatabaseConfigurationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoPoolAttachedDatabaseConfigurationsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoPoolAttachedDatabaseConfigurationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoPoolAttachedDatabaseConfigurationsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(KustoPoolAttachedDatabaseConfigurationsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoPoolAttachedDatabaseConfigurations to be - * used by the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoPoolAttachedDatabaseConfigurationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByKustoPool(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("attachedDatabaseConfigurationName") String attachedDatabaseConfigurationName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") - @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("attachedDatabaseConfigurationName") String attachedDatabaseConfigurationName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") AttachedDatabaseConfigurationInner parameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("attachedDatabaseConfigurationName") String attachedDatabaseConfigurationName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByKustoPoolSinglePageAsync(String workspaceName, - String kustoPoolName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByKustoPool(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByKustoPoolSinglePageAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByKustoPool(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), - resourceGroupName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByKustoPoolAsync(String workspaceName, - String kustoPoolName, String resourceGroupName) { - return new PagedFlux<>(() -> listByKustoPoolSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByKustoPoolAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listByKustoPoolSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return new PagedIterable<>(listByKustoPoolAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return new PagedIterable<>(listByKustoPoolAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String workspaceName, - String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (attachedDatabaseConfigurationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String workspaceName, - String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (attachedDatabaseConfigurationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, attachedDatabaseConfigurationName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); - } - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName) { - return getWithResponseAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { - return getWithResponseAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - context).block(); - } - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDatabaseConfigurationInner get(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName) { - return getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - Context.NONE).getValue(); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (attachedDatabaseConfigurationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, - parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (attachedDatabaseConfigurationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, - parameters, accept, context); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AttachedDatabaseConfigurationInner> - beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, AttachedDatabaseConfigurationInner parameters) { - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, resourceGroupName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), AttachedDatabaseConfigurationInner.class, - AttachedDatabaseConfigurationInner.class, this.client.getContext()); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AttachedDatabaseConfigurationInner> - beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, AttachedDatabaseConfigurationInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, resourceGroupName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), AttachedDatabaseConfigurationInner.class, - AttachedDatabaseConfigurationInner.class, context); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AttachedDatabaseConfigurationInner> - beginCreateOrUpdate(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, AttachedDatabaseConfigurationInner parameters) { - return this - .beginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, - resourceGroupName, parameters) - .getSyncPoller(); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AttachedDatabaseConfigurationInner> - beginCreateOrUpdate(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, AttachedDatabaseConfigurationInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, - resourceGroupName, parameters, context) - .getSyncPoller(); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters) { - return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, - resourceGroupName, parameters).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, Context context) { - return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, - resourceGroupName, parameters, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDatabaseConfigurationInner createOrUpdate(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters) { - return createOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - parameters).block(); - } - - /** - * Creates or updates an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDatabaseConfigurationInner createOrUpdate(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, Context context) { - return createOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - parameters, context).block(); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (attachedDatabaseConfigurationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (attachedDatabaseConfigurationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, - context); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName) { - Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, resourceGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, - attachedDatabaseConfigurationName, resourceGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName) { - return this.beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName) - .getSyncPoller(); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { - return this - .beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - context) - .getSyncPoller(); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName) { - return beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, Context context) { - return beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName) { - deleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName).block(); - } - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, Context context) { - deleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context) - .block(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java deleted file mode 100644 index bbf9f6d6ff9a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoPoolAttachedDatabaseConfigurationsClient; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; -import com.azure.resourcemanager.synapse.models.KustoPoolAttachedDatabaseConfigurations; - -public final class KustoPoolAttachedDatabaseConfigurationsImpl implements KustoPoolAttachedDatabaseConfigurations { - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolAttachedDatabaseConfigurationsImpl.class); - - private final KustoPoolAttachedDatabaseConfigurationsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoPoolAttachedDatabaseConfigurationsImpl(KustoPoolAttachedDatabaseConfigurationsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName) { - PagedIterable inner - = this.serviceClient().listByKustoPool(workspaceName, kustoPoolName, resourceGroupName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new AttachedDatabaseConfigurationImpl(inner1, this.manager())); - } - - public PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listByKustoPool(workspaceName, kustoPoolName, resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new AttachedDatabaseConfigurationImpl(inner1, this.manager())); - } - - public Response getWithResponse(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new AttachedDatabaseConfigurationImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public AttachedDatabaseConfiguration get(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName) { - AttachedDatabaseConfigurationInner inner = this.serviceClient() - .get(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName); - if (inner != null) { - return new AttachedDatabaseConfigurationImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName) { - this.serviceClient().delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName); - } - - public void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, Context context) { - this.serviceClient() - .delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context); - } - - public AttachedDatabaseConfiguration getById(String id) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String attachedDatabaseConfigurationName - = ResourceManagerUtils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); - if (attachedDatabaseConfigurationName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( - "The resource ID '%s' is not valid. Missing path segment 'attachedDatabaseConfigurations'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - return this - .getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String attachedDatabaseConfigurationName - = ResourceManagerUtils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); - if (attachedDatabaseConfigurationName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( - "The resource ID '%s' is not valid. Missing path segment 'attachedDatabaseConfigurations'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - return this.getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, - context); - } - - public void deleteById(String id) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String attachedDatabaseConfigurationName - = ResourceManagerUtils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); - if (attachedDatabaseConfigurationName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( - "The resource ID '%s' is not valid. Missing path segment 'attachedDatabaseConfigurations'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - this.delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String attachedDatabaseConfigurationName - = ResourceManagerUtils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); - if (attachedDatabaseConfigurationName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( - "The resource ID '%s' is not valid. Missing path segment 'attachedDatabaseConfigurations'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - this.delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context); - } - - private KustoPoolAttachedDatabaseConfigurationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - public AttachedDatabaseConfigurationImpl define(String name) { - return new AttachedDatabaseConfigurationImpl(name, this.manager()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java deleted file mode 100644 index ca9999083595..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.synapse.fluent.KustoPoolChildResourcesClient; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolChildResourcesClient. - */ -public final class KustoPoolChildResourcesClientImpl implements KustoPoolChildResourcesClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoPoolChildResourcesService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoPoolChildResourcesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoPoolChildResourcesClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(KustoPoolChildResourcesService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoPoolChildResources to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoPoolChildResourcesService { - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DatabaseCheckNameRequest resourceName, @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } else { - resourceName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.checkNameAvailability(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, resourceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } else { - resourceName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.checkNameAvailability(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, resourceName, accept, context); - } - - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, DatabaseCheckNameRequest resourceName) { - return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context) { - return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName, - context).block(); - } - - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, - String resourceGroupName, DatabaseCheckNameRequest resourceName) { - return checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, resourceGroupName, resourceName, - Context.NONE).getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java deleted file mode 100644 index 0aa1c51837d3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoPoolChildResourcesClient; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -import com.azure.resourcemanager.synapse.models.KustoPoolChildResources; - -public final class KustoPoolChildResourcesImpl implements KustoPoolChildResources { - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolChildResourcesImpl.class); - - private final KustoPoolChildResourcesClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoPoolChildResourcesImpl(KustoPoolChildResourcesClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context) { - Response inner = this.serviceClient() - .checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, resourceGroupName, resourceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new CheckNameResultImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, - DatabaseCheckNameRequest resourceName) { - CheckNameResultInner inner - = this.serviceClient().checkNameAvailability(workspaceName, kustoPoolName, resourceGroupName, resourceName); - if (inner != null) { - return new CheckNameResultImpl(inner, this.manager()); - } else { - return null; - } - } - - private KustoPoolChildResourcesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java deleted file mode 100644 index 5dbb472c4141..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java +++ /dev/null @@ -1,1817 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDataConnectionsClient; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -import com.azure.resourcemanager.synapse.models.DataConnectionListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. - */ -public final class KustoPoolDataConnectionsClientImpl implements KustoPoolDataConnectionsClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoPoolDataConnectionsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoPoolDataConnectionsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoPoolDataConnectionsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(KustoPoolDataConnectionsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoPoolDataConnections to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoPoolDataConnectionsService { - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkNameAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataConnectionCheckNameRequest dataConnectionName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnectionValidation") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> dataConnectionValidation(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataConnectionValidationInner parameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByDatabase(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @PathParam("dataConnectionName") String dataConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @PathParam("dataConnectionName") String dataConnectionName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataConnectionInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @PathParam("dataConnectionName") String dataConnectionName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataConnectionInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @PathParam("dataConnectionName") String dataConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } else { - dataConnectionName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, workspaceName, kustoPoolName, databaseName, - apiVersion, dataConnectionName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } else { - dataConnectionName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.checkNameAvailability(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, dataConnectionName, accept, - context); - } - - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName) { - return checkNameAvailabilityWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, - dataConnectionName).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName, Context context) { - return checkNameAvailabilityWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, - dataConnectionName, context).block(); - } - - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName) { - return checkNameAvailabilityWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, - dataConnectionName, Context.NONE).getValue(); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> dataConnectionValidationWithResponseAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.dataConnectionValidation(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, workspaceName, kustoPoolName, databaseName, - apiVersion, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> dataConnectionValidationWithResponseAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.dataConnectionValidation(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataConnectionValidationListResultInner> - beginDataConnectionValidationAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionValidationInner parameters) { - Mono>> mono = dataConnectionValidationWithResponseAsync(resourceGroupName, - workspaceName, kustoPoolName, databaseName, parameters); - return this.client - .getLroResult(mono, - this.client.getHttpPipeline(), DataConnectionValidationListResultInner.class, - DataConnectionValidationListResultInner.class, this.client.getContext()); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataConnectionValidationListResultInner> - beginDataConnectionValidationAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionValidationInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = dataConnectionValidationWithResponseAsync(resourceGroupName, - workspaceName, kustoPoolName, databaseName, parameters, context); - return this.client - .getLroResult(mono, - this.client.getHttpPipeline(), DataConnectionValidationListResultInner.class, - DataConnectionValidationListResultInner.class, context); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataConnectionValidationListResultInner> - beginDataConnectionValidation(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionValidationInner parameters) { - return this - .beginDataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, - parameters) - .getSyncPoller(); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataConnectionValidationListResultInner> - beginDataConnectionValidation(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionValidationInner parameters, Context context) { - return this - .beginDataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, - parameters, context) - .getSyncPoller(); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono dataConnectionValidationAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters) { - return beginDataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, - parameters).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono dataConnectionValidationAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, - Context context) { - return beginDataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, - parameters, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionValidationListResultInner dataConnectionValidation(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters) { - return dataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) - .block(); - } - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionValidationListResultInner dataConnectionValidation(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, - Context context) { - return dataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, - context).block(); - } - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByDatabaseSinglePageAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByDatabase(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByDatabaseSinglePageAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByDatabase(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByDatabaseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName) { - return new PagedFlux<>( - () -> listByDatabaseSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName)); - } - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByDatabaseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, Context context) { - return new PagedFlux<>(() -> listByDatabaseSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, - databaseName, context)); - } - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByDatabase(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName) { - return new PagedIterable<>(listByDatabaseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName)); - } - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByDatabase(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, Context context) { - return new PagedIterable<>( - listByDatabaseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context)); - } - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, - kustoPoolName, databaseName, dataConnectionName, apiVersion, accept, context); - } - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName) { - return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - context).block(); - } - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner get(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName) { - return getWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - Context.NONE).getValue(); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, - parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, parameters, accept, context); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataConnectionInner> beginCreateOrUpdateAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, DataConnectionInner parameters) { - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, - kustoPoolName, databaseName, dataConnectionName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - DataConnectionInner.class, DataConnectionInner.class, this.client.getContext()); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataConnectionInner> beginCreateOrUpdateAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, DataConnectionInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, - kustoPoolName, databaseName, dataConnectionName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - DataConnectionInner.class, DataConnectionInner.class, context); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataConnectionInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, DataConnectionInner parameters) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters) - .getSyncPoller(); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataConnectionInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, DataConnectionInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters, context) - .getSyncPoller(); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, - dataConnectionName, parameters).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters, - Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, - dataConnectionName, parameters, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters).block(); - } - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters, context).block(); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, - parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, parameters, accept, context); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataConnectionInner> beginUpdateAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, - databaseName, dataConnectionName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - DataConnectionInner.class, DataConnectionInner.class, this.client.getContext()); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataConnectionInner> beginUpdateAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, - databaseName, dataConnectionName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - DataConnectionInner.class, DataConnectionInner.class, context); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataConnectionInner> beginUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters) { - return this - .beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters) - .getSyncPoller(); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataConnectionInner> beginUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, - DataConnectionInner parameters, Context context) { - return this - .beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters, context) - .getSyncPoller(); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters) { - return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { - return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner update(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters) { - return updateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters).block(); - } - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner update(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { - return updateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters, context).block(); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (dataConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dataConnectionName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, accept, context); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, - databaseName, dataConnectionName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, - databaseName, dataConnectionName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName) { - return this.beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) - .getSyncPoller(); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, Context context) { - return this - .beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - context) - .getSyncPoller(); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName) { - return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName) { - deleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).block(); - } - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, Context context) { - deleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context).block(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java deleted file mode 100644 index ce085cdf6df6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDataConnectionsClient; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DataConnection; -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationListResult; -import com.azure.resourcemanager.synapse.models.KustoPoolDataConnections; - -public final class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolDataConnectionsImpl.class); - - private final KustoPoolDataConnectionsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoPoolDataConnectionsImpl(KustoPoolDataConnectionsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response checkNameAvailabilityWithResponse(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName, Context context) { - Response inner = this.serviceClient() - .checkNameAvailabilityWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, - dataConnectionName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new CheckNameResultImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public CheckNameResult checkNameAvailability(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionCheckNameRequest dataConnectionName) { - CheckNameResultInner inner = this.serviceClient() - .checkNameAvailability(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); - if (inner != null) { - return new CheckNameResultImpl(inner, this.manager()); - } else { - return null; - } - } - - public DataConnectionValidationListResult dataConnectionValidation(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionValidationInner parameters) { - DataConnectionValidationListResultInner inner = this.serviceClient() - .dataConnectionValidation(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); - if (inner != null) { - return new DataConnectionValidationListResultImpl(inner, this.manager()); - } else { - return null; - } - } - - public DataConnectionValidationListResult dataConnectionValidation(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context) { - DataConnectionValidationListResultInner inner = this.serviceClient() - .dataConnectionValidation(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, - context); - if (inner != null) { - return new DataConnectionValidationListResultImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable listByDatabase(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName) { - PagedIterable inner - = this.serviceClient().listByDatabase(resourceGroupName, workspaceName, kustoPoolName, databaseName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new DataConnectionImpl(inner1, this.manager())); - } - - public PagedIterable listByDatabase(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, Context context) { - PagedIterable inner = this.serviceClient() - .listByDatabase(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new DataConnectionImpl(inner1, this.manager())); - } - - public Response getWithResponse(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, String dataConnectionName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new DataConnectionImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public DataConnection get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName) { - DataConnectionInner inner = this.serviceClient() - .get(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); - if (inner != null) { - return new DataConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - - public DataConnection createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters) { - DataConnectionInner inner = this.serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters); - if (inner != null) { - return new DataConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - - public DataConnection createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { - DataConnectionInner inner = this.serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, - parameters, context); - if (inner != null) { - return new DataConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - - public DataConnection update(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters) { - DataConnectionInner inner = this.serviceClient() - .update(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters); - if (inner != null) { - return new DataConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - - public DataConnection update(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { - DataConnectionInner inner = this.serviceClient() - .update(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, - context); - if (inner != null) { - return new DataConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName) { - this.serviceClient().delete(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); - } - - public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, Context context) { - this.serviceClient() - .delete(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context); - } - - private KustoPoolDataConnectionsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java deleted file mode 100644 index 4b4c63157c3d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java +++ /dev/null @@ -1,1222 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDatabasePrincipalAssignmentsClient; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in - * KustoPoolDatabasePrincipalAssignmentsClient. - */ -public final class KustoPoolDatabasePrincipalAssignmentsClientImpl - implements KustoPoolDatabasePrincipalAssignmentsClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoPoolDatabasePrincipalAssignmentsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoPoolDatabasePrincipalAssignmentsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoPoolDatabasePrincipalAssignmentsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(KustoPoolDatabasePrincipalAssignmentsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoPoolDatabasePrincipalAssignments to be - * used by the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoPoolDatabasePrincipalAssignmentsService { - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("principalAssignmentName") String principalAssignmentName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("principalAssignmentName") String principalAssignmentName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DatabasePrincipalAssignmentInner parameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("principalAssignmentName") String principalAssignmentName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, - String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } else { - principalAssignmentName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), workspaceName, - kustoPoolName, databaseName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, - principalAssignmentName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, - String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } else { - principalAssignmentName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.checkNameAvailability(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, principalAssignmentName, accept, context); - } - - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, - principalAssignmentName).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { - return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, - principalAssignmentName, context).block(); - } - - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, String databaseName, - String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, databaseName, resourceGroupName, - principalAssignmentName, Context.NONE).getValue(); - } - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String workspaceName, - String kustoPoolName, String databaseName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String workspaceName, - String kustoPoolName, String databaseName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName) { - return new PagedFlux<>( - () -> listSinglePageAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName)); - } - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, context)); - } - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName) { - return new PagedIterable<>(listAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName)); - } - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, context)); - } - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String workspaceName, - String kustoPoolName, String databaseName, String principalAssignmentName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, - principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String workspaceName, - String kustoPoolName, String databaseName, String principalAssignmentName, String resourceGroupName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, - principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); - } - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName) { - return getWithResponseAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { - return getWithResponseAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName, context).block(); - } - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatabasePrincipalAssignmentInner get(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName) { - return getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - Context.NONE).getValue(); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, - DatabasePrincipalAssignmentInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, - databaseName, principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, - parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, - principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, parameters, accept, - context); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabasePrincipalAssignmentInner> - beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters) { - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, - databaseName, principalAssignmentName, resourceGroupName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), DatabasePrincipalAssignmentInner.class, - DatabasePrincipalAssignmentInner.class, this.client.getContext()); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabasePrincipalAssignmentInner> - beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, - databaseName, principalAssignmentName, resourceGroupName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), DatabasePrincipalAssignmentInner.class, - DatabasePrincipalAssignmentInner.class, context); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabasePrincipalAssignmentInner> - beginCreateOrUpdate(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters) { - return this - .beginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName, parameters) - .getSyncPoller(); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabasePrincipalAssignmentInner> - beginCreateOrUpdate(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters, - Context context) { - return this - .beginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName, parameters, context) - .getSyncPoller(); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, - DatabasePrincipalAssignmentInner parameters) { - return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName, parameters).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, Context context) { - return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName, parameters, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatabasePrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, - DatabasePrincipalAssignmentInner parameters) { - return createOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName, parameters).block(); - } - - /** - * Creates a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto principalAssignments parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatabasePrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, Context context) { - return createOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName, parameters, context).block(); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, - databaseName, principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, - principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName) { - Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, databaseName, - principalAssignmentName, resourceGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, databaseName, - principalAssignmentName, resourceGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName) { - return this - .beginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName) - .getSyncPoller(); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { - return this - .beginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - context) - .getSyncPoller(); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName) { - return beginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName, Context context) { - return beginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName) { - deleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName).block(); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, Context context) { - deleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context) - .block(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java deleted file mode 100644 index ebacd3bdff62..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java +++ /dev/null @@ -1,243 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDatabasePrincipalAssignmentsClient; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -import com.azure.resourcemanager.synapse.models.KustoPoolDatabasePrincipalAssignments; - -public final class KustoPoolDatabasePrincipalAssignmentsImpl implements KustoPoolDatabasePrincipalAssignments { - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolDatabasePrincipalAssignmentsImpl.class); - - private final KustoPoolDatabasePrincipalAssignmentsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoPoolDatabasePrincipalAssignmentsImpl(KustoPoolDatabasePrincipalAssignmentsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { - Response inner = this.serviceClient() - .checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, databaseName, resourceGroupName, - principalAssignmentName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new CheckNameResultImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String databaseName, - String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - CheckNameResultInner inner = this.serviceClient() - .checkNameAvailability(workspaceName, kustoPoolName, databaseName, resourceGroupName, - principalAssignmentName); - if (inner != null) { - return new CheckNameResultImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable list(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName) { - PagedIterable inner - = this.serviceClient().list(workspaceName, kustoPoolName, databaseName, resourceGroupName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new DatabasePrincipalAssignmentImpl(inner1, this.manager())); - } - - public PagedIterable list(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().list(workspaceName, kustoPoolName, databaseName, resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new DatabasePrincipalAssignmentImpl(inner1, this.manager())); - } - - public Response getWithResponse(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new DatabasePrincipalAssignmentImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public DatabasePrincipalAssignment get(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName) { - DatabasePrincipalAssignmentInner inner = this.serviceClient() - .get(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName); - if (inner != null) { - return new DatabasePrincipalAssignmentImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName) { - this.serviceClient() - .delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName); - } - - public void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, Context context) { - this.serviceClient() - .delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); - } - - public DatabasePrincipalAssignment getById(String id) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); - if (databaseName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); - } - String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); - if (principalAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - return this - .getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); - if (databaseName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); - } - String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); - if (principalAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - return this.getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, - resourceGroupName, context); - } - - public void deleteById(String id) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); - if (databaseName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); - } - String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); - if (principalAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - this.delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, - Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); - if (databaseName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); - } - String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); - if (principalAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - this.delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); - } - - private KustoPoolDatabasePrincipalAssignmentsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - public DatabasePrincipalAssignmentImpl define(String name) { - return new DatabasePrincipalAssignmentImpl(name, this.manager()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java deleted file mode 100644 index bc79c14b2598..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java +++ /dev/null @@ -1,1210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDatabasesClient; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.DatabaseListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. - */ -public final class KustoPoolDatabasesClientImpl implements KustoPoolDatabasesClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoPoolDatabasesService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoPoolDatabasesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoPoolDatabasesClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(KustoPoolDatabasesService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoPoolDatabases to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoPoolDatabasesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByKustoPool(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DatabaseInner parameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DatabaseInner parameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByKustoPoolSinglePageAsync(String resourceGroupName, - String workspaceName, String kustoPoolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByKustoPool(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByKustoPoolSinglePageAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByKustoPool(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByKustoPoolAsync(String resourceGroupName, String workspaceName, - String kustoPoolName) { - return new PagedFlux<>(() -> listByKustoPoolSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName)); - } - - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByKustoPoolAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, Context context) { - return new PagedFlux<>( - () -> listByKustoPoolSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, context)); - } - - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, - String kustoPoolName) { - return new PagedIterable<>(listByKustoPoolAsync(resourceGroupName, workspaceName, kustoPoolName)); - } - - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, - String kustoPoolName, Context context) { - return new PagedIterable<>(listByKustoPoolAsync(resourceGroupName, workspaceName, kustoPoolName, context)); - } - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, - kustoPoolName, databaseName, apiVersion, accept, context); - } - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName) { - return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context).block(); - } - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner get(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName) { - return getWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, Context.NONE).getValue(); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, - kustoPoolName, databaseName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - DatabaseInner.class, DatabaseInner.class, this.client.getContext()); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, - kustoPoolName, databaseName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - DatabaseInner.class, DatabaseInner.class, context); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) - .getSyncPoller(); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, - context) - .getSyncPoller(); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DatabaseInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).block(); - } - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .block(); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DatabaseInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabaseInner> beginUpdateAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - DatabaseInner.class, DatabaseInner.class, this.client.getContext()); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabaseInner> beginUpdateAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, - databaseName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - DatabaseInner.class, DatabaseInner.class, context); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { - return this.beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) - .getSyncPoller(); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, - String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { - return this.beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .getSyncPoller(); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters) { - return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters, Context context) { - return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner update(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters) { - return updateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).block(); - } - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner update(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters, Context context) { - return updateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context).block(); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, kustoPoolName, databaseName, apiVersion, accept, context); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName) { - return this.beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).getSyncPoller(); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, Context context) { - return this.beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context) - .getSyncPoller(); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName) { - return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { - deleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).block(); - } - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - Context context) { - deleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context).block(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java deleted file mode 100644 index 9a7e37b2a143..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDatabasesClient; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.Database; -import com.azure.resourcemanager.synapse.models.KustoPoolDatabases; - -public final class KustoPoolDatabasesImpl implements KustoPoolDatabases { - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolDatabasesImpl.class); - - private final KustoPoolDatabasesClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoPoolDatabasesImpl(KustoPoolDatabasesClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, - String kustoPoolName) { - PagedIterable inner - = this.serviceClient().listByKustoPool(resourceGroupName, workspaceName, kustoPoolName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); - } - - public PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName, - Context context) { - PagedIterable inner - = this.serviceClient().listByKustoPool(resourceGroupName, workspaceName, kustoPoolName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); - } - - public Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new DatabaseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public Database get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { - DatabaseInner inner = this.serviceClient().get(resourceGroupName, workspaceName, kustoPoolName, databaseName); - if (inner != null) { - return new DatabaseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Database createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters) { - DatabaseInner inner = this.serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); - if (inner != null) { - return new DatabaseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Database createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DatabaseInner parameters, Context context) { - DatabaseInner inner = this.serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context); - if (inner != null) { - return new DatabaseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Database update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DatabaseInner parameters) { - DatabaseInner inner - = this.serviceClient().update(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); - if (inner != null) { - return new DatabaseImpl(inner, this.manager()); - } else { - return null; - } - } - - public Database update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DatabaseInner parameters, Context context) { - DatabaseInner inner = this.serviceClient() - .update(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context); - if (inner != null) { - return new DatabaseImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { - this.serviceClient().delete(resourceGroupName, workspaceName, kustoPoolName, databaseName); - } - - public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - Context context) { - this.serviceClient().delete(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); - } - - private KustoPoolDatabasesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolImpl.java deleted file mode 100644 index 3aeb566b2d55..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolImpl.java +++ /dev/null @@ -1,364 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.FollowerDatabaseDefinition; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.KustoPoolUpdate; -import com.azure.resourcemanager.synapse.models.LanguageExtension; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import com.azure.resourcemanager.synapse.models.State; -import java.util.Collections; -import java.util.Map; - -public final class KustoPoolImpl implements KustoPool, KustoPool.Definition, KustoPool.Update { - private KustoPoolInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public AzureSku sku() { - return this.innerModel().sku(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public State state() { - return this.innerModel().state(); - } - - public ResourceProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public String uri() { - return this.innerModel().uri(); - } - - public String dataIngestionUri() { - return this.innerModel().dataIngestionUri(); - } - - public String stateReason() { - return this.innerModel().stateReason(); - } - - public OptimizedAutoscale optimizedAutoscale() { - return this.innerModel().optimizedAutoscale(); - } - - public Boolean enableStreamingIngest() { - return this.innerModel().enableStreamingIngest(); - } - - public Boolean enablePurge() { - return this.innerModel().enablePurge(); - } - - public LanguageExtensionsList languageExtensions() { - return this.innerModel().languageExtensions(); - } - - public String workspaceUid() { - return this.innerModel().workspaceUid(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public KustoPoolInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - private String workspaceName; - - private String resourceGroupName; - - private String kustoPoolName; - - private String createIfMatch; - - private String createIfNoneMatch; - - private String updateIfMatch; - - private KustoPoolUpdate updateParameters; - - public KustoPoolImpl withExistingWorkspace(String workspaceName, String resourceGroupName) { - this.workspaceName = workspaceName; - this.resourceGroupName = resourceGroupName; - return this; - } - - public KustoPool create() { - this.innerObject = serviceManager.serviceClient() - .getKustoPools() - .createOrUpdate(workspaceName, resourceGroupName, kustoPoolName, this.innerModel(), createIfMatch, - createIfNoneMatch, Context.NONE); - return this; - } - - public KustoPool create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPools() - .createOrUpdate(workspaceName, resourceGroupName, kustoPoolName, this.innerModel(), createIfMatch, - createIfNoneMatch, context); - return this; - } - - KustoPoolImpl(String name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = new KustoPoolInner(); - this.serviceManager = serviceManager; - this.kustoPoolName = name; - this.createIfMatch = null; - this.createIfNoneMatch = null; - } - - public KustoPoolImpl update() { - this.updateIfMatch = null; - this.updateParameters = new KustoPoolUpdate(); - return this; - } - - public KustoPool apply() { - this.innerObject = serviceManager.serviceClient() - .getKustoPools() - .update(workspaceName, resourceGroupName, kustoPoolName, updateParameters, updateIfMatch, Context.NONE); - return this; - } - - public KustoPool apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPools() - .update(workspaceName, resourceGroupName, kustoPoolName, updateParameters, updateIfMatch, context); - return this; - } - - KustoPoolImpl(KustoPoolInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.kustoPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kustoPools"); - } - - public KustoPool refresh() { - this.innerObject = serviceManager.serviceClient() - .getKustoPools() - .getWithResponse(workspaceName, kustoPoolName, resourceGroupName, Context.NONE) - .getValue(); - return this; - } - - public KustoPool refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getKustoPools() - .getWithResponse(workspaceName, kustoPoolName, resourceGroupName, context) - .getValue(); - return this; - } - - public void stop() { - serviceManager.kustoPools().stop(workspaceName, kustoPoolName, resourceGroupName); - } - - public void stop(Context context) { - serviceManager.kustoPools().stop(workspaceName, kustoPoolName, resourceGroupName, context); - } - - public void start() { - serviceManager.kustoPools().start(workspaceName, kustoPoolName, resourceGroupName); - } - - public void start(Context context) { - serviceManager.kustoPools().start(workspaceName, kustoPoolName, resourceGroupName, context); - } - - public PagedIterable listLanguageExtensions() { - return serviceManager.kustoPools().listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName); - } - - public PagedIterable listLanguageExtensions(Context context) { - return serviceManager.kustoPools() - .listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, context); - } - - public void addLanguageExtensions(LanguageExtensionsList languageExtensionsToAdd) { - serviceManager.kustoPools() - .addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd); - } - - public void addLanguageExtensions(LanguageExtensionsList languageExtensionsToAdd, Context context) { - serviceManager.kustoPools() - .addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context); - } - - public void removeLanguageExtensions(LanguageExtensionsList languageExtensionsToRemove) { - serviceManager.kustoPools() - .removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove); - } - - public void removeLanguageExtensions(LanguageExtensionsList languageExtensionsToRemove, Context context) { - serviceManager.kustoPools() - .removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, - context); - } - - public PagedIterable listFollowerDatabases() { - return serviceManager.kustoPools().listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName); - } - - public PagedIterable listFollowerDatabases(Context context) { - return serviceManager.kustoPools() - .listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, context); - } - - public void detachFollowerDatabases(FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - serviceManager.kustoPools() - .detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove); - } - - public void detachFollowerDatabases(FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { - serviceManager.kustoPools() - .detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, - context); - } - - public KustoPoolImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public KustoPoolImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public KustoPoolImpl withSku(AzureSku sku) { - if (isInCreateMode()) { - this.innerModel().withSku(sku); - return this; - } else { - this.updateParameters.withSku(sku); - return this; - } - } - - public KustoPoolImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateParameters.withTags(tags); - return this; - } - } - - public KustoPoolImpl withOptimizedAutoscale(OptimizedAutoscale optimizedAutoscale) { - if (isInCreateMode()) { - this.innerModel().withOptimizedAutoscale(optimizedAutoscale); - return this; - } else { - this.updateParameters.withOptimizedAutoscale(optimizedAutoscale); - return this; - } - } - - public KustoPoolImpl withEnableStreamingIngest(Boolean enableStreamingIngest) { - if (isInCreateMode()) { - this.innerModel().withEnableStreamingIngest(enableStreamingIngest); - return this; - } else { - this.updateParameters.withEnableStreamingIngest(enableStreamingIngest); - return this; - } - } - - public KustoPoolImpl withEnablePurge(Boolean enablePurge) { - if (isInCreateMode()) { - this.innerModel().withEnablePurge(enablePurge); - return this; - } else { - this.updateParameters.withEnablePurge(enablePurge); - return this; - } - } - - public KustoPoolImpl withWorkspaceUid(String workspaceUid) { - this.innerModel().withWorkspaceUid(workspaceUid); - return this; - } - - public KustoPoolImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - public KustoPoolImpl withIfNoneMatch(String ifNoneMatch) { - this.createIfNoneMatch = ifNoneMatch; - return this; - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolListResultImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolListResultImpl.java deleted file mode 100644 index 7baadf50350b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolListResultImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.KustoPoolListResult; -import java.util.Collections; -import java.util.List; -import java.util.stream.Collectors; - -public final class KustoPoolListResultImpl implements KustoPoolListResult { - private KustoPoolListResultInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - KustoPoolListResultImpl(KustoPoolListResultInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList( - inner.stream().map(inner1 -> new KustoPoolImpl(inner1, this.manager())).collect(Collectors.toList())); - } else { - return Collections.emptyList(); - } - } - - public KustoPoolListResultInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java deleted file mode 100644 index 94dd42ff01d0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java +++ /dev/null @@ -1,1132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.KustoPoolPrincipalAssignmentsClient; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. - */ -public final class KustoPoolPrincipalAssignmentsClientImpl implements KustoPoolPrincipalAssignmentsClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoPoolPrincipalAssignmentsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoPoolPrincipalAssignmentsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoPoolPrincipalAssignmentsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(KustoPoolPrincipalAssignmentsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoPoolPrincipalAssignments to be used by - * the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoPoolPrincipalAssignmentsService { - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkPrincipalAssignmentNameAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("principalAssignmentName") String principalAssignmentName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("principalAssignmentName") String principalAssignmentName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ClusterPrincipalAssignmentInner parameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("principalAssignmentName") String principalAssignmentName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } else { - principalAssignmentName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), workspaceName, - kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, principalAssignmentName, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } else { - principalAssignmentName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.checkNameAvailability(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, principalAssignmentName, accept, context); - } - - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, - principalAssignmentName).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { - return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, - principalAssignmentName, context).block(); - } - - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, - String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, resourceGroupName, - principalAssignmentName, Context.NONE).getValue(); - } - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String workspaceName, - String kustoPoolName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), - resourceGroupName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return new PagedIterable<>(listAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return new PagedIterable<>(listAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String workspaceName, - String kustoPoolName, String principalAssignmentName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, principalAssignmentName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String workspaceName, - String kustoPoolName, String principalAssignmentName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, principalAssignmentName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); - } - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName) { - return getWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, Context context) { - return getWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) - .block(); - } - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterPrincipalAssignmentInner get(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName) { - return getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE) - .getValue(); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, - principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, parameters, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, principalAssignmentName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, parameters, accept, context); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ClusterPrincipalAssignmentInner> - beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, - principalAssignmentName, resourceGroupName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ClusterPrincipalAssignmentInner.class, ClusterPrincipalAssignmentInner.class, - this.client.getContext()); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ClusterPrincipalAssignmentInner> - beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName, ClusterPrincipalAssignmentInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, - principalAssignmentName, resourceGroupName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ClusterPrincipalAssignmentInner.class, ClusterPrincipalAssignmentInner.class, - context); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, - ClusterPrincipalAssignmentInner parameters) { - return this - .beginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, - parameters) - .getSyncPoller(); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, - parameters, context) - .getSyncPoller(); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { - return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, - parameters).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters, - Context context) { - return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, - parameters, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterPrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { - return createOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters) - .block(); - } - - /** - * Create a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterPrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters, - Context context) { - return createOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, - context).block(); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, - principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (principalAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, principalAssignmentName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName) { - Mono>> mono - = deleteWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, - principalAssignmentName, resourceGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName) { - return this.beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName) - .getSyncPoller(); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, Context context) { - return this.beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) - .getSyncPoller(); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName) { - return beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName, Context context) { - return beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName) { - deleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName).block(); - } - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName, Context context) { - deleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context).block(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java deleted file mode 100644 index 1759d3da65d9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoPoolPrincipalAssignmentsClient; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -import com.azure.resourcemanager.synapse.models.KustoPoolPrincipalAssignments; - -public final class KustoPoolPrincipalAssignmentsImpl implements KustoPoolPrincipalAssignments { - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolPrincipalAssignmentsImpl.class); - - private final KustoPoolPrincipalAssignmentsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoPoolPrincipalAssignmentsImpl(KustoPoolPrincipalAssignmentsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { - Response inner = this.serviceClient() - .checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, - context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new CheckNameResultImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { - CheckNameResultInner inner = this.serviceClient() - .checkNameAvailability(workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName); - if (inner != null) { - return new CheckNameResultImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable list(String workspaceName, String kustoPoolName, - String resourceGroupName) { - PagedIterable inner - = this.serviceClient().list(workspaceName, kustoPoolName, resourceGroupName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new ClusterPrincipalAssignmentImpl(inner1, this.manager())); - } - - public PagedIterable list(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().list(workspaceName, kustoPoolName, resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new ClusterPrincipalAssignmentImpl(inner1, this.manager())); - } - - public Response getWithResponse(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ClusterPrincipalAssignmentImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public ClusterPrincipalAssignment get(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName) { - ClusterPrincipalAssignmentInner inner - = this.serviceClient().get(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); - if (inner != null) { - return new ClusterPrincipalAssignmentImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName) { - this.serviceClient().delete(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); - } - - public void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName, Context context) { - this.serviceClient().delete(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); - } - - public ClusterPrincipalAssignment getById(String id) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); - if (principalAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - return this - .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); - if (principalAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - return this.getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); - } - - public void deleteById(String id) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); - if (principalAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - this.delete(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); - if (principalAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - this.delete(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); - } - - private KustoPoolPrincipalAssignmentsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - public ClusterPrincipalAssignmentImpl define(String name) { - return new ClusterPrincipalAssignmentImpl(name, this.manager()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java deleted file mode 100644 index 58c08abd6607..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.management.SystemData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; -import com.azure.resourcemanager.synapse.models.KustoPoolPrivateLinkResources; -import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -import java.util.Collections; -import java.util.List; - -public final class KustoPoolPrivateLinkResourcesImpl implements KustoPoolPrivateLinkResources { - private KustoPoolPrivateLinkResourcesInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - KustoPoolPrivateLinkResourcesImpl(KustoPoolPrivateLinkResourcesInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String groupId() { - return this.innerModel().groupId(); - } - - public List requiredMembers() { - List inner = this.innerModel().requiredMembers(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public List requiredZoneNames() { - List inner = this.innerModel().requiredZoneNames(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public ResourceProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public KustoPoolPrivateLinkResourcesInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java deleted file mode 100644 index 6943fd3a8097..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java +++ /dev/null @@ -1,236 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.synapse.fluent.KustoPoolPrivateLinkResourcesOperationsClient; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; -import com.azure.resourcemanager.synapse.models.PrivateLinkResources; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in - * KustoPoolPrivateLinkResourcesOperationsClient. - */ -public final class KustoPoolPrivateLinkResourcesOperationsClientImpl - implements KustoPoolPrivateLinkResourcesOperationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoPoolPrivateLinkResourcesOperationsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoPoolPrivateLinkResourcesOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoPoolPrivateLinkResourcesOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(KustoPoolPrivateLinkResourcesOperationsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoPoolPrivateLinkResourcesOperations to be - * used by the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoPoolPrivateLinkResourcesOperationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/privateLinkResources") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String workspaceName, String kustoPoolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, kustoPoolName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String workspaceName, String kustoPoolName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, - kustoPoolName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String workspaceName, - String kustoPoolName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName)); - } - - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String workspaceName, - String kustoPoolName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, context)); - } - - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String workspaceName, - String kustoPoolName) { - return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, kustoPoolName)); - } - - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String workspaceName, - String kustoPoolName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, kustoPoolName, context)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java deleted file mode 100644 index e42673c39560..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoPoolPrivateLinkResourcesOperationsClient; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; -import com.azure.resourcemanager.synapse.models.KustoPoolPrivateLinkResources; -import com.azure.resourcemanager.synapse.models.KustoPoolPrivateLinkResourcesOperations; - -public final class KustoPoolPrivateLinkResourcesOperationsImpl implements KustoPoolPrivateLinkResourcesOperations { - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolPrivateLinkResourcesOperationsImpl.class); - - private final KustoPoolPrivateLinkResourcesOperationsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoPoolPrivateLinkResourcesOperationsImpl(KustoPoolPrivateLinkResourcesOperationsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list(String resourceGroupName, String workspaceName, - String kustoPoolName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, workspaceName, kustoPoolName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new KustoPoolPrivateLinkResourcesImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String workspaceName, - String kustoPoolName, Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, workspaceName, kustoPoolName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new KustoPoolPrivateLinkResourcesImpl(inner1, this.manager())); - } - - private KustoPoolPrivateLinkResourcesOperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java deleted file mode 100644 index 99894adcf10c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java +++ /dev/null @@ -1,3316 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.KustoPoolsClient; -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; -import com.azure.resourcemanager.synapse.models.FollowerDatabaseListResult; -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -import com.azure.resourcemanager.synapse.models.KustoPoolUpdate; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import com.azure.resourcemanager.synapse.models.ListResourceSkusResult; -import com.azure.resourcemanager.synapse.models.SkuDescriptionList; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in KustoPoolsClient. - */ -public final class KustoPoolsClientImpl implements KustoPoolsClient { - /** - * The proxy service used to perform REST calls. - */ - private final KustoPoolsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of KustoPoolsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KustoPoolsClientImpl(SynapseManagementClientImpl client) { - this.service - = RestProxy.create(KustoPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientKustoPools to be used by the proxy service to - * perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface KustoPoolsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/skus") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/kustoPoolCheckNameAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") KustoPoolCheckNameRequest kustoPoolName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("kustoPoolName") String kustoPoolName, @HeaderParam("If-Match") String ifMatch, - @HeaderParam("If-None-Match") String ifNoneMatch, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") KustoPoolInner parameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("kustoPoolName") String kustoPoolName, @HeaderParam("If-Match") String ifMatch, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") KustoPoolUpdate parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/stop") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/start") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> start(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/skus") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSkusByResource(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listLanguageExtensions") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listLanguageExtensions(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/addLanguageExtensions") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> addLanguageExtensions(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LanguageExtensionsList languageExtensionsToAdd, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/removeLanguageExtensions") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> removeLanguageExtensions(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LanguageExtensionsList languageExtensionsToRemove, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listFollowerDatabases") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listFollowerDatabases(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/detachFollowerDatabases") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> detachFollowerDatabases(@HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FollowerDatabaseDefinitionInner followerDatabaseToRemove, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync()); - } - - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context)); - } - - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String location, - KustoPoolCheckNameRequest kustoPoolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } else { - kustoPoolName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), - this.client.getSubscriptionId(), location, apiVersion, kustoPoolName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync(String location, - KustoPoolCheckNameRequest kustoPoolName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } else { - kustoPoolName.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.checkNameAvailability(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - apiVersion, kustoPoolName, accept, context); - } - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync(String location, - KustoPoolCheckNameRequest kustoPoolName) { - return checkNameAvailabilityWithResponseAsync(location, kustoPoolName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse(String location, - KustoPoolCheckNameRequest kustoPoolName, Context context) { - return checkNameAvailabilityWithResponseAsync(location, kustoPoolName, context).block(); - } - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName) { - return checkNameAvailabilityWithResponse(location, kustoPoolName, Context.NONE).getValue(); - } - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceWithResponseAsync(String resourceGroupName, - String workspaceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, resourceGroupName, - this.client.getSubscriptionId(), workspaceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceWithResponseAsync(String resourceGroupName, - String workspaceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByWorkspace(this.client.getEndpoint(), apiVersion, resourceGroupName, - this.client.getSubscriptionId(), workspaceName, accept, context); - } - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return listByWorkspaceWithResponseAsync(resourceGroupName, workspaceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response listByWorkspaceWithResponse(String resourceGroupName, - String workspaceName, Context context) { - return listByWorkspaceWithResponseAsync(resourceGroupName, workspaceName, context).block(); - } - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolListResultInner listByWorkspace(String resourceGroupName, String workspaceName) { - return listByWorkspaceWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); - } - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String workspaceName, String kustoPoolName, - String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), - resourceGroupName, apiVersion, accept, context); - } - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String workspaceName, String kustoPoolName, String resourceGroupName) { - return getWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return getWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context).block(); - } - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner get(String workspaceName, String kustoPoolName, String resourceGroupName) { - return getWithResponse(workspaceName, kustoPoolName, resourceGroupName, Context.NONE).getValue(); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), workspaceName, resourceGroupName, - kustoPoolName, ifMatch, ifNoneMatch, this.client.getSubscriptionId(), apiVersion, parameters, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), workspaceName, resourceGroupName, kustoPoolName, - ifMatch, ifNoneMatch, this.client.getSubscriptionId(), apiVersion, parameters, accept, context); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch) { - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, resourceGroupName, - kustoPoolName, parameters, ifMatch, ifNoneMatch); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - KustoPoolInner.class, KustoPoolInner.class, this.client.getContext()); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { - final String ifMatch = null; - final String ifNoneMatch = null; - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, resourceGroupName, - kustoPoolName, parameters, ifMatch, ifNoneMatch); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - KustoPoolInner.class, KustoPoolInner.class, this.client.getContext()); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, resourceGroupName, - kustoPoolName, parameters, ifMatch, ifNoneMatch, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - KustoPoolInner.class, KustoPoolInner.class, context); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KustoPoolInner> beginCreateOrUpdate(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { - final String ifMatch = null; - final String ifNoneMatch = null; - return this - .beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch) - .getSyncPoller(); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KustoPoolInner> beginCreateOrUpdate(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, - Context context) { - return this - .beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, - context) - .getSyncPoller(); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String resourceGroupName, - String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch) { - return beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, - ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String resourceGroupName, - String kustoPoolName, KustoPoolInner parameters) { - final String ifMatch = null; - final String ifNoneMatch = null; - return beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, - ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String workspaceName, String resourceGroupName, - String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { - return beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, - ifNoneMatch, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner createOrUpdate(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolInner parameters) { - final String ifMatch = null; - final String ifNoneMatch = null; - return createOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch) - .block(); - } - - /** - * Create or update a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner createOrUpdate(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { - return createOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, - context).block(); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String workspaceName, String resourceGroupName, - String kustoPoolName, KustoPoolUpdate parameters, String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), workspaceName, resourceGroupName, - kustoPoolName, ifMatch, this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String workspaceName, String resourceGroupName, - String kustoPoolName, KustoPoolUpdate parameters, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), workspaceName, resourceGroupName, kustoPoolName, ifMatch, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginUpdateAsync(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters, String ifMatch) { - Mono>> mono - = updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - KustoPoolInner.class, KustoPoolInner.class, this.client.getContext()); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginUpdateAsync(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { - final String ifMatch = null; - Mono>> mono - = updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - KustoPoolInner.class, KustoPoolInner.class, this.client.getContext()); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginUpdateAsync(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters, String ifMatch, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - KustoPoolInner.class, KustoPoolInner.class, context); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KustoPoolInner> beginUpdate(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { - final String ifMatch = null; - return this.beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch) - .getSyncPoller(); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KustoPoolInner> beginUpdate(String workspaceName, - String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters, String ifMatch, Context context) { - return this.beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context) - .getSyncPoller(); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolUpdate parameters, String ifMatch) { - return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolUpdate parameters) { - final String ifMatch = null; - return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolUpdate parameters, String ifMatch, Context context) { - return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner update(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolUpdate parameters) { - final String ifMatch = null; - return updateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).block(); - } - - /** - * Update a Kusto Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param parameters The Kusto pool parameters supplied to the Update operation. - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner update(String workspaceName, String resourceGroupName, String kustoPoolName, - KustoPoolUpdate parameters, String ifMatch, Context context) { - return updateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context).block(); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String workspaceName, String resourceGroupName, - String kustoPoolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), workspaceName, resourceGroupName, - kustoPoolName, this.client.getSubscriptionId(), apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String workspaceName, String resourceGroupName, - String kustoPoolName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), workspaceName, resourceGroupName, kustoPoolName, - this.client.getSubscriptionId(), apiVersion, accept, context); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String workspaceName, String resourceGroupName, - String kustoPoolName) { - Mono>> mono - = deleteWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String workspaceName, String resourceGroupName, - String kustoPoolName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String workspaceName, String resourceGroupName, - String kustoPoolName) { - return this.beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName).getSyncPoller(); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String workspaceName, String resourceGroupName, - String kustoPoolName, Context context) { - return this.beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName, context).getSyncPoller(); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String workspaceName, String resourceGroupName, String kustoPoolName) { - return beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String workspaceName, String resourceGroupName, String kustoPoolName, - Context context) { - return beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String workspaceName, String resourceGroupName, String kustoPoolName) { - deleteAsync(workspaceName, resourceGroupName, kustoPoolName).block(); - } - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String workspaceName, String resourceGroupName, String kustoPoolName, Context context) { - deleteAsync(workspaceName, resourceGroupName, kustoPoolName, context).block(); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync(String workspaceName, String kustoPoolName, - String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.stop(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.stop(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), - resourceGroupName, apiVersion, accept, context); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync(String workspaceName, String kustoPoolName, - String resourceGroupName) { - Mono>> mono = stopWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = stopWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return this.beginStopAsync(workspaceName, kustoPoolName, resourceGroupName).getSyncPoller(); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return this.beginStopAsync(workspaceName, kustoPoolName, resourceGroupName, context).getSyncPoller(); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopAsync(String workspaceName, String kustoPoolName, String resourceGroupName) { - return beginStopAsync(workspaceName, kustoPoolName, resourceGroupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopAsync(String workspaceName, String kustoPoolName, String resourceGroupName, - Context context) { - return beginStopAsync(workspaceName, kustoPoolName, resourceGroupName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String workspaceName, String kustoPoolName, String resourceGroupName) { - stopAsync(workspaceName, kustoPoolName, resourceGroupName).block(); - } - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - stopAsync(workspaceName, kustoPoolName, resourceGroupName, context).block(); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync(String workspaceName, String kustoPoolName, - String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.start(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.start(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), - resourceGroupName, apiVersion, accept, context); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStartAsync(String workspaceName, String kustoPoolName, - String resourceGroupName) { - Mono>> mono = startWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStartAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = startWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return this.beginStartAsync(workspaceName, kustoPoolName, resourceGroupName).getSyncPoller(); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return this.beginStartAsync(workspaceName, kustoPoolName, resourceGroupName, context).getSyncPoller(); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync(String workspaceName, String kustoPoolName, String resourceGroupName) { - return beginStartAsync(workspaceName, kustoPoolName, resourceGroupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync(String workspaceName, String kustoPoolName, String resourceGroupName, - Context context) { - return beginStartAsync(workspaceName, kustoPoolName, resourceGroupName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void start(String workspaceName, String kustoPoolName, String resourceGroupName) { - startAsync(workspaceName, kustoPoolName, resourceGroupName).block(); - } - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void start(String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - startAsync(workspaceName, kustoPoolName, resourceGroupName, context).block(); - } - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSkusByResourceSinglePageAsync(String workspaceName, - String kustoPoolName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listSkusByResource(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSkusByResourceSinglePageAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listSkusByResource(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listSkusByResourceAsync(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return new PagedFlux<>( - () -> listSkusByResourceSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listSkusByResourceAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listSkusByResourceSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return new PagedIterable<>(listSkusByResourceAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return new PagedIterable<>(listSkusByResourceAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listLanguageExtensionsSinglePageAsync(String workspaceName, - String kustoPoolName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listLanguageExtensions(this.client.getEndpoint(), workspaceName, - kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listLanguageExtensionsSinglePageAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listLanguageExtensions(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listLanguageExtensionsAsync(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return new PagedFlux<>( - () -> listLanguageExtensionsSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listLanguageExtensionsAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listLanguageExtensionsSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName) { - return new PagedIterable<>(listLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - return new PagedIterable<>( - listLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> addLanguageExtensionsWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (languageExtensionsToAdd == null) { - return Mono.error( - new IllegalArgumentException("Parameter languageExtensionsToAdd is required and cannot be null.")); - } else { - languageExtensionsToAdd.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.addLanguageExtensions(this.client.getEndpoint(), workspaceName, - kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, languageExtensionsToAdd, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> addLanguageExtensionsWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (languageExtensionsToAdd == null) { - return Mono.error( - new IllegalArgumentException("Parameter languageExtensionsToAdd is required and cannot be null.")); - } else { - languageExtensionsToAdd.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.addLanguageExtensions(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, languageExtensionsToAdd, accept, context); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginAddLanguageExtensionsAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { - Mono>> mono = addLanguageExtensionsWithResponseAsync(workspaceName, kustoPoolName, - resourceGroupName, languageExtensionsToAdd); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginAddLanguageExtensionsAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = addLanguageExtensionsWithResponseAsync(workspaceName, kustoPoolName, - resourceGroupName, languageExtensionsToAdd, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginAddLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { - return this - .beginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd) - .getSyncPoller(); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginAddLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Context context) { - return this - .beginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, - context) - .getSyncPoller(); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addLanguageExtensionsAsync(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd) { - return beginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addLanguageExtensionsAsync(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, Context context) { - return beginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd) { - addLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd).block(); - } - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, Context context) { - addLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context) - .block(); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> removeLanguageExtensionsWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (languageExtensionsToRemove == null) { - return Mono.error( - new IllegalArgumentException("Parameter languageExtensionsToRemove is required and cannot be null.")); - } else { - languageExtensionsToRemove.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.removeLanguageExtensions(this.client.getEndpoint(), workspaceName, - kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, - languageExtensionsToRemove, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> removeLanguageExtensionsWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (languageExtensionsToRemove == null) { - return Mono.error( - new IllegalArgumentException("Parameter languageExtensionsToRemove is required and cannot be null.")); - } else { - languageExtensionsToRemove.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.removeLanguageExtensions(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, languageExtensionsToRemove, accept, - context); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRemoveLanguageExtensionsAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { - Mono>> mono = removeLanguageExtensionsWithResponseAsync(workspaceName, kustoPoolName, - resourceGroupName, languageExtensionsToRemove); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRemoveLanguageExtensionsAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = removeLanguageExtensionsWithResponseAsync(workspaceName, kustoPoolName, - resourceGroupName, languageExtensionsToRemove, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRemoveLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { - return this - .beginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, - languageExtensionsToRemove) - .getSyncPoller(); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRemoveLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Context context) { - return this - .beginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, - languageExtensionsToRemove, context) - .getSyncPoller(); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono removeLanguageExtensionsAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { - return beginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, - languageExtensionsToRemove).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono removeLanguageExtensionsAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Context context) { - return beginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, - languageExtensionsToRemove, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove) { - removeLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove) - .block(); - } - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, Context context) { - removeLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, - context).block(); - } - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listFollowerDatabasesSinglePageAsync(String workspaceName, String kustoPoolName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listFollowerDatabases(this.client.getEndpoint(), workspaceName, - kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listFollowerDatabasesSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listFollowerDatabases(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listFollowerDatabasesAsync(String workspaceName, - String kustoPoolName, String resourceGroupName) { - return new PagedFlux<>( - () -> listFollowerDatabasesSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listFollowerDatabasesAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listFollowerDatabasesSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listFollowerDatabases(String workspaceName, - String kustoPoolName, String resourceGroupName) { - return new PagedIterable<>(listFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName)); - } - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listFollowerDatabases(String workspaceName, - String kustoPoolName, String resourceGroupName, Context context) { - return new PagedIterable<>( - listFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, context)); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> detachFollowerDatabasesWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (followerDatabaseToRemove == null) { - return Mono.error( - new IllegalArgumentException("Parameter followerDatabaseToRemove is required and cannot be null.")); - } else { - followerDatabaseToRemove.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.detachFollowerDatabases(this.client.getEndpoint(), workspaceName, - kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, followerDatabaseToRemove, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> detachFollowerDatabasesWithResponseAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (kustoPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (followerDatabaseToRemove == null) { - return Mono.error( - new IllegalArgumentException("Parameter followerDatabaseToRemove is required and cannot be null.")); - } else { - followerDatabaseToRemove.validate(); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.detachFollowerDatabases(this.client.getEndpoint(), workspaceName, kustoPoolName, - this.client.getSubscriptionId(), resourceGroupName, apiVersion, followerDatabaseToRemove, accept, context); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDetachFollowerDatabasesAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - Mono>> mono = detachFollowerDatabasesWithResponseAsync(workspaceName, kustoPoolName, - resourceGroupName, followerDatabaseToRemove); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDetachFollowerDatabasesAsync(String workspaceName, - String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = detachFollowerDatabasesWithResponseAsync(workspaceName, kustoPoolName, - resourceGroupName, followerDatabaseToRemove, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDetachFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - return this - .beginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, - followerDatabaseToRemove) - .getSyncPoller(); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDetachFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { - return this - .beginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, - followerDatabaseToRemove, context) - .getSyncPoller(); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono detachFollowerDatabasesAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - return beginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, - followerDatabaseToRemove).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono detachFollowerDatabasesAsync(String workspaceName, String kustoPoolName, - String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { - return beginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, - followerDatabaseToRemove, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - detachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove).block(); - } - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { - detachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, context) - .block(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java deleted file mode 100644 index 6b98bd154012..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java +++ /dev/null @@ -1,310 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.KustoPoolsClient; -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; -import com.azure.resourcemanager.synapse.models.AzureResourceSku; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.FollowerDatabaseDefinition; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -import com.azure.resourcemanager.synapse.models.KustoPoolListResult; -import com.azure.resourcemanager.synapse.models.KustoPools; -import com.azure.resourcemanager.synapse.models.LanguageExtension; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import com.azure.resourcemanager.synapse.models.SkuDescription; - -public final class KustoPoolsImpl implements KustoPools { - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolsImpl.class); - - private final KustoPoolsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public KustoPoolsImpl(KustoPoolsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SkuDescriptionImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SkuDescriptionImpl(inner1, this.manager())); - } - - public Response checkNameAvailabilityWithResponse(String location, - KustoPoolCheckNameRequest kustoPoolName, Context context) { - Response inner - = this.serviceClient().checkNameAvailabilityWithResponse(location, kustoPoolName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new CheckNameResultImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public CheckNameResult checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName) { - CheckNameResultInner inner = this.serviceClient().checkNameAvailability(location, kustoPoolName); - if (inner != null) { - return new CheckNameResultImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response listByWorkspaceWithResponse(String resourceGroupName, String workspaceName, - Context context) { - Response inner - = this.serviceClient().listByWorkspaceWithResponse(resourceGroupName, workspaceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new KustoPoolListResultImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public KustoPoolListResult listByWorkspace(String resourceGroupName, String workspaceName) { - KustoPoolListResultInner inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - if (inner != null) { - return new KustoPoolListResultImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse(String workspaceName, String kustoPoolName, String resourceGroupName, - Context context) { - Response inner - = this.serviceClient().getWithResponse(workspaceName, kustoPoolName, resourceGroupName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new KustoPoolImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public KustoPool get(String workspaceName, String kustoPoolName, String resourceGroupName) { - KustoPoolInner inner = this.serviceClient().get(workspaceName, kustoPoolName, resourceGroupName); - if (inner != null) { - return new KustoPoolImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String workspaceName, String resourceGroupName, String kustoPoolName) { - this.serviceClient().delete(workspaceName, resourceGroupName, kustoPoolName); - } - - public void delete(String workspaceName, String resourceGroupName, String kustoPoolName, Context context) { - this.serviceClient().delete(workspaceName, resourceGroupName, kustoPoolName, context); - } - - public void stop(String workspaceName, String kustoPoolName, String resourceGroupName) { - this.serviceClient().stop(workspaceName, kustoPoolName, resourceGroupName); - } - - public void stop(String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - this.serviceClient().stop(workspaceName, kustoPoolName, resourceGroupName, context); - } - - public void start(String workspaceName, String kustoPoolName, String resourceGroupName) { - this.serviceClient().start(workspaceName, kustoPoolName, resourceGroupName); - } - - public void start(String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - this.serviceClient().start(workspaceName, kustoPoolName, resourceGroupName, context); - } - - public PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, - String resourceGroupName) { - PagedIterable inner - = this.serviceClient().listSkusByResource(workspaceName, kustoPoolName, resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureResourceSkuImpl(inner1, this.manager())); - } - - public PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listSkusByResource(workspaceName, kustoPoolName, resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureResourceSkuImpl(inner1, this.manager())); - } - - public PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName) { - PagedIterable inner - = this.serviceClient().listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new LanguageExtensionImpl(inner1, this.manager())); - } - - public PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new LanguageExtensionImpl(inner1, this.manager())); - } - - public void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd) { - this.serviceClient() - .addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd); - } - - public void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, Context context) { - this.serviceClient() - .addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context); - } - - public void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove) { - this.serviceClient() - .removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove); - } - - public void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, Context context) { - this.serviceClient() - .removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, - context); - } - - public PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName) { - PagedIterable inner - = this.serviceClient().listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new FollowerDatabaseDefinitionImpl(inner1, this.manager())); - } - - public PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new FollowerDatabaseDefinitionImpl(inner1, this.manager())); - } - - public void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - this.serviceClient() - .detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove); - } - - public void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { - this.serviceClient() - .detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, - context); - } - - public KustoPool getById(String id) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - return this.getWithResponse(workspaceName, kustoPoolName, resourceGroupName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - return this.getWithResponse(workspaceName, kustoPoolName, resourceGroupName, context); - } - - public void deleteById(String id) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - this.delete(workspaceName, resourceGroupName, kustoPoolName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); - if (workspaceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); - } - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); - if (kustoPoolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); - } - this.delete(workspaceName, resourceGroupName, kustoPoolName, context); - } - - private KustoPoolsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } - - public KustoPoolImpl define(String name) { - return new KustoPoolImpl(name, this.manager()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LanguageExtensionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LanguageExtensionImpl.java deleted file mode 100644 index f024023bf38b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LanguageExtensionImpl.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtension; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; - -public final class LanguageExtensionImpl implements LanguageExtension { - private LanguageExtensionInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - LanguageExtensionImpl(LanguageExtensionInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public LanguageExtensionName languageExtensionName() { - return this.innerModel().languageExtensionName(); - } - - public LanguageExtensionInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java index e03862f4169b..5880ed9d7bc6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java @@ -101,11 +101,10 @@ private Mono> getWithResponseAsync(String resourc if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, libraryName, workspaceName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, libraryName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -144,11 +143,10 @@ private Mono> getWithResponseAsync(String resourc if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - libraryName, workspaceName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, libraryName, workspaceName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java index 9bcf2d445876..78e428a2d15a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java @@ -110,10 +110,9 @@ private Mono> listByWorkspaceSinglePageAsync if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -151,12 +150,11 @@ private Mono> listByWorkspaceSinglePageAsync if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationImpl.java deleted file mode 100644 index 9891facd5479..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import com.azure.resourcemanager.synapse.models.Operation; -import com.azure.resourcemanager.synapse.models.OperationDisplay; - -public final class OperationImpl implements Operation { - private OperationInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - OperationImpl(OperationInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String name() { - return this.innerModel().name(); - } - - public OperationDisplay display() { - return this.innerModel().display(); - } - - public String origin() { - return this.innerModel().origin(); - } - - public Object properties() { - return this.innerModel().properties(); - } - - public OperationInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java index b123f82741c1..f8a5821ea182 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java @@ -125,11 +125,10 @@ Mono> getAzureAsyncHeaderResult(@HostParam("$ho } else { request.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), request, accept, context)) + .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), request, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -161,11 +160,10 @@ Mono> getAzureAsyncHeaderResult(@HostParam("$ho } else { request.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.checkNameAvailability(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - request, accept, context); + return service.checkNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), request, accept, context); } /** @@ -338,11 +336,11 @@ private Mono> getLocationHeaderResultWithResponseAsync(String res if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getLocationHeaderResult(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, operationId, accept, context)) + .withContext( + context -> service.getLocationHeaderResult(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, operationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -381,11 +379,10 @@ private Mono> getLocationHeaderResultWithResponseAsync(String res if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getLocationHeaderResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, operationId, accept, context); + return service.getLocationHeaderResult(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, operationId, accept, context); } /** @@ -479,11 +476,11 @@ private Mono> getAzureAsyncHeaderResultWithResp if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getAzureAsyncHeaderResult(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, operationId, accept, context)) + .withContext( + context -> service.getAzureAsyncHeaderResult(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, operationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -522,11 +519,10 @@ private Mono> getAzureAsyncHeaderResultWithResp if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getAzureAsyncHeaderResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, operationId, accept, context); + return service.getAzureAsyncHeaderResult(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, operationId, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java index 256926dca0a3..6417eac3af43 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java @@ -153,11 +153,11 @@ private Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, privateEndpointConnectionName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, privateEndpointConnectionName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -195,11 +195,10 @@ private Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, privateEndpointConnectionName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, privateEndpointConnectionName, accept, context); } /** @@ -295,12 +294,11 @@ private Mono>> createWithResponseAsync(String resource } else { request.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, privateEndpointConnectionName, request, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, privateEndpointConnectionName, + request, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -344,11 +342,10 @@ private Mono>> createWithResponseAsync(String resource } else { request.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, privateEndpointConnectionName, request, accept, context); + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, privateEndpointConnectionName, request, accept, context); } /** @@ -550,12 +547,11 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, privateEndpointConnectionName, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, privateEndpointConnectionName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -593,11 +589,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, privateEndpointConnectionName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, privateEndpointConnectionName, accept, context); } /** @@ -780,11 +775,10 @@ private Mono> listSinglePageAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -820,12 +814,11 @@ private Mono> listSinglePageAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java index e7380912ff78..6a23822026cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java @@ -75,17 +75,6 @@ Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateLinkHubName") String privateLinkHubName, - @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -125,11 +114,10 @@ Mono service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, privateLinkHubName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, accept, context)) .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -167,12 +155,11 @@ Mono new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -245,147 +232,6 @@ public PagedIterable list(Strin return new PagedIterable<>(listAsync(resourceGroupName, privateLinkHubName, context)); } - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateLinkHubName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, privateLinkHubName, privateEndpointConnectionName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateLinkHubName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - privateLinkHubName, privateEndpointConnectionName, accept, context); - } - - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, - String privateLinkHubName, String privateEndpointConnectionName) { - return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, - String privateLinkHubName, String privateEndpointConnectionName, Context context) { - return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, context) - .block(); - } - - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionForPrivateLinkHubInner get(String resourceGroupName, String privateLinkHubName, - String privateEndpointConnectionName) { - return getWithResponse(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, Context.NONE) - .getValue(); - } - /** * Get the next page of items. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java index cb1c84bf5e92..7725e13e4891 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.implementation; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.PrivateEndpointConnectionsPrivateLinkHubsClient; @@ -43,29 +41,6 @@ public PagedIterable list(String res inner1 -> new PrivateEndpointConnectionForPrivateLinkHubImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceGroupName, - String privateLinkHubName, String privateEndpointConnectionName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new PrivateEndpointConnectionForPrivateLinkHubImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public PrivateEndpointConnectionForPrivateLinkHub get(String resourceGroupName, String privateLinkHubName, - String privateEndpointConnectionName) { - PrivateEndpointConnectionForPrivateLinkHubInner inner - = this.serviceClient().get(resourceGroupName, privateLinkHubName, privateEndpointConnectionName); - if (inner != null) { - return new PrivateEndpointConnectionForPrivateLinkHubImpl(inner, this.manager()); - } else { - return null; - } - } - private PrivateEndpointConnectionsPrivateLinkHubsClient serviceClient() { return this.innerClient; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java index deca2cb702b9..0b9ad2b9d6fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java @@ -124,11 +124,10 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, privateLinkHubName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -167,12 +166,11 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - privateLinkHubName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -288,11 +286,11 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, privateLinkHubName, privateLinkResourceName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, privateLinkResourceName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -334,11 +332,10 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - privateLinkHubName, privateLinkResourceName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, privateLinkResourceName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java index c72f76eaaa26..5aef6586c455 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java @@ -171,10 +171,9 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -206,12 +205,11 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, accept, context) + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -305,10 +303,9 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -343,11 +340,10 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, privateLinkHubName, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, accept, context); } /** @@ -434,12 +430,11 @@ private Mono> updateWithResponseAsync(String resou } else { privateLinkHubPatchInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -480,11 +475,10 @@ private Mono> updateWithResponseAsync(String resou } else { privateLinkHubPatchInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - privateLinkHubName, privateLinkHubPatchInfo, accept, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, accept, context); } /** @@ -577,10 +571,9 @@ private Mono> createOrUpdateWithResponseAsync(Stri } else { privateLinkHubInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, privateLinkHubInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -623,11 +616,11 @@ private Mono> createOrUpdateWithResponseAsync(Stri } else { privateLinkHubInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, privateLinkHubName, privateLinkHubInfo, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, privateLinkHubInfo, accept, + context); } /** @@ -714,10 +707,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -752,11 +744,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - privateLinkHubName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, accept, context); } /** @@ -907,11 +898,10 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -936,10 +926,11 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java similarity index 94% rename from sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java rename to sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java index d206435a3228..86b876fce0e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java @@ -25,19 +25,19 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesOperationsClient; +import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.synapse.models.PrivateLinkResourceListResult; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. + * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ -public final class PrivateLinkResourcesOperationsClientImpl implements PrivateLinkResourcesOperationsClient { +public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient { /** * The proxy service used to perform REST calls. */ - private final PrivateLinkResourcesOperationsService service; + private final PrivateLinkResourcesService service; /** * The service client containing this operation class. @@ -45,23 +45,23 @@ public final class PrivateLinkResourcesOperationsClientImpl implements PrivateLi private final SynapseManagementClientImpl client; /** - * Initializes an instance of PrivateLinkResourcesOperationsClientImpl. + * Initializes an instance of PrivateLinkResourcesClientImpl. * * @param client the instance of the service client containing this operation class. */ - PrivateLinkResourcesOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(PrivateLinkResourcesOperationsService.class, client.getHttpPipeline(), + PrivateLinkResourcesClientImpl(SynapseManagementClientImpl client) { + this.service = RestProxy.create(PrivateLinkResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientPrivateLinkResourcesOperations to be used by - * the proxy service to perform REST calls. + * The interface defining all the services for SynapseManagementClientPrivateLinkResources to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") - public interface PrivateLinkResourcesOperationsService { + public interface PrivateLinkResourcesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources") @ExpectedResponses({ 200 }) @@ -121,11 +121,10 @@ private Mono> listSinglePageAsync(String if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -163,12 +162,11 @@ private Mono> listSinglePageAsync(String if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -282,11 +280,11 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, privateLinkResourceName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, privateLinkResourceName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -326,11 +324,10 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, privateLinkResourceName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, privateLinkResourceName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java similarity index 87% rename from sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java rename to sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java index 8446db6f59f4..fb38f367a544 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java @@ -9,19 +9,19 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesOperationsClient; +import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.synapse.models.PrivateLinkResource; -import com.azure.resourcemanager.synapse.models.PrivateLinkResourcesOperations; +import com.azure.resourcemanager.synapse.models.PrivateLinkResources; -public final class PrivateLinkResourcesOperationsImpl implements PrivateLinkResourcesOperations { - private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesOperationsImpl.class); +public final class PrivateLinkResourcesImpl implements PrivateLinkResources { + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class); - private final PrivateLinkResourcesOperationsClient innerClient; + private final PrivateLinkResourcesClient innerClient; private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public PrivateLinkResourcesOperationsImpl(PrivateLinkResourcesOperationsClient innerClient, + public PrivateLinkResourcesImpl(PrivateLinkResourcesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; @@ -60,7 +60,7 @@ public PrivateLinkResource get(String resourceGroupName, String workspaceName, S } } - private PrivateLinkResourcesOperationsClient serviceClient() { + private PrivateLinkResourcesClient serviceClient() { return this.innerClient; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java index e380d46e89c9..53b93d9130c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java @@ -117,11 +117,11 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter restorableDroppedSqlPoolId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, restorableDroppedSqlPoolId, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, restorableDroppedSqlPoolId, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -161,11 +161,10 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter restorableDroppedSqlPoolId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, restorableDroppedSqlPoolId, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, restorableDroppedSqlPoolId, accept, context); } /** @@ -253,10 +252,9 @@ private Mono> listByWorkspaceSingle if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) @@ -293,12 +291,11 @@ private Mono> listByWorkspaceSingle if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java index 6d2d1d49889f..738a60abe65f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java @@ -72,10 +72,6 @@ public Integer queueDelayMs() { return this.innerModel().queueDelayMs(); } - public Boolean isDevopsAuditEnabled() { - return this.innerModel().isDevopsAuditEnabled(); - } - public String resourceGroupName() { return resourceGroupName; } @@ -209,9 +205,4 @@ public ServerBlobAuditingPolicyImpl withQueueDelayMs(Integer queueDelayMs) { this.innerModel().withQueueDelayMs(queueDelayMs); return this; } - - public ServerBlobAuditingPolicyImpl withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { - this.innerModel().withIsDevopsAuditEnabled(isDevopsAuditEnabled); - return this; - } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SkuDescriptionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SkuDescriptionImpl.java deleted file mode 100644 index 75c4e64bbcde..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SkuDescriptionImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; -import com.azure.resourcemanager.synapse.models.SkuDescription; -import com.azure.resourcemanager.synapse.models.SkuLocationInfoItem; -import java.util.Collections; -import java.util.List; - -public final class SkuDescriptionImpl implements SkuDescription { - private SkuDescriptionInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - SkuDescriptionImpl(SkuDescriptionInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String resourceType() { - return this.innerModel().resourceType(); - } - - public String name() { - return this.innerModel().name(); - } - - public String size() { - return this.innerModel().size(); - } - - public List locations() { - List inner = this.innerModel().locations(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public List locationInfo() { - List inner = this.innerModel().locationInfo(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public List restrictions() { - List inner = this.innerModel().restrictions(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public SkuDescriptionInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationResourceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationResourceImpl.java deleted file mode 100644 index a8282c8269bd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationResourceImpl.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; -import java.time.OffsetDateTime; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -public final class SparkConfigurationResourceImpl implements SparkConfigurationResource { - private SparkConfigurationResourceInner innerObject; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - SparkConfigurationResourceImpl(SparkConfigurationResourceInner innerObject, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public String description() { - return this.innerModel().description(); - } - - public Map configs() { - Map inner = this.innerModel().configs(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public List annotations() { - List inner = this.innerModel().annotations(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public String notes() { - return this.innerModel().notes(); - } - - public String createdBy() { - return this.innerModel().createdBy(); - } - - public OffsetDateTime created() { - return this.innerModel().created(); - } - - public Map configMergeRule() { - Map inner = this.innerModel().configMergeRule(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public SparkConfigurationResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java deleted file mode 100644 index daabaedb33a6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.synapse.fluent.SparkConfigurationsClient; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in SparkConfigurationsClient. - */ -public final class SparkConfigurationsClientImpl implements SparkConfigurationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final SparkConfigurationsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of SparkConfigurationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - SparkConfigurationsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(SparkConfigurationsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientSparkConfigurations to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface SparkConfigurationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations/{sparkConfigurationName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("sparkConfigurationName") String sparkConfigurationName, - @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String sparkConfigurationName, String workspaceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (sparkConfigurationName == null) { - return Mono.error( - new IllegalArgumentException("Parameter sparkConfigurationName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, sparkConfigurationName, workspaceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String sparkConfigurationName, String workspaceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (sparkConfigurationName == null) { - return Mono.error( - new IllegalArgumentException("Parameter sparkConfigurationName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - sparkConfigurationName, workspaceName, accept, context); - } - - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String sparkConfigurationName, - String workspaceName) { - return getWithResponseAsync(resourceGroupName, sparkConfigurationName, workspaceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, - String sparkConfigurationName, String workspaceName, Context context) { - return getWithResponseAsync(resourceGroupName, sparkConfigurationName, workspaceName, context).block(); - } - - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SparkConfigurationResourceInner get(String resourceGroupName, String sparkConfigurationName, - String workspaceName) { - return getWithResponse(resourceGroupName, sparkConfigurationName, workspaceName, Context.NONE).getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java deleted file mode 100644 index cb531c115b5d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.SparkConfigurationsClient; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; -import com.azure.resourcemanager.synapse.models.SparkConfigurations; - -public final class SparkConfigurationsImpl implements SparkConfigurations { - private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationsImpl.class); - - private final SparkConfigurationsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public SparkConfigurationsImpl(SparkConfigurationsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String sparkConfigurationName, - String workspaceName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, sparkConfigurationName, workspaceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new SparkConfigurationResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public SparkConfigurationResource get(String resourceGroupName, String sparkConfigurationName, - String workspaceName) { - SparkConfigurationResourceInner inner - = this.serviceClient().get(resourceGroupName, sparkConfigurationName, workspaceName); - if (inner != null) { - return new SparkConfigurationResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - private SparkConfigurationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java deleted file mode 100644 index 4ac57ecf98d9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.synapse.fluent.SparkConfigurationsOperationsClient; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import com.azure.resourcemanager.synapse.models.SparkConfigurationListResponse; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in SparkConfigurationsOperationsClient. - */ -public final class SparkConfigurationsOperationsClientImpl implements SparkConfigurationsOperationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final SparkConfigurationsOperationsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of SparkConfigurationsOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - SparkConfigurationsOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(SparkConfigurationsOperationsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for SynapseManagementClientSparkConfigurationsOperations to be used by - * the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface SparkConfigurationsOperationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync(String resourceGroupName, - String workspaceName) { - return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), - nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); - } - - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync(String resourceGroupName, - String workspaceName, Context context) { - return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), - nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); - } - - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace(String resourceGroupName, - String workspaceName) { - return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName)); - } - - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace(String resourceGroupName, - String workspaceName, Context context) { - return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java deleted file mode 100644 index 9d9970f2148a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.SparkConfigurationsOperationsClient; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; -import com.azure.resourcemanager.synapse.models.SparkConfigurationsOperations; - -public final class SparkConfigurationsOperationsImpl implements SparkConfigurationsOperations { - private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationsOperationsImpl.class); - - private final SparkConfigurationsOperationsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public SparkConfigurationsOperationsImpl(SparkConfigurationsOperationsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner - = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new SparkConfigurationResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, - Context context) { - PagedIterable inner - = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new SparkConfigurationResourceImpl(inner1, this.manager())); - } - - private SparkConfigurationsOperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java index f1421439916a..8562f49a6acb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java @@ -139,12 +139,12 @@ private Mono> getWithResponseAsync(Stri if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String blobAuditingPolicyName = "default"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -183,12 +183,11 @@ private Mono> getWithResponseAsync(Stri if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String blobAuditingPolicyName = "default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context); } /** @@ -289,11 +288,10 @@ private Mono> createOrUpdateWithRespons } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String blobAuditingPolicyName = "default"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -340,12 +338,12 @@ private Mono> createOrUpdateWithRespons } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String blobAuditingPolicyName = "default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, + parameters, accept, context); } /** @@ -445,10 +443,9 @@ private Mono> listBySqlPoolSingleP if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listBySqlPool(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listBySqlPool(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -489,12 +486,11 @@ private Mono> listBySqlPoolSingleP if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySqlPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .listBySqlPool(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java index e909360929da..bf1023c05d04 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java @@ -113,11 +113,11 @@ private Mono> getWithResponseAsync(String resourceG if (columnName == null) { return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -166,11 +166,10 @@ private Mono> getWithResponseAsync(String resourceG if (columnName == null) { return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, schemaName, tableName, columnName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java index bf7b1bb038df..43cbc17ffaf7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java @@ -110,11 +110,11 @@ private Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter connectionPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -159,11 +159,10 @@ private Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter connectionPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, connectionPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java index 098183724d70..0441edf18ffd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java @@ -110,11 +110,11 @@ private Mono> getWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter dataWarehouseUserActivityName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + dataWarehouseUserActivityName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -160,11 +160,10 @@ private Mono> getWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter dataWarehouseUserActivityName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, dataWarehouseUserActivityName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java index c29ea16ec268..6f6821cb66cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java @@ -133,11 +133,10 @@ private Mono> listSinglePageAsync(String res if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -179,12 +178,11 @@ private Mono> listSinglePageAsync(String res if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); } @@ -311,10 +309,9 @@ private Mono> createOrUpdateWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -365,11 +362,11 @@ private Mono> createOrUpdateWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, + parameters, accept, context); } /** @@ -473,11 +470,11 @@ private Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter geoBackupPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -522,11 +519,10 @@ private Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter geoBackupPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, geoBackupPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java index 467045782bf6..376779daa75b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java @@ -90,10 +90,6 @@ public StorageAccountType storageAccountType() { return this.innerModel().storageAccountType(); } - public OffsetDateTime sourceDatabaseDeletionDate() { - return this.innerModel().sourceDatabaseDeletionDate(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -156,14 +152,16 @@ public SqlPoolImpl update() { public SqlPool apply() { this.innerObject = serviceManager.serviceClient() .getSqlPools() - .update(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, Context.NONE); + .updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, Context.NONE) + .getValue(); return this; } public SqlPool apply(Context context) { this.innerObject = serviceManager.serviceClient() .getSqlPools() - .update(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, context); + .updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, context) + .getValue(); return this; } @@ -191,19 +189,19 @@ public SqlPool refresh(Context context) { return this; } - public SqlPool pause() { + public Object pause() { return serviceManager.sqlPools().pause(resourceGroupName, workspaceName, sqlPoolName); } - public SqlPool pause(Context context) { + public Object pause(Context context) { return serviceManager.sqlPools().pause(resourceGroupName, workspaceName, sqlPoolName, context); } - public SqlPool resume() { + public Object resume() { return serviceManager.sqlPools().resume(resourceGroupName, workspaceName, sqlPoolName); } - public SqlPool resume(Context context) { + public Object resume(Context context) { return serviceManager.sqlPools().resume(resourceGroupName, workspaceName, sqlPoolName, context); } @@ -248,8 +246,13 @@ public SqlPoolImpl withMaxSizeBytes(Long maxSizeBytes) { } public SqlPoolImpl withCollation(String collation) { - this.innerModel().withCollation(collation); - return this; + if (isInCreateMode()) { + this.innerModel().withCollation(collation); + return this; + } else { + this.updateSqlPoolInfo.withCollation(collation); + return this; + } } public SqlPoolImpl withSourceDatabaseId(String sourceDatabaseId) { @@ -282,9 +285,24 @@ public SqlPoolImpl withProvisioningState(String provisioningState) { } } + public SqlPoolImpl withStatus(String status) { + if (isInCreateMode()) { + this.innerModel().withStatus(status); + return this; + } else { + this.updateSqlPoolInfo.withStatus(status); + return this; + } + } + public SqlPoolImpl withRestorePointInTime(OffsetDateTime restorePointInTime) { - this.innerModel().withRestorePointInTime(restorePointInTime); - return this; + if (isInCreateMode()) { + this.innerModel().withRestorePointInTime(restorePointInTime); + return this; + } else { + this.updateSqlPoolInfo.withRestorePointInTime(restorePointInTime); + return this; + } } public SqlPoolImpl withCreateMode(CreateMode createMode) { @@ -297,6 +315,16 @@ public SqlPoolImpl withCreateMode(CreateMode createMode) { } } + public SqlPoolImpl withCreationDate(OffsetDateTime creationDate) { + if (isInCreateMode()) { + this.innerModel().withCreationDate(creationDate); + return this; + } else { + this.updateSqlPoolInfo.withCreationDate(creationDate); + return this; + } + } + public SqlPoolImpl withStorageAccountType(StorageAccountType storageAccountType) { if (isInCreateMode()) { this.innerModel().withStorageAccountType(storageAccountType); @@ -307,11 +335,6 @@ public SqlPoolImpl withStorageAccountType(StorageAccountType storageAccountType) } } - public SqlPoolImpl withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate) { - this.innerModel().withSourceDatabaseDeletionDate(sourceDatabaseDeletionDate); - return this; - } - private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java index 6c52527dcda1..806fa363090f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java @@ -109,11 +109,11 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter maintenanceWindowOptionsName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + maintenanceWindowOptionsName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -158,11 +158,10 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter maintenanceWindowOptionsName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, maintenanceWindowOptionsName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java index bf1de2f905ef..5c3c28746d66 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java @@ -119,11 +119,11 @@ private Mono> getWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -165,11 +165,10 @@ private Mono> getWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, maintenanceWindowName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, accept, context); } /** @@ -273,9 +272,8 @@ private Mono> createOrUpdateWithResponseAsync(String resourceGrou } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -325,10 +323,10 @@ private Mono> createOrUpdateWithResponseAsync(String resourceGrou } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, + parameters, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java index 721ec1171943..7303b237fab8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java @@ -62,7 +62,6 @@ public interface SqlPoolMetadataSyncConfigsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(value = ManagementException.class, code = { 404 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -71,8 +70,7 @@ Mono> get(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(value = ManagementException.class, code = { 404 }) + @ExpectedResponses({ 200, 404 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> create(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -92,7 +90,6 @@ Mono> create(@HostParam("$host") String endpoi * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response} on successful completion of * {@link Mono}. @@ -118,11 +115,10 @@ private Mono> getWithResponseAsync(String reso if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -137,7 +133,6 @@ private Mono> getWithResponseAsync(String reso * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response} on successful completion of * {@link Mono}. @@ -163,11 +158,10 @@ private Mono> getWithResponseAsync(String reso if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context); } /** @@ -180,7 +174,6 @@ private Mono> getWithResponseAsync(String reso * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool on successful completion of {@link Mono}. */ @@ -201,7 +194,6 @@ private Mono getAsync(String resourceGroupName, String * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ @@ -221,7 +213,6 @@ public Response getWithResponse(String resourceGroupNam * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool. */ @@ -241,7 +232,6 @@ public MetadataSyncConfigInner get(String resourceGroupName, String workspaceNam * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response} on successful completion of {@link Mono}. */ @@ -272,12 +262,11 @@ private Mono> createWithResponseAsync(String r } else { metadataSyncConfiguration.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + metadataSyncConfiguration, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -293,7 +282,6 @@ private Mono> createWithResponseAsync(String r * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response} on successful completion of {@link Mono}. */ @@ -324,11 +312,10 @@ private Mono> createWithResponseAsync(String r } else { metadataSyncConfiguration.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, metadataSyncConfiguration, accept, context); + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, accept, context); } /** @@ -342,7 +329,6 @@ private Mono> createWithResponseAsync(String r * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration on successful completion of {@link Mono}. */ @@ -365,7 +351,6 @@ private Mono createAsync(String resourceGroupName, Stri * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response}. */ @@ -387,7 +372,6 @@ public Response createWithResponse(String resourceGroup * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java index b6ebfa015795..6aee67cac86e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java @@ -19,15 +19,9 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.SqlPoolOperationResultsClient; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** @@ -64,9 +58,9 @@ public final class SqlPoolOperationResultsClientImpl implements SqlPoolOperation public interface SqlPoolOperationResultsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}") - @ExpectedResponses({ 200, 201, 202 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getLocationHeaderResult(@HostParam("$host") String endpoint, + Mono> getLocationHeaderResult(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("operationId") String operationId, @@ -88,7 +82,7 @@ Mono>> getLocationHeaderResult(@HostParam("$host") Str * @return the status of a SQL pool operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> getLocationHeaderResultWithResponseAsync(String resourceGroupName, + private Mono> getLocationHeaderResultWithResponseAsync(String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -111,12 +105,11 @@ private Mono>> getLocationHeaderResultWithResponseAsyn if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getLocationHeaderResult(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, operationId, accept, - context)) + .withContext(context -> service.getLocationHeaderResult(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, + sqlPoolName, operationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -136,7 +129,7 @@ private Mono>> getLocationHeaderResultWithResponseAsyn * @return the status of a SQL pool operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> getLocationHeaderResultWithResponseAsync(String resourceGroupName, + private Mono> getLocationHeaderResultWithResponseAsync(String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -159,103 +152,11 @@ private Mono>> getLocationHeaderResultWithResponseAsyn if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getLocationHeaderResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, operationId, accept, context); - } - - /** - * Get SQL pool operation status - * - * Get the status of a SQL pool operation. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the status of a SQL pool operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginGetLocationHeaderResultAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - Mono>> mono - = getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, operationId); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); - } - - /** - * Get SQL pool operation status - * - * Get the status of a SQL pool operation. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the status of a SQL pool operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginGetLocationHeaderResultAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = getLocationHeaderResultWithResponseAsync(resourceGroupName, - workspaceName, sqlPoolName, operationId, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, context); - } - - /** - * Get SQL pool operation status - * - * Get the status of a SQL pool operation. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the status of a SQL pool operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginGetLocationHeaderResult(String resourceGroupName, - String workspaceName, String sqlPoolName, String operationId) { - return this.beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId) - .getSyncPoller(); - } - - /** - * Get SQL pool operation status - * - * Get the status of a SQL pool operation. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the status of a SQL pool operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginGetLocationHeaderResult(String resourceGroupName, - String workspaceName, String sqlPoolName, String operationId, Context context) { - return this - .beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) - .getSyncPoller(); + return service.getLocationHeaderResult(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, operationId, accept, + context); } /** @@ -273,10 +174,10 @@ public SyncPoller, SqlPoolInner> beginGetLocationHeader * @return the status of a SQL pool operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getLocationHeaderResultAsync(String resourceGroupName, String workspaceName, + private Mono getLocationHeaderResultAsync(String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - return beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId).last() - .flatMap(this.client::getLroFinalResultOrError); + return getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -292,14 +193,13 @@ private Mono getLocationHeaderResultAsync(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of a SQL pool operation on successful completion of {@link Mono}. + * @return the status of a SQL pool operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getLocationHeaderResultAsync(String resourceGroupName, String workspaceName, + public Response getLocationHeaderResultWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { - return beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, + context).block(); } /** @@ -317,30 +217,9 @@ private Mono getLocationHeaderResultAsync(String resourceGroupName * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + public Object getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - return getLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId).block(); - } - - /** - * Get SQL pool operation status - * - * Get the status of a SQL pool operation. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of a SQL pool operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, - String operationId, Context context) { - return getLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) - .block(); + return getLocationHeaderResultWithResponse(resourceGroupName, workspaceName, sqlPoolName, operationId, + Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java index 5059c829a77b..4a3571ec28ae 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java @@ -4,11 +4,10 @@ package com.azure.resourcemanager.synapse.implementation; +import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.SqlPoolOperationResultsClient; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -import com.azure.resourcemanager.synapse.models.SqlPool; import com.azure.resourcemanager.synapse.models.SqlPoolOperationResults; public final class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { @@ -24,26 +23,15 @@ public SqlPoolOperationResultsImpl(SqlPoolOperationResultsClient innerClient, this.serviceManager = serviceManager; } - public SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, - String operationId) { - SqlPoolInner inner - = this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, operationId); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } + public Response getLocationHeaderResultWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String operationId, Context context) { + return this.serviceClient() + .getLocationHeaderResultWithResponse(resourceGroupName, workspaceName, sqlPoolName, operationId, context); } - public SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, - String operationId, Context context) { - SqlPoolInner inner = this.serviceClient() - .getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, operationId, context); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } + public Object getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId) { + return this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, operationId); } private SqlPoolOperationResultsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java index 2f57ec57e195..862aee06c769 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java @@ -115,11 +115,10 @@ private Mono> listSinglePageAsync(String re if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -161,12 +160,11 @@ private Mono> listSinglePageAsync(String re if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java index 8c783293cf2b..2b0a4f3b269d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java @@ -106,9 +106,8 @@ private Mono> updateWithResponseAsync(String resourceGroupName, S } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -152,10 +151,9 @@ private Mono> updateWithResponseAsync(String resourceGroupName, S } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, parameters, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, parameters, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java index 6312455505cd..d8a15e84093d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java @@ -125,11 +125,10 @@ private Mono> listSinglePageAsync(String res if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -171,12 +170,11 @@ private Mono> listSinglePageAsync(String res if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -303,12 +301,9 @@ private Mono> getByNameWithResponseAsync(String r if (linkId == null) { return Mono.error(new IllegalArgumentException("Parameter linkId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.getByName(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, linkId, accept, context)) + return FluxUtil.withContext(context -> service.getByName(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, linkId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -351,11 +346,10 @@ private Mono> getByNameWithResponseAsync(String r if (linkId == null) { return Mono.error(new IllegalArgumentException("Parameter linkId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByName(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, linkId, accept, context); + return service.getByName(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, linkId, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java index 0010717963a2..f24d557a0662 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java @@ -153,11 +153,10 @@ private Mono> listSinglePageAsync(String resour if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -198,12 +197,11 @@ private Mono> listSinglePageAsync(String resour if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -324,12 +322,11 @@ private Mono>> createWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, parameters, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, parameters, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -372,11 +369,10 @@ private Mono>> createWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, parameters, accept, context); + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, parameters, accept, context); } /** @@ -574,11 +570,11 @@ private Mono> getWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, restorePointName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, restorePointName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -620,11 +616,10 @@ private Mono> getWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, restorePointName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, restorePointName, accept, context); } /** @@ -721,11 +716,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, restorePointName, context)) + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, restorePointName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -767,10 +759,9 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, restorePointName, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, restorePointName, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java index af9533749aca..95db29d63012 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java @@ -125,11 +125,9 @@ private Mono> listSinglePageAsync(String resou if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, filter, accept, context)) + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -171,12 +169,11 @@ private Mono> listSinglePageAsync(String resou if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, filter, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -322,11 +319,11 @@ private Mono> getWithResponseAsync(String resourceG if (schemaName == null) { return Mono.error(new IllegalArgumentException("Parameter schemaName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, schemaName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -367,11 +364,10 @@ private Mono> getWithResponseAsync(String resourceG if (schemaName == null) { return Mono.error(new IllegalArgumentException("Parameter schemaName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, schemaName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java index 5e95a1d32fce..369adf05fed6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java @@ -141,11 +141,10 @@ private Mono> listSinglePageAsync if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -187,12 +186,11 @@ private Mono> listSinglePageAsync if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -316,11 +314,11 @@ private Mono> getWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -364,11 +362,10 @@ private Mono> getWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, securityAlertPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, accept, context); } /** @@ -481,10 +478,9 @@ private Mono> createOrUpdateWithRespon } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -537,11 +533,11 @@ private Mono> createOrUpdateWithRespon } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + parameters, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java index 418d829e89e7..4cb7f02811fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java @@ -211,12 +211,11 @@ private Mono> listCurrentSinglePageAsync(St if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listCurrent(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, filter, accept, context)) + .withContext(context -> service.listCurrent(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, filter, accept, + context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -258,12 +257,11 @@ private Mono> listCurrentSinglePageAsync(St if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listCurrent(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, filter, accept, context) + .listCurrent(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -412,9 +410,8 @@ private Mono> updateWithResponseAsync(String resourceGroupName, S } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -458,10 +455,9 @@ private Mono> updateWithResponseAsync(String resourceGroupName, S } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, parameters, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, parameters, context); } /** @@ -558,10 +554,9 @@ private Mono> listRecommendedSinglePageAsyn if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listRecommended(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listRecommended(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, includeDisabledRecommendations, skipToken, filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -609,12 +604,12 @@ private Mono> listRecommendedSinglePageAsyn if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listRecommended(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, includeDisabledRecommendations, skipToken, filter, accept, context) + .listRecommended(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, includeDisabledRecommendations, skipToken, filter, + accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -793,11 +788,10 @@ private Mono> createOrUpdateWithResponseAsync(St } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "current"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -855,13 +849,12 @@ private Mono> createOrUpdateWithResponseAsync(St } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "current"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, - parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, sensitivityLabelSource, parameters, accept, context); } /** @@ -976,10 +969,9 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (columnName == null) { return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "current"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1030,11 +1022,11 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (columnName == null) { return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "current"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, + context); } /** @@ -1151,12 +1143,11 @@ private Mono> getWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter sensitivityLabelSource is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, - sensitivityLabelSource, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, sensitivityLabelSource, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1212,11 +1203,11 @@ private Mono> getWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter sensitivityLabelSource is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, + accept, context); } /** @@ -1331,10 +1322,9 @@ private Mono> enableRecommendationWithResponseAsync(String resour if (columnName == null) { return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "recommended"; return FluxUtil - .withContext(context -> service.enableRecommendation(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.enableRecommendation(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1385,12 +1375,11 @@ private Mono> enableRecommendationWithResponseAsync(String resour if (columnName == null) { return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "recommended"; context = this.client.mergeContext(context); - return service.enableRecommendation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, - context); + return service.enableRecommendation(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, sensitivityLabelSource, context); } /** @@ -1500,12 +1489,11 @@ private Mono> disableRecommendationWithResponseAsync(String resou if (columnName == null) { return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "recommended"; return FluxUtil - .withContext(context -> service.disableRecommendation(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, - columnName, sensitivityLabelSource, context)) + .withContext(context -> service.disableRecommendation(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, + sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1554,12 +1542,11 @@ private Mono> disableRecommendationWithResponseAsync(String resou if (columnName == null) { return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "recommended"; context = this.client.mergeContext(context); - return service.disableRecommendation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, - context); + return service.disableRecommendation(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, sensitivityLabelSource, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java index e67435258351..00e08dd9daf2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java @@ -126,10 +126,9 @@ private Mono> listByTableNameSinglePageAsync(S if (tableName == null) { return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByTableName(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByTableName(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, filter, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -182,12 +181,11 @@ private Mono> listByTableNameSinglePageAsync(S if (tableName == null) { return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByTableName(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, schemaName, tableName, filter, accept, context) + .listByTableName(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java index 2de5f78530f5..afed6edbc512 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java @@ -131,12 +131,11 @@ private Mono> listBySchemaSinglePageAsync(Strin if (schemaName == null) { return Mono.error(new IllegalArgumentException("Parameter schemaName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listBySchema(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, schemaName, filter, accept, context)) + .withContext(context -> service.listBySchema(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, filter, + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -183,12 +182,11 @@ private Mono> listBySchemaSinglePageAsync(Strin if (schemaName == null) { return Mono.error(new IllegalArgumentException("Parameter schemaName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySchema(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, schemaName, filter, accept, context) + .listBySchema(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, filter, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -347,11 +345,11 @@ private Mono> getWithResponseAsync(String resourceGr if (tableName == null) { return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -396,11 +394,10 @@ private Mono> getWithResponseAsync(String resourceGr if (tableName == null) { return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, schemaName, tableName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java index 248e6fda0513..d7a14e9f05e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java @@ -146,11 +146,11 @@ private Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter transparentDataEncryptionName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + transparentDataEncryptionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -196,11 +196,10 @@ private Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter transparentDataEncryptionName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, transparentDataEncryptionName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, accept, context); } /** @@ -314,10 +313,9 @@ private Mono> createOrUpdateWithRespons } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -371,11 +369,11 @@ private Mono> createOrUpdateWithRespons } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + transparentDataEncryptionName, parameters, accept, context); } /** @@ -483,11 +481,10 @@ private Mono> listSinglePageAsync( if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -529,12 +526,11 @@ private Mono> listSinglePageAsync( if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java index 142bb1af742d..d0ab56cac00f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java @@ -113,11 +113,10 @@ private Mono> listSinglePageAsync(String resour if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -158,12 +157,11 @@ private Mono> listSinglePageAsync(String resour if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java index 265b0ecb596f..62c9a232a368 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java @@ -161,10 +161,9 @@ private Mono> createOr } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -227,12 +226,11 @@ private Mono> createOr } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, - parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName, parameters, accept, context); } /** @@ -360,9 +358,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (baselineName == null) { return Mono.error(new IllegalArgumentException("Parameter baselineName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -416,10 +413,9 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (baselineName == null) { return Mono.error(new IllegalArgumentException("Parameter baselineName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, context); } /** @@ -540,12 +536,11 @@ private Mono> getWithR if (baselineName == null) { return Mono.error(new IllegalArgumentException("Parameter baselineName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, - accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -599,11 +594,11 @@ private Mono> getWithR if (baselineName == null) { return Mono.error(new IllegalArgumentException("Parameter baselineName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, accept, + context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java index 85c358d88d11..ee47dbdd71ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java @@ -163,11 +163,11 @@ private Mono> listSinglePa return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -215,12 +215,11 @@ private Mono> listSinglePa return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -354,11 +353,10 @@ private Mono>> initiateScanWithResponseAsync(String re if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; return FluxUtil - .withContext( - context -> service.initiateScan(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context)) + .withContext(context -> service.initiateScan(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, scanId, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -405,10 +403,10 @@ private Mono>> initiateScanWithResponseAsync(String re if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.initiateScan(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); + return service.initiateScan(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + scanId, context); } /** @@ -623,10 +621,9 @@ private Mono> exportWit if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.export(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.export(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -676,11 +673,10 @@ private Mono> exportWit if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.export(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context); + return service.export(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context); } /** @@ -789,11 +785,11 @@ private Mono> getWithResponseAs if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, scanId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -841,11 +837,10 @@ private Mono> getWithResponseAs if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java index 4fd61ddf5bc1..82da2778adfd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java @@ -153,11 +153,10 @@ private Mono> listSinglePageA if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -199,12 +198,11 @@ private Mono> listSinglePageA if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -329,11 +327,11 @@ private Mono> getWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -379,11 +377,10 @@ private Mono> getWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context); } /** @@ -496,10 +493,9 @@ private Mono> createOrUpdateWithRe } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -553,11 +549,11 @@ private Mono> createOrUpdateWithRe } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + parameters, accept, context); } /** @@ -669,11 +665,10 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -717,10 +712,9 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java index 48d4d27a8e65..0d565bfd603e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java @@ -167,12 +167,11 @@ private Mono> getWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -222,11 +221,10 @@ private Mono> getWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, accept, context); } /** @@ -348,10 +346,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -410,12 +407,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters, - accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, parameters, accept, context); } /** @@ -666,11 +662,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -719,10 +714,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); } /** @@ -950,11 +944,11 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1001,12 +995,11 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, workloadGroupName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java index a626538e7674..7d658c22f09b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java @@ -157,11 +157,11 @@ private Mono> getWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -205,11 +205,10 @@ private Mono> getWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, workloadGroupName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, accept, context); } /** @@ -321,10 +320,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -378,11 +376,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + parameters, accept, context); } /** @@ -616,11 +614,8 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context)) + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -664,10 +659,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, workloadGroupName, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); } /** @@ -876,11 +870,10 @@ private Mono> listSinglePageAsync(String resou if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -922,12 +915,11 @@ private Mono> listSinglePageAsync(String resou if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java index 82bce2910172..33cf067e5761 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java @@ -85,7 +85,7 @@ Mono> get(@HostParam("$host") String endpoint, @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, + Mono> update(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @BodyParam("application/json") SqlPoolPatchInfo sqlPoolInfo, @@ -93,8 +93,7 @@ Mono>> update(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(value = ManagementException.class, code = { 404 }) + @ExpectedResponses({ 200, 202, 404 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -181,11 +180,10 @@ private Mono> getWithResponseAsync(String resourceGroupNa if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -224,11 +222,10 @@ private Mono> getWithResponseAsync(String resourceGroupNa if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context); } /** @@ -303,7 +300,7 @@ public SqlPoolInner get(String resourceGroupName, String workspaceName, String s * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -328,12 +325,11 @@ private Mono>> updateWithResponseAsync(String resource } else { sqlPoolInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -353,7 +349,7 @@ private Mono>> updateWithResponseAsync(String resource * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -378,101 +374,10 @@ private Mono>> updateWithResponseAsync(String resource } else { sqlPoolInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, sqlPoolInfo, accept, context); - } - - /** - * Update SQL pool - * - * Apply a partial update to a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param sqlPoolInfo The updated SQL pool properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sQL pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginUpdateAsync(String resourceGroupName, - String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); - } - - /** - * Update SQL pool - * - * Apply a partial update to a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param sqlPoolInfo The updated SQL pool properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sQL pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginUpdateAsync(String resourceGroupName, - String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, context); - } - - /** - * Update SQL pool - * - * Apply a partial update to a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param sqlPoolInfo The updated SQL pool properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginUpdate(String resourceGroupName, - String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { - return this.beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).getSyncPoller(); - } - - /** - * Update SQL pool - * - * Apply a partial update to a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param sqlPoolInfo The updated SQL pool properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginUpdate(String resourceGroupName, - String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context) { - return this.beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context) - .getSyncPoller(); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, accept, context); } /** @@ -492,8 +397,8 @@ public SyncPoller, SqlPoolInner> beginUpdate(String res @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { - return beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).last() - .flatMap(this.client::getLroFinalResultOrError); + return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -509,13 +414,12 @@ private Mono updateAsync(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool on successful completion of {@link Mono}. + * @return sQL pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + public Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context) { - return beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).last() - .flatMap(this.client::getLroFinalResultOrError); + return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).block(); } /** @@ -535,28 +439,7 @@ private Mono updateAsync(String resourceGroupName, String workspac @ServiceMethod(returns = ReturnType.SINGLE) public SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { - return updateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).block(); - } - - /** - * Update SQL pool - * - * Apply a partial update to a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param sqlPoolInfo The updated SQL pool properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, Context context) { - return updateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).block(); + return updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, Context.NONE).getValue(); } /** @@ -570,7 +453,6 @@ public SqlPoolInner update(String resourceGroupName, String workspaceName, Strin * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @@ -600,12 +482,11 @@ private Mono>> createWithResponseAsync(String resource } else { sqlPoolInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -621,7 +502,6 @@ private Mono>> createWithResponseAsync(String resource * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @@ -651,11 +531,10 @@ private Mono>> createWithResponseAsync(String resource } else { sqlPoolInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, sqlPoolInfo, accept, context); + return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, accept, context); } /** @@ -669,7 +548,6 @@ private Mono>> createWithResponseAsync(String resource * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of sQL pool. */ @@ -694,7 +572,6 @@ private PollerFlux, SqlPoolInner> beginCreateAsync(Stri * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of sQL pool. */ @@ -719,7 +596,6 @@ private PollerFlux, SqlPoolInner> beginCreateAsync(Stri * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of sQL pool. */ @@ -741,7 +617,6 @@ public SyncPoller, SqlPoolInner> beginCreate(String res * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of sQL pool. */ @@ -763,7 +638,6 @@ public SyncPoller, SqlPoolInner> beginCreate(String res * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool on successful completion of {@link Mono}. */ @@ -786,7 +660,6 @@ private Mono createAsync(String resourceGroupName, String workspac * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool on successful completion of {@link Mono}. */ @@ -808,7 +681,6 @@ private Mono createAsync(String resourceGroupName, String workspac * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. */ @@ -830,7 +702,6 @@ public SqlPoolInner create(String resourceGroupName, String workspaceName, Strin * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. - * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. */ @@ -851,7 +722,7 @@ public SqlPoolInner create(String resourceGroupName, String workspaceName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, @@ -874,10 +745,9 @@ private Mono>> deleteWithResponseAsync(String resource if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -894,7 +764,7 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, @@ -917,11 +787,10 @@ private Mono>> deleteWithResponseAsync(String resource if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context); } /** @@ -935,14 +804,14 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sQL pool. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginDeleteAsync(String resourceGroupName, - String workspaceName, String sqlPoolName) { + private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + this.client.getContext()); } /** @@ -957,16 +826,16 @@ private PollerFlux, SqlPoolInner> beginDeleteAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sQL pool. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginDeleteAsync(String resourceGroupName, - String workspaceName, String sqlPoolName, Context context) { + private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + context); } /** @@ -980,11 +849,11 @@ private PollerFlux, SqlPoolInner> beginDeleteAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginDelete(String resourceGroupName, - String workspaceName, String sqlPoolName) { + public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + String sqlPoolName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } @@ -1000,11 +869,11 @@ public SyncPoller, SqlPoolInner> beginDelete(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginDelete(String resourceGroupName, - String workspaceName, String sqlPoolName, Context context) { + public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } @@ -1019,10 +888,10 @@ public SyncPoller, SqlPoolInner> beginDelete(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1039,10 +908,10 @@ private Mono deleteAsync(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); @@ -1059,10 +928,10 @@ private Mono deleteAsync(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner delete(String resourceGroupName, String workspaceName, String sqlPoolName) { + public Object delete(String resourceGroupName, String workspaceName, String sqlPoolName) { return deleteAsync(resourceGroupName, workspaceName, sqlPoolName).block(); } @@ -1078,10 +947,10 @@ public SqlPoolInner delete(String resourceGroupName, String workspaceName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Object delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return deleteAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } @@ -1115,10 +984,9 @@ private Mono> listByWorkspaceSinglePageAsync(String if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1156,12 +1024,11 @@ private Mono> listByWorkspaceSinglePageAsync(String if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1251,7 +1118,7 @@ public PagedIterable listByWorkspace(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> pauseWithResponseAsync(String resourceGroupName, String workspaceName, @@ -1274,10 +1141,9 @@ private Mono>> pauseWithResponseAsync(String resourceG if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.pause(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.pause(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1294,7 +1160,7 @@ private Mono>> pauseWithResponseAsync(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> pauseWithResponseAsync(String resourceGroupName, String workspaceName, @@ -1317,11 +1183,10 @@ private Mono>> pauseWithResponseAsync(String resourceG if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.pause(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context); + return service.pause(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context); } /** @@ -1335,14 +1200,14 @@ private Mono>> pauseWithResponseAsync(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sQL pool. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginPauseAsync(String resourceGroupName, - String workspaceName, String sqlPoolName) { + private PollerFlux, Object> beginPauseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { Mono>> mono = pauseWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + this.client.getContext()); } /** @@ -1357,16 +1222,16 @@ private PollerFlux, SqlPoolInner> beginPauseAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sQL pool. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginPauseAsync(String resourceGroupName, - String workspaceName, String sqlPoolName, Context context) { + private PollerFlux, Object> beginPauseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { context = this.client.mergeContext(context); Mono>> mono = pauseWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + context); } /** @@ -1380,10 +1245,10 @@ private PollerFlux, SqlPoolInner> beginPauseAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginPause(String resourceGroupName, String workspaceName, + public SyncPoller, Object> beginPause(String resourceGroupName, String workspaceName, String sqlPoolName) { return this.beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } @@ -1400,10 +1265,10 @@ public SyncPoller, SqlPoolInner> beginPause(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginPause(String resourceGroupName, String workspaceName, + public SyncPoller, Object> beginPause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return this.beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } @@ -1419,10 +1284,10 @@ public SyncPoller, SqlPoolInner> beginPause(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono pauseAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono pauseAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1439,10 +1304,10 @@ private Mono pauseAsync(String resourceGroupName, String workspace * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono pauseAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + private Mono pauseAsync(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); @@ -1459,10 +1324,10 @@ private Mono pauseAsync(String resourceGroupName, String workspace * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner pause(String resourceGroupName, String workspaceName, String sqlPoolName) { + public Object pause(String resourceGroupName, String workspaceName, String sqlPoolName) { return pauseAsync(resourceGroupName, workspaceName, sqlPoolName).block(); } @@ -1478,10 +1343,10 @@ public SqlPoolInner pause(String resourceGroupName, String workspaceName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Object pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return pauseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } @@ -1496,7 +1361,7 @@ public SqlPoolInner pause(String resourceGroupName, String workspaceName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resumeWithResponseAsync(String resourceGroupName, String workspaceName, @@ -1519,10 +1384,9 @@ private Mono>> resumeWithResponseAsync(String resource if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.resume(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.resume(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1539,7 +1403,7 @@ private Mono>> resumeWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resumeWithResponseAsync(String resourceGroupName, String workspaceName, @@ -1562,11 +1426,10 @@ private Mono>> resumeWithResponseAsync(String resource if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resume(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context); + return service.resume(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context); } /** @@ -1580,14 +1443,14 @@ private Mono>> resumeWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sQL pool. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginResumeAsync(String resourceGroupName, - String workspaceName, String sqlPoolName) { + private PollerFlux, Object> beginResumeAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { Mono>> mono = resumeWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + this.client.getContext()); } /** @@ -1602,16 +1465,16 @@ private PollerFlux, SqlPoolInner> beginResumeAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sQL pool. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginResumeAsync(String resourceGroupName, - String workspaceName, String sqlPoolName, Context context) { + private PollerFlux, Object> beginResumeAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { context = this.client.mergeContext(context); Mono>> mono = resumeWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SqlPoolInner.class, SqlPoolInner.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + context); } /** @@ -1625,11 +1488,11 @@ private PollerFlux, SqlPoolInner> beginResumeAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginResume(String resourceGroupName, - String workspaceName, String sqlPoolName) { + public SyncPoller, Object> beginResume(String resourceGroupName, String workspaceName, + String sqlPoolName) { return this.beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } @@ -1645,11 +1508,11 @@ public SyncPoller, SqlPoolInner> beginResume(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sQL pool. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginResume(String resourceGroupName, - String workspaceName, String sqlPoolName, Context context) { + public SyncPoller, Object> beginResume(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return this.beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } @@ -1664,10 +1527,10 @@ public SyncPoller, SqlPoolInner> beginResume(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resumeAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono resumeAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1684,10 +1547,10 @@ private Mono resumeAsync(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resumeAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + private Mono resumeAsync(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); @@ -1704,10 +1567,10 @@ private Mono resumeAsync(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName) { + public Object resume(String resourceGroupName, String workspaceName, String sqlPoolName) { return resumeAsync(resourceGroupName, workspaceName, sqlPoolName).block(); } @@ -1723,10 +1586,10 @@ public SqlPoolInner resume(String resourceGroupName, String workspaceName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Object resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return resumeAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java index 87ded5c32cce..1b582547a839 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java @@ -47,22 +47,12 @@ public SqlPool get(String resourceGroupName, String workspaceName, String sqlPoo } } - public SqlPool delete(String resourceGroupName, String workspaceName, String sqlPoolName) { - SqlPoolInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } + public Object delete(String resourceGroupName, String workspaceName, String sqlPoolName) { + return this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName); } - public SqlPool delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - SqlPoolInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, context); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } + public Object delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, context); } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -76,40 +66,20 @@ public PagedIterable listByWorkspace(String resourceGroupName, String w return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolImpl(inner1, this.manager())); } - public SqlPool pause(String resourceGroupName, String workspaceName, String sqlPoolName) { - SqlPoolInner inner = this.serviceClient().pause(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } + public Object pause(String resourceGroupName, String workspaceName, String sqlPoolName) { + return this.serviceClient().pause(resourceGroupName, workspaceName, sqlPoolName); } - public SqlPool pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - SqlPoolInner inner = this.serviceClient().pause(resourceGroupName, workspaceName, sqlPoolName, context); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } + public Object pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return this.serviceClient().pause(resourceGroupName, workspaceName, sqlPoolName, context); } - public SqlPool resume(String resourceGroupName, String workspaceName, String sqlPoolName) { - SqlPoolInner inner = this.serviceClient().resume(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } + public Object resume(String resourceGroupName, String workspaceName, String sqlPoolName) { + return this.serviceClient().resume(resourceGroupName, workspaceName, sqlPoolName); } - public SqlPool resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - SqlPoolInner inner = this.serviceClient().resume(resourceGroupName, workspaceName, sqlPoolName, context); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } + public Object resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return this.serviceClient().resume(resourceGroupName, workspaceName, sqlPoolName, context); } public SqlPool getById(String id) { @@ -150,7 +120,7 @@ public Response getByIdWithResponse(String id, Context context) { return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); } - public SqlPool deleteById(String id) { + public Object deleteById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -169,7 +139,7 @@ public SqlPool deleteById(String id) { return this.delete(resourceGroupName, workspaceName, sqlPoolName, Context.NONE); } - public SqlPool deleteByIdWithResponse(String id, Context context) { + public Object deleteByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java index 8dc319699863..36b0b502bb97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java @@ -23,12 +23,10 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.synapse.fluent.AzureADOnlyAuthenticationsClient; import com.azure.resourcemanager.synapse.fluent.BigDataPoolsClient; import com.azure.resourcemanager.synapse.fluent.DataMaskingPoliciesClient; import com.azure.resourcemanager.synapse.fluent.DataMaskingRulesClient; import com.azure.resourcemanager.synapse.fluent.ExtendedSqlPoolBlobAuditingPoliciesClient; -import com.azure.resourcemanager.synapse.fluent.GetsClient; import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimeAuthKeysOperationsClient; import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimeConnectionInfosClient; import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimeCredentialsClient; @@ -40,15 +38,6 @@ import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimesClient; import com.azure.resourcemanager.synapse.fluent.IpFirewallRulesClient; import com.azure.resourcemanager.synapse.fluent.KeysClient; -import com.azure.resourcemanager.synapse.fluent.KustoOperationsClient; -import com.azure.resourcemanager.synapse.fluent.KustoPoolAttachedDatabaseConfigurationsClient; -import com.azure.resourcemanager.synapse.fluent.KustoPoolChildResourcesClient; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDataConnectionsClient; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDatabasePrincipalAssignmentsClient; -import com.azure.resourcemanager.synapse.fluent.KustoPoolDatabasesClient; -import com.azure.resourcemanager.synapse.fluent.KustoPoolPrincipalAssignmentsClient; -import com.azure.resourcemanager.synapse.fluent.KustoPoolPrivateLinkResourcesOperationsClient; -import com.azure.resourcemanager.synapse.fluent.KustoPoolsClient; import com.azure.resourcemanager.synapse.fluent.LibrariesClient; import com.azure.resourcemanager.synapse.fluent.LibrariesOperationsClient; import com.azure.resourcemanager.synapse.fluent.OperationsClient; @@ -56,10 +45,8 @@ import com.azure.resourcemanager.synapse.fluent.PrivateEndpointConnectionsPrivateLinkHubsClient; import com.azure.resourcemanager.synapse.fluent.PrivateLinkHubPrivateLinkResourcesClient; import com.azure.resourcemanager.synapse.fluent.PrivateLinkHubsClient; -import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesOperationsClient; +import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.synapse.fluent.RestorableDroppedSqlPoolsClient; -import com.azure.resourcemanager.synapse.fluent.SparkConfigurationsClient; -import com.azure.resourcemanager.synapse.fluent.SparkConfigurationsOperationsClient; import com.azure.resourcemanager.synapse.fluent.SqlPoolBlobAuditingPoliciesClient; import com.azure.resourcemanager.synapse.fluent.SqlPoolColumnsClient; import com.azure.resourcemanager.synapse.fluent.SqlPoolConnectionPoliciesClient; @@ -90,7 +77,6 @@ import com.azure.resourcemanager.synapse.fluent.WorkspaceAadAdminsClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedIdentitySqlControlSettingsClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerBlobAuditingPoliciesClient; -import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerEncryptionProtectorsClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerRecoverableSqlPoolsClient; @@ -141,6 +127,20 @@ public String getEndpoint() { return this.endpoint; } + /** + * Api Version. + */ + private final String apiVersion; + + /** + * Gets Api Version. + * + * @return the apiVersion value. + */ + public String getApiVersion() { + return this.apiVersion; + } + /** * The HTTP pipeline to send requests through. */ @@ -184,17 +184,17 @@ public Duration getDefaultPollInterval() { } /** - * The AzureADOnlyAuthenticationsClient object to access its operations. + * The BigDataPoolsClient object to access its operations. */ - private final AzureADOnlyAuthenticationsClient azureADOnlyAuthentications; + private final BigDataPoolsClient bigDataPools; /** - * Gets the AzureADOnlyAuthenticationsClient object to access its operations. + * Gets the BigDataPoolsClient object to access its operations. * - * @return the AzureADOnlyAuthenticationsClient object. + * @return the BigDataPoolsClient object. */ - public AzureADOnlyAuthenticationsClient getAzureADOnlyAuthentications() { - return this.azureADOnlyAuthentications; + public BigDataPoolsClient getBigDataPools() { + return this.bigDataPools; } /** @@ -225,6 +225,132 @@ public IpFirewallRulesClient getIpFirewallRules() { return this.ipFirewallRules; } + /** + * The IntegrationRuntimesClient object to access its operations. + */ + private final IntegrationRuntimesClient integrationRuntimes; + + /** + * Gets the IntegrationRuntimesClient object to access its operations. + * + * @return the IntegrationRuntimesClient object. + */ + public IntegrationRuntimesClient getIntegrationRuntimes() { + return this.integrationRuntimes; + } + + /** + * The IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. + */ + private final IntegrationRuntimeNodeIpAddressOperationsClient integrationRuntimeNodeIpAddressOperations; + + /** + * Gets the IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. + * + * @return the IntegrationRuntimeNodeIpAddressOperationsClient object. + */ + public IntegrationRuntimeNodeIpAddressOperationsClient getIntegrationRuntimeNodeIpAddressOperations() { + return this.integrationRuntimeNodeIpAddressOperations; + } + + /** + * The IntegrationRuntimeObjectMetadatasClient object to access its operations. + */ + private final IntegrationRuntimeObjectMetadatasClient integrationRuntimeObjectMetadatas; + + /** + * Gets the IntegrationRuntimeObjectMetadatasClient object to access its operations. + * + * @return the IntegrationRuntimeObjectMetadatasClient object. + */ + public IntegrationRuntimeObjectMetadatasClient getIntegrationRuntimeObjectMetadatas() { + return this.integrationRuntimeObjectMetadatas; + } + + /** + * The IntegrationRuntimeNodesClient object to access its operations. + */ + private final IntegrationRuntimeNodesClient integrationRuntimeNodes; + + /** + * Gets the IntegrationRuntimeNodesClient object to access its operations. + * + * @return the IntegrationRuntimeNodesClient object. + */ + public IntegrationRuntimeNodesClient getIntegrationRuntimeNodes() { + return this.integrationRuntimeNodes; + } + + /** + * The IntegrationRuntimeCredentialsClient object to access its operations. + */ + private final IntegrationRuntimeCredentialsClient integrationRuntimeCredentials; + + /** + * Gets the IntegrationRuntimeCredentialsClient object to access its operations. + * + * @return the IntegrationRuntimeCredentialsClient object. + */ + public IntegrationRuntimeCredentialsClient getIntegrationRuntimeCredentials() { + return this.integrationRuntimeCredentials; + } + + /** + * The IntegrationRuntimeConnectionInfosClient object to access its operations. + */ + private final IntegrationRuntimeConnectionInfosClient integrationRuntimeConnectionInfos; + + /** + * Gets the IntegrationRuntimeConnectionInfosClient object to access its operations. + * + * @return the IntegrationRuntimeConnectionInfosClient object. + */ + public IntegrationRuntimeConnectionInfosClient getIntegrationRuntimeConnectionInfos() { + return this.integrationRuntimeConnectionInfos; + } + + /** + * The IntegrationRuntimeAuthKeysOperationsClient object to access its operations. + */ + private final IntegrationRuntimeAuthKeysOperationsClient integrationRuntimeAuthKeysOperations; + + /** + * Gets the IntegrationRuntimeAuthKeysOperationsClient object to access its operations. + * + * @return the IntegrationRuntimeAuthKeysOperationsClient object. + */ + public IntegrationRuntimeAuthKeysOperationsClient getIntegrationRuntimeAuthKeysOperations() { + return this.integrationRuntimeAuthKeysOperations; + } + + /** + * The IntegrationRuntimeMonitoringDatasClient object to access its operations. + */ + private final IntegrationRuntimeMonitoringDatasClient integrationRuntimeMonitoringDatas; + + /** + * Gets the IntegrationRuntimeMonitoringDatasClient object to access its operations. + * + * @return the IntegrationRuntimeMonitoringDatasClient object. + */ + public IntegrationRuntimeMonitoringDatasClient getIntegrationRuntimeMonitoringDatas() { + return this.integrationRuntimeMonitoringDatas; + } + + /** + * The IntegrationRuntimeStatusOperationsClient object to access its operations. + */ + private final IntegrationRuntimeStatusOperationsClient integrationRuntimeStatusOperations; + + /** + * Gets the IntegrationRuntimeStatusOperationsClient object to access its operations. + * + * @return the IntegrationRuntimeStatusOperationsClient object. + */ + public IntegrationRuntimeStatusOperationsClient getIntegrationRuntimeStatusOperations() { + return this.integrationRuntimeStatusOperations; + } + /** * The KeysClient object to access its operations. */ @@ -239,6 +365,34 @@ public KeysClient getKeys() { return this.keys; } + /** + * The LibrariesClient object to access its operations. + */ + private final LibrariesClient libraries; + + /** + * Gets the LibrariesClient object to access its operations. + * + * @return the LibrariesClient object. + */ + public LibrariesClient getLibraries() { + return this.libraries; + } + + /** + * The LibrariesOperationsClient object to access its operations. + */ + private final LibrariesOperationsClient librariesOperations; + + /** + * Gets the LibrariesOperationsClient object to access its operations. + * + * @return the LibrariesOperationsClient object. + */ + public LibrariesOperationsClient getLibrariesOperations() { + return this.librariesOperations; + } + /** * The PrivateEndpointConnectionsClient object to access its operations. */ @@ -254,17 +408,17 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() { } /** - * The PrivateLinkResourcesOperationsClient object to access its operations. + * The PrivateLinkResourcesClient object to access its operations. */ - private final PrivateLinkResourcesOperationsClient privateLinkResourcesOperations; + private final PrivateLinkResourcesClient privateLinkResources; /** - * Gets the PrivateLinkResourcesOperationsClient object to access its operations. + * Gets the PrivateLinkResourcesClient object to access its operations. * - * @return the PrivateLinkResourcesOperationsClient object. + * @return the PrivateLinkResourcesClient object. */ - public PrivateLinkResourcesOperationsClient getPrivateLinkResourcesOperations() { - return this.privateLinkResourcesOperations; + public PrivateLinkResourcesClient getPrivateLinkResources() { + return this.privateLinkResources; } /** @@ -815,21 +969,6 @@ public WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSql return this.workspaceManagedSqlServerRecoverableSqlPools; } - /** - * The WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. - */ - private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; - - /** - * Gets the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. - * - * @return the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object. - */ - public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient - getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() { - return this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; - } - /** * The WorkspacesClient object to access its operations. */ @@ -900,342 +1039,6 @@ public RestorableDroppedSqlPoolsClient getRestorableDroppedSqlPools() { return this.restorableDroppedSqlPools; } - /** - * The BigDataPoolsClient object to access its operations. - */ - private final BigDataPoolsClient bigDataPools; - - /** - * Gets the BigDataPoolsClient object to access its operations. - * - * @return the BigDataPoolsClient object. - */ - public BigDataPoolsClient getBigDataPools() { - return this.bigDataPools; - } - - /** - * The LibrariesClient object to access its operations. - */ - private final LibrariesClient libraries; - - /** - * Gets the LibrariesClient object to access its operations. - * - * @return the LibrariesClient object. - */ - public LibrariesClient getLibraries() { - return this.libraries; - } - - /** - * The LibrariesOperationsClient object to access its operations. - */ - private final LibrariesOperationsClient librariesOperations; - - /** - * Gets the LibrariesOperationsClient object to access its operations. - * - * @return the LibrariesOperationsClient object. - */ - public LibrariesOperationsClient getLibrariesOperations() { - return this.librariesOperations; - } - - /** - * The IntegrationRuntimesClient object to access its operations. - */ - private final IntegrationRuntimesClient integrationRuntimes; - - /** - * Gets the IntegrationRuntimesClient object to access its operations. - * - * @return the IntegrationRuntimesClient object. - */ - public IntegrationRuntimesClient getIntegrationRuntimes() { - return this.integrationRuntimes; - } - - /** - * The IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. - */ - private final IntegrationRuntimeNodeIpAddressOperationsClient integrationRuntimeNodeIpAddressOperations; - - /** - * Gets the IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. - * - * @return the IntegrationRuntimeNodeIpAddressOperationsClient object. - */ - public IntegrationRuntimeNodeIpAddressOperationsClient getIntegrationRuntimeNodeIpAddressOperations() { - return this.integrationRuntimeNodeIpAddressOperations; - } - - /** - * The IntegrationRuntimeObjectMetadatasClient object to access its operations. - */ - private final IntegrationRuntimeObjectMetadatasClient integrationRuntimeObjectMetadatas; - - /** - * Gets the IntegrationRuntimeObjectMetadatasClient object to access its operations. - * - * @return the IntegrationRuntimeObjectMetadatasClient object. - */ - public IntegrationRuntimeObjectMetadatasClient getIntegrationRuntimeObjectMetadatas() { - return this.integrationRuntimeObjectMetadatas; - } - - /** - * The IntegrationRuntimeNodesClient object to access its operations. - */ - private final IntegrationRuntimeNodesClient integrationRuntimeNodes; - - /** - * Gets the IntegrationRuntimeNodesClient object to access its operations. - * - * @return the IntegrationRuntimeNodesClient object. - */ - public IntegrationRuntimeNodesClient getIntegrationRuntimeNodes() { - return this.integrationRuntimeNodes; - } - - /** - * The IntegrationRuntimeCredentialsClient object to access its operations. - */ - private final IntegrationRuntimeCredentialsClient integrationRuntimeCredentials; - - /** - * Gets the IntegrationRuntimeCredentialsClient object to access its operations. - * - * @return the IntegrationRuntimeCredentialsClient object. - */ - public IntegrationRuntimeCredentialsClient getIntegrationRuntimeCredentials() { - return this.integrationRuntimeCredentials; - } - - /** - * The IntegrationRuntimeConnectionInfosClient object to access its operations. - */ - private final IntegrationRuntimeConnectionInfosClient integrationRuntimeConnectionInfos; - - /** - * Gets the IntegrationRuntimeConnectionInfosClient object to access its operations. - * - * @return the IntegrationRuntimeConnectionInfosClient object. - */ - public IntegrationRuntimeConnectionInfosClient getIntegrationRuntimeConnectionInfos() { - return this.integrationRuntimeConnectionInfos; - } - - /** - * The IntegrationRuntimeAuthKeysOperationsClient object to access its operations. - */ - private final IntegrationRuntimeAuthKeysOperationsClient integrationRuntimeAuthKeysOperations; - - /** - * Gets the IntegrationRuntimeAuthKeysOperationsClient object to access its operations. - * - * @return the IntegrationRuntimeAuthKeysOperationsClient object. - */ - public IntegrationRuntimeAuthKeysOperationsClient getIntegrationRuntimeAuthKeysOperations() { - return this.integrationRuntimeAuthKeysOperations; - } - - /** - * The IntegrationRuntimeMonitoringDatasClient object to access its operations. - */ - private final IntegrationRuntimeMonitoringDatasClient integrationRuntimeMonitoringDatas; - - /** - * Gets the IntegrationRuntimeMonitoringDatasClient object to access its operations. - * - * @return the IntegrationRuntimeMonitoringDatasClient object. - */ - public IntegrationRuntimeMonitoringDatasClient getIntegrationRuntimeMonitoringDatas() { - return this.integrationRuntimeMonitoringDatas; - } - - /** - * The IntegrationRuntimeStatusOperationsClient object to access its operations. - */ - private final IntegrationRuntimeStatusOperationsClient integrationRuntimeStatusOperations; - - /** - * Gets the IntegrationRuntimeStatusOperationsClient object to access its operations. - * - * @return the IntegrationRuntimeStatusOperationsClient object. - */ - public IntegrationRuntimeStatusOperationsClient getIntegrationRuntimeStatusOperations() { - return this.integrationRuntimeStatusOperations; - } - - /** - * The GetsClient object to access its operations. - */ - private final GetsClient gets; - - /** - * Gets the GetsClient object to access its operations. - * - * @return the GetsClient object. - */ - public GetsClient getGets() { - return this.gets; - } - - /** - * The SparkConfigurationsClient object to access its operations. - */ - private final SparkConfigurationsClient sparkConfigurations; - - /** - * Gets the SparkConfigurationsClient object to access its operations. - * - * @return the SparkConfigurationsClient object. - */ - public SparkConfigurationsClient getSparkConfigurations() { - return this.sparkConfigurations; - } - - /** - * The SparkConfigurationsOperationsClient object to access its operations. - */ - private final SparkConfigurationsOperationsClient sparkConfigurationsOperations; - - /** - * Gets the SparkConfigurationsOperationsClient object to access its operations. - * - * @return the SparkConfigurationsOperationsClient object. - */ - public SparkConfigurationsOperationsClient getSparkConfigurationsOperations() { - return this.sparkConfigurationsOperations; - } - - /** - * The KustoOperationsClient object to access its operations. - */ - private final KustoOperationsClient kustoOperations; - - /** - * Gets the KustoOperationsClient object to access its operations. - * - * @return the KustoOperationsClient object. - */ - public KustoOperationsClient getKustoOperations() { - return this.kustoOperations; - } - - /** - * The KustoPoolsClient object to access its operations. - */ - private final KustoPoolsClient kustoPools; - - /** - * Gets the KustoPoolsClient object to access its operations. - * - * @return the KustoPoolsClient object. - */ - public KustoPoolsClient getKustoPools() { - return this.kustoPools; - } - - /** - * The KustoPoolChildResourcesClient object to access its operations. - */ - private final KustoPoolChildResourcesClient kustoPoolChildResources; - - /** - * Gets the KustoPoolChildResourcesClient object to access its operations. - * - * @return the KustoPoolChildResourcesClient object. - */ - public KustoPoolChildResourcesClient getKustoPoolChildResources() { - return this.kustoPoolChildResources; - } - - /** - * The KustoPoolAttachedDatabaseConfigurationsClient object to access its operations. - */ - private final KustoPoolAttachedDatabaseConfigurationsClient kustoPoolAttachedDatabaseConfigurations; - - /** - * Gets the KustoPoolAttachedDatabaseConfigurationsClient object to access its operations. - * - * @return the KustoPoolAttachedDatabaseConfigurationsClient object. - */ - public KustoPoolAttachedDatabaseConfigurationsClient getKustoPoolAttachedDatabaseConfigurations() { - return this.kustoPoolAttachedDatabaseConfigurations; - } - - /** - * The KustoPoolDatabasesClient object to access its operations. - */ - private final KustoPoolDatabasesClient kustoPoolDatabases; - - /** - * Gets the KustoPoolDatabasesClient object to access its operations. - * - * @return the KustoPoolDatabasesClient object. - */ - public KustoPoolDatabasesClient getKustoPoolDatabases() { - return this.kustoPoolDatabases; - } - - /** - * The KustoPoolDataConnectionsClient object to access its operations. - */ - private final KustoPoolDataConnectionsClient kustoPoolDataConnections; - - /** - * Gets the KustoPoolDataConnectionsClient object to access its operations. - * - * @return the KustoPoolDataConnectionsClient object. - */ - public KustoPoolDataConnectionsClient getKustoPoolDataConnections() { - return this.kustoPoolDataConnections; - } - - /** - * The KustoPoolPrincipalAssignmentsClient object to access its operations. - */ - private final KustoPoolPrincipalAssignmentsClient kustoPoolPrincipalAssignments; - - /** - * Gets the KustoPoolPrincipalAssignmentsClient object to access its operations. - * - * @return the KustoPoolPrincipalAssignmentsClient object. - */ - public KustoPoolPrincipalAssignmentsClient getKustoPoolPrincipalAssignments() { - return this.kustoPoolPrincipalAssignments; - } - - /** - * The KustoPoolDatabasePrincipalAssignmentsClient object to access its operations. - */ - private final KustoPoolDatabasePrincipalAssignmentsClient kustoPoolDatabasePrincipalAssignments; - - /** - * Gets the KustoPoolDatabasePrincipalAssignmentsClient object to access its operations. - * - * @return the KustoPoolDatabasePrincipalAssignmentsClient object. - */ - public KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipalAssignments() { - return this.kustoPoolDatabasePrincipalAssignments; - } - - /** - * The KustoPoolPrivateLinkResourcesOperationsClient object to access its operations. - */ - private final KustoPoolPrivateLinkResourcesOperationsClient kustoPoolPrivateLinkResourcesOperations; - - /** - * Gets the KustoPoolPrivateLinkResourcesOperationsClient object to access its operations. - * - * @return the KustoPoolPrivateLinkResourcesOperationsClient object. - */ - public KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkResourcesOperations() { - return this.kustoPoolPrivateLinkResourcesOperations; - } - /** * Initializes an instance of SynapseManagementClient client. * @@ -1253,12 +1056,24 @@ public KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkReso this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.azureADOnlyAuthentications = new AzureADOnlyAuthenticationsClientImpl(this); + this.apiVersion = "2021-03-01"; + this.bigDataPools = new BigDataPoolsClientImpl(this); this.operations = new OperationsClientImpl(this); this.ipFirewallRules = new IpFirewallRulesClientImpl(this); + this.integrationRuntimes = new IntegrationRuntimesClientImpl(this); + this.integrationRuntimeNodeIpAddressOperations = new IntegrationRuntimeNodeIpAddressOperationsClientImpl(this); + this.integrationRuntimeObjectMetadatas = new IntegrationRuntimeObjectMetadatasClientImpl(this); + this.integrationRuntimeNodes = new IntegrationRuntimeNodesClientImpl(this); + this.integrationRuntimeCredentials = new IntegrationRuntimeCredentialsClientImpl(this); + this.integrationRuntimeConnectionInfos = new IntegrationRuntimeConnectionInfosClientImpl(this); + this.integrationRuntimeAuthKeysOperations = new IntegrationRuntimeAuthKeysOperationsClientImpl(this); + this.integrationRuntimeMonitoringDatas = new IntegrationRuntimeMonitoringDatasClientImpl(this); + this.integrationRuntimeStatusOperations = new IntegrationRuntimeStatusOperationsClientImpl(this); this.keys = new KeysClientImpl(this); + this.libraries = new LibrariesClientImpl(this); + this.librariesOperations = new LibrariesOperationsClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); - this.privateLinkResourcesOperations = new PrivateLinkResourcesOperationsClientImpl(this); + this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); this.privateLinkHubPrivateLinkResources = new PrivateLinkHubPrivateLinkResourcesClientImpl(this); this.privateLinkHubs = new PrivateLinkHubsClientImpl(this); this.privateEndpointConnectionsPrivateLinkHubs = new PrivateEndpointConnectionsPrivateLinkHubsClientImpl(this); @@ -1305,38 +1120,12 @@ public KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkReso this.workspaceManagedSqlServerUsages = new WorkspaceManagedSqlServerUsagesClientImpl(this); this.workspaceManagedSqlServerRecoverableSqlPools = new WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl(this); - this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings - = new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl(this); this.workspaces = new WorkspacesClientImpl(this); this.workspaceAadAdmins = new WorkspaceAadAdminsClientImpl(this); this.workspaceSqlAadAdmins = new WorkspaceSqlAadAdminsClientImpl(this); this.workspaceManagedIdentitySqlControlSettings = new WorkspaceManagedIdentitySqlControlSettingsClientImpl(this); this.restorableDroppedSqlPools = new RestorableDroppedSqlPoolsClientImpl(this); - this.bigDataPools = new BigDataPoolsClientImpl(this); - this.libraries = new LibrariesClientImpl(this); - this.librariesOperations = new LibrariesOperationsClientImpl(this); - this.integrationRuntimes = new IntegrationRuntimesClientImpl(this); - this.integrationRuntimeNodeIpAddressOperations = new IntegrationRuntimeNodeIpAddressOperationsClientImpl(this); - this.integrationRuntimeObjectMetadatas = new IntegrationRuntimeObjectMetadatasClientImpl(this); - this.integrationRuntimeNodes = new IntegrationRuntimeNodesClientImpl(this); - this.integrationRuntimeCredentials = new IntegrationRuntimeCredentialsClientImpl(this); - this.integrationRuntimeConnectionInfos = new IntegrationRuntimeConnectionInfosClientImpl(this); - this.integrationRuntimeAuthKeysOperations = new IntegrationRuntimeAuthKeysOperationsClientImpl(this); - this.integrationRuntimeMonitoringDatas = new IntegrationRuntimeMonitoringDatasClientImpl(this); - this.integrationRuntimeStatusOperations = new IntegrationRuntimeStatusOperationsClientImpl(this); - this.gets = new GetsClientImpl(this); - this.sparkConfigurations = new SparkConfigurationsClientImpl(this); - this.sparkConfigurationsOperations = new SparkConfigurationsOperationsClientImpl(this); - this.kustoOperations = new KustoOperationsClientImpl(this); - this.kustoPools = new KustoPoolsClientImpl(this); - this.kustoPoolChildResources = new KustoPoolChildResourcesClientImpl(this); - this.kustoPoolAttachedDatabaseConfigurations = new KustoPoolAttachedDatabaseConfigurationsClientImpl(this); - this.kustoPoolDatabases = new KustoPoolDatabasesClientImpl(this); - this.kustoPoolDataConnections = new KustoPoolDataConnectionsClientImpl(this); - this.kustoPoolPrincipalAssignments = new KustoPoolPrincipalAssignmentsClientImpl(this); - this.kustoPoolDatabasePrincipalAssignments = new KustoPoolDatabasePrincipalAssignmentsClientImpl(this); - this.kustoPoolPrivateLinkResourcesOperations = new KustoPoolPrivateLinkResourcesOperationsClientImpl(this); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java index 3dd8dabe3dd3..6f7ea41de2b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java @@ -122,11 +122,10 @@ private Mono> getWithResponseAsync(String r if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -159,11 +158,10 @@ private Mono> getWithResponseAsync(String r if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** @@ -248,10 +246,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { aadAdminInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, aadAdminInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -292,11 +289,10 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { aadAdminInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, aadAdminInfo, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, aadAdminInfo, accept, context); } /** @@ -476,10 +472,9 @@ private Mono>> deleteWithResponseAsync(String resource if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -513,11 +508,10 @@ private Mono>> deleteWithResponseAsync(String resource if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java index 1e0291cd8874..30ef290938d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java @@ -8,7 +8,6 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceInner; -import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; import com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails; import com.azure.resourcemanager.synapse.models.EncryptionDetails; import com.azure.resourcemanager.synapse.models.ManagedIdentity; @@ -116,8 +115,13 @@ public UUID workspaceUid() { return this.innerModel().workspaceUid(); } - public Object extraProperties() { - return this.innerModel().extraProperties(); + public Map extraProperties() { + Map inner = this.innerModel().extraProperties(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } } public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { @@ -140,27 +144,6 @@ public WorkspacePublicNetworkAccess publicNetworkAccess() { return this.innerModel().publicNetworkAccess(); } - public CspWorkspaceAdminProperties cspWorkspaceAdminProperties() { - return this.innerModel().cspWorkspaceAdminProperties(); - } - - public Map settings() { - Map inner = this.innerModel().settings(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public Boolean azureADOnlyAuthentication() { - return this.innerModel().azureADOnlyAuthentication(); - } - - public Boolean trustedServiceBypassEnabled() { - return this.innerModel().trustedServiceBypassEnabled(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -314,6 +297,11 @@ public WorkspaceImpl withVirtualNetworkProfile(VirtualNetworkProfile virtualNetw return this; } + public WorkspaceImpl withConnectivityEndpoints(Map connectivityEndpoints) { + this.innerModel().withConnectivityEndpoints(connectivityEndpoints); + return this; + } + public WorkspaceImpl withManagedVirtualNetwork(String managedVirtualNetwork) { this.innerModel().withManagedVirtualNetwork(managedVirtualNetwork); return this; @@ -377,21 +365,6 @@ public WorkspaceImpl withPublicNetworkAccess(WorkspacePublicNetworkAccess public } } - public WorkspaceImpl withCspWorkspaceAdminProperties(CspWorkspaceAdminProperties cspWorkspaceAdminProperties) { - this.innerModel().withCspWorkspaceAdminProperties(cspWorkspaceAdminProperties); - return this; - } - - public WorkspaceImpl withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication) { - this.innerModel().withAzureADOnlyAuthentication(azureADOnlyAuthentication); - return this; - } - - public WorkspaceImpl withTrustedServiceBypassEnabled(Boolean trustedServiceBypassEnabled) { - this.innerModel().withTrustedServiceBypassEnabled(trustedServiceBypassEnabled); - return this; - } - private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java index 7b019e8ce735..149a28ff1c68 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java @@ -115,11 +115,10 @@ private Mono> getWithRespo if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -153,11 +152,10 @@ private Mono> getWithRespo if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** @@ -243,10 +241,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { managedIdentitySqlControlSettings.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, managedIdentitySqlControlSettings, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -290,11 +287,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { managedIdentitySqlControlSettings.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, managedIdentitySqlControlSettings, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, managedIdentitySqlControlSettings, + accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java index 75495a8235cc..0ae9bdd2f1e0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java @@ -147,11 +147,9 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, blobAuditingPolicyName, accept, context)) + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, blobAuditingPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -192,11 +190,10 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, blobAuditingPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, blobAuditingPolicyName, accept, context); } /** @@ -299,10 +296,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -351,11 +347,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, + accept, context); } /** @@ -573,10 +569,9 @@ private Mono> listByWorkspaceSingle if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -615,12 +610,11 @@ private Mono> listByWorkspaceSingle if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java deleted file mode 100644 index cfabc75e7ba9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java +++ /dev/null @@ -1,770 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettingsListResult; -import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in - * WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient. - */ -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl - implements WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient { - /** - * The proxy service used to perform REST calls. - */ - private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService service; - - /** - * The service client containing this operation class. - */ - private final SynapseManagementClientImpl client; - - /** - * Initializes an instance of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl(SynapseManagementClientImpl client) { - this.service = RestProxy.create(WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService.class, - client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for - * SynapseManagementClientWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings to be used by the proxy service to - * perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "SynapseManagementCli") - public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService { - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dedicatedSQLminimalTlsSettingsName") DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - @BodyParam("application/json") DedicatedSQLminimalTlsSettingsInner parameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dedicatedSQLminimalTlsSettingsName") String dedicatedSQLminimalTlsSettingsName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dedicatedSQLminimalTlsSettingsName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dedicatedSQLminimalTlsSettingsName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, accept, context); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DedicatedSQLminimalTlsSettingsInner> - beginUpdateAsync(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), DedicatedSQLminimalTlsSettingsInner.class, - DedicatedSQLminimalTlsSettingsInner.class, this.client.getContext()); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DedicatedSQLminimalTlsSettingsInner> - beginUpdateAsync(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, - dedicatedSQLminimalTlsSettingsName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), DedicatedSQLminimalTlsSettingsInner.class, - DedicatedSQLminimalTlsSettingsInner.class, context); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( - String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters) { - return this.beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters) - .getSyncPoller(); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( - String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context) { - return this - .beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context) - .getSyncPoller(); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters) { - return beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context) { - return beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DedicatedSQLminimalTlsSettingsInner update(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters) { - return updateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters).block(); - } - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DedicatedSQLminimalTlsSettingsInner update(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context) { - return updateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context) - .block(); - } - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String workspaceName, String dedicatedSQLminimalTlsSettingsName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dedicatedSQLminimalTlsSettingsName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dedicatedSQLminimalTlsSettingsName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, dedicatedSQLminimalTlsSettingsName, accept, context); - } - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName) { - return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, context) - .block(); - } - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DedicatedSQLminimalTlsSettingsInner get(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName) { - return getWithResponse(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, Context.NONE) - .getValue(); - } - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String workspaceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String workspaceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2021-06-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String workspaceName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(listAsync(resourceGroupName, workspaceName)); - } - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String workspaceName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java deleted file mode 100644 index 117f7ceaba30..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; -import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; -import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; - -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl - implements WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings { - private static final ClientLogger LOGGER - = new ClientLogger(WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.class); - - private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient innerClient; - - private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - - public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl( - WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient innerClient, - com.azure.resourcemanager.synapse.SynapseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public DedicatedSQLminimalTlsSettings update(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters) { - DedicatedSQLminimalTlsSettingsInner inner = this.serviceClient() - .update(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters); - if (inner != null) { - return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); - } else { - return null; - } - } - - public DedicatedSQLminimalTlsSettings update(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context) { - DedicatedSQLminimalTlsSettingsInner inner = this.serviceClient() - .update(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context); - if (inner != null) { - return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new DedicatedSQLminimalTlsSettingsImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public DedicatedSQLminimalTlsSettings get(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName) { - DedicatedSQLminimalTlsSettingsInner inner - = this.serviceClient().get(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName); - if (inner != null) { - return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable list(String resourceGroupName, String workspaceName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, workspaceName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new DedicatedSQLminimalTlsSettingsImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String workspaceName, - Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, workspaceName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new DedicatedSQLminimalTlsSettingsImpl(inner1, this.manager())); - } - - private WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.synapse.SynapseManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java index 58b5eafdc14d..0deb07c0d281 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java @@ -157,11 +157,11 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, encryptionProtectorName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, encryptionProtectorName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -202,11 +202,10 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, encryptionProtectorName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, encryptionProtectorName, accept, context); } /** @@ -309,10 +308,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, encryptionProtectorName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -361,11 +359,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, encryptionProtectorName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, encryptionProtectorName, parameters, + accept, context); } /** @@ -582,11 +580,10 @@ private Mono> listSinglePageAsync(String if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -624,12 +621,11 @@ private Mono> listSinglePageAsync(String if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -747,9 +743,8 @@ private Mono>> revalidateWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; return FluxUtil - .withContext(context -> service.revalidate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.revalidate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, encryptionProtectorName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -790,10 +785,9 @@ private Mono>> revalidateWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.revalidate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, encryptionProtectorName, context); + return service.revalidate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, encryptionProtectorName, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java index 5c5b0cbf4447..0b8973b5395c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java @@ -148,11 +148,9 @@ private Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, blobAuditingPolicyName, accept, context)) + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, blobAuditingPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -193,11 +191,10 @@ private Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, blobAuditingPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, blobAuditingPolicyName, accept, context); } /** @@ -302,10 +299,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -355,11 +351,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, + accept, context); } /** @@ -582,10 +578,9 @@ public ExtendedServerBlobAuditingPolicyInner createOrUpdate(String resourceGroup if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -624,12 +619,11 @@ public ExtendedServerBlobAuditingPolicyInner createOrUpdate(String resourceGroup if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java index 4e2d41734ae4..b41aac3839b2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java @@ -122,11 +122,10 @@ private Mono> listSinglePageAsync(String if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -164,12 +163,11 @@ private Mono> listSinglePageAsync(String if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -287,11 +285,10 @@ private Mono> getWithResponseAsync(String reso if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -331,11 +328,10 @@ private Mono> getWithResponseAsync(String reso if (sqlPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, sqlPoolName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java index 1b5cb344d7e2..8430ed60f78e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java @@ -147,11 +147,11 @@ private Mono> getWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, securityAlertPolicyName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, securityAlertPolicyName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -192,11 +192,10 @@ private Mono> getWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, securityAlertPolicyName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, securityAlertPolicyName, accept, context); } /** @@ -301,10 +300,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, securityAlertPolicyName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -354,11 +352,11 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, securityAlertPolicyName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, securityAlertPolicyName, parameters, + accept, context); } /** @@ -579,11 +577,10 @@ private Mono> listSinglePageAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -621,12 +618,11 @@ private Mono> listSinglePageAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java index 862d49f5a07e..10664c1e99e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java @@ -109,11 +109,10 @@ private Mono> listSinglePageAsync(String resourc if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -151,12 +150,11 @@ private Mono> listSinglePageAsync(String resourc if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java index 0ac2bc83f449..531a93fd7454 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java @@ -154,11 +154,11 @@ private Mono> getWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, vulnerabilityAssessmentName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, vulnerabilityAssessmentName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -199,11 +199,10 @@ private Mono> getWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, vulnerabilityAssessmentName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, vulnerabilityAssessmentName, accept, context); } /** @@ -307,10 +306,9 @@ private Mono> createOrUpdateWithRes } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -359,11 +357,11 @@ private Mono> createOrUpdateWithRes } else { parameters.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, + accept, context); } /** @@ -466,11 +464,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, vulnerabilityAssessmentName, context)) + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, vulnerabilityAssessmentName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -510,10 +505,9 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error( new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, vulnerabilityAssessmentName, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, vulnerabilityAssessmentName, context); } /** @@ -605,11 +599,10 @@ private Mono> listSinglePageAs if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -647,12 +640,11 @@ private Mono> listSinglePageAs if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java index 15de88328ccf..d9b7f32f23c3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java @@ -123,11 +123,10 @@ private Mono> getWithResponseAsync(String r if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -161,11 +160,10 @@ private Mono> getWithResponseAsync(String r if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** @@ -250,10 +248,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { aadAdminInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, aadAdminInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -294,11 +291,10 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { aadAdminInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, aadAdminInfo, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, aadAdminInfo, accept, context); } /** @@ -478,10 +474,9 @@ private Mono>> deleteWithResponseAsync(String resource if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -515,11 +510,10 @@ private Mono>> deleteWithResponseAsync(String resource if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java index 9a3e4bf43418..8b98d4fa9009 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java @@ -166,10 +166,9 @@ private Mono> listByResourceGroupSinglePageAsync(S return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -201,12 +200,11 @@ private Mono> listByResourceGroupSinglePageAsync(S return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, accept, context) + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -299,10 +297,9 @@ private Mono> getByResourceGroupWithResponseAsync(Strin if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -336,11 +333,10 @@ private Mono> getByResourceGroupWithResponseAsync(Strin if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); } /** @@ -426,10 +422,9 @@ private Mono>> updateWithResponseAsync(String resource } else { workspacePatchInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, workspacePatchInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -470,11 +465,10 @@ private Mono>> updateWithResponseAsync(String resource } else { workspacePatchInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, workspacePatchInfo, accept, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, workspacePatchInfo, accept, context); } /** @@ -660,10 +654,9 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { workspaceInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, workspaceInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -703,11 +696,10 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { workspaceInfo.validate(); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, workspaceName, workspaceInfo, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, workspaceInfo, accept, context); } /** @@ -866,7 +858,7 @@ public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName) { @@ -885,10 +877,9 @@ private Mono>> deleteWithResponseAsync(String resource if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -902,7 +893,7 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, @@ -922,11 +913,10 @@ private Mono>> deleteWithResponseAsync(String resource if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - workspaceName, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** @@ -937,14 +927,13 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a workspace. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginDeleteAsync(String resourceGroupName, - String workspaceName) { + private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - WorkspaceInner.class, WorkspaceInner.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + this.client.getContext()); } /** @@ -956,15 +945,15 @@ private PollerFlux, WorkspaceInner> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a workspace. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginDeleteAsync(String resourceGroupName, - String workspaceName, Context context) { + private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName, + Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - WorkspaceInner.class, WorkspaceInner.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Object.class, Object.class, + context); } /** @@ -975,11 +964,10 @@ private PollerFlux, WorkspaceInner> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a workspace. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginDelete(String resourceGroupName, - String workspaceName) { + public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName) { return this.beginDeleteAsync(resourceGroupName, workspaceName).getSyncPoller(); } @@ -992,11 +980,11 @@ public SyncPoller, WorkspaceInner> beginDelete(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a workspace. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginDelete(String resourceGroupName, - String workspaceName, Context context) { + public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, + Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, context).getSyncPoller(); } @@ -1008,10 +996,10 @@ public SyncPoller, WorkspaceInner> beginDelete(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName) { return beginDeleteAsync(resourceGroupName, workspaceName).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1024,10 +1012,10 @@ private Mono deleteAsync(String resourceGroupName, String worksp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace on successful completion of {@link Mono}. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, Context context) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1040,10 +1028,10 @@ private Mono deleteAsync(String resourceGroupName, String worksp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner delete(String resourceGroupName, String workspaceName) { + public Object delete(String resourceGroupName, String workspaceName) { return deleteAsync(resourceGroupName, workspaceName).block(); } @@ -1056,10 +1044,10 @@ public WorkspaceInner delete(String resourceGroupName, String workspaceName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace. + * @return any object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner delete(String resourceGroupName, String workspaceName, Context context) { + public Object delete(String resourceGroupName, String workspaceName, Context context) { return deleteAsync(resourceGroupName, workspaceName, context).block(); } @@ -1080,11 +1068,10 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1109,10 +1096,11 @@ private Mono> listSinglePageAsync(Context context) return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java index 188cfcd8b989..7a4f99c85100 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java @@ -58,22 +58,12 @@ public Workspace getByResourceGroup(String resourceGroupName, String workspaceNa } } - public Workspace deleteByResourceGroup(String resourceGroupName, String workspaceName) { - WorkspaceInner inner = this.serviceClient().delete(resourceGroupName, workspaceName); - if (inner != null) { - return new WorkspaceImpl(inner, this.manager()); - } else { - return null; - } + public Object deleteByResourceGroup(String resourceGroupName, String workspaceName) { + return this.serviceClient().delete(resourceGroupName, workspaceName); } - public Workspace delete(String resourceGroupName, String workspaceName, Context context) { - WorkspaceInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, context); - if (inner != null) { - return new WorkspaceImpl(inner, this.manager()); - } else { - return null; - } + public Object delete(String resourceGroupName, String workspaceName, Context context) { + return this.serviceClient().delete(resourceGroupName, workspaceName, context); } public PagedIterable list() { @@ -114,7 +104,7 @@ public Response getByIdWithResponse(String id, Context context) { return this.getByResourceGroupWithResponse(resourceGroupName, workspaceName, context); } - public Workspace deleteById(String id) { + public Object deleteById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -128,7 +118,7 @@ public Workspace deleteById(String id) { return this.delete(resourceGroupName, workspaceName, Context.NONE); } - public Workspace deleteByIdWithResponse(String id, Context context) { + public Object deleteByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java deleted file mode 100644 index e51d7308f248..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -/** - * Actual state. - */ -public enum ActualState { - /** - * Enum value Enabling. - */ - ENABLING("Enabling"), - - /** - * Enum value Enabled. - */ - ENABLED("Enabled"), - - /** - * Enum value Disabling. - */ - DISABLING("Disabling"), - - /** - * Enum value Disabled. - */ - DISABLED("Disabled"), - - /** - * Enum value Unknown. - */ - UNKNOWN("Unknown"); - - /** - * The actual serialized value for a ActualState instance. - */ - private final String value; - - ActualState(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a ActualState instance. - * - * @param value the serialized value to parse. - * @return the parsed ActualState object, or null if unable to parse. - */ - public static ActualState fromString(String value) { - if (value == null) { - return null; - } - ActualState[] items = ActualState.values(); - for (ActualState item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - /** - * {@inheritDoc} - */ - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java deleted file mode 100644 index ae4534dc990f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java +++ /dev/null @@ -1,364 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import java.util.List; - -/** - * An immutable client-side representation of AttachedDatabaseConfiguration. - */ -public interface AttachedDatabaseConfiguration { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: Resource location. - * - * @return the location value. - */ - String location(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - ResourceProvisioningState provisioningState(); - - /** - * Gets the databaseName property: The name of the database which you would like to attach, use * if you want to - * follow all current and future databases. - * - * @return the databaseName value. - */ - String databaseName(); - - /** - * Gets the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to - * attach reside. - * - * @return the kustoPoolResourceId value. - */ - String kustoPoolResourceId(); - - /** - * Gets the attachedDatabaseNames property: The list of databases from the clusterResourceId which are currently - * attached to the kusto pool. - * - * @return the attachedDatabaseNames value. - */ - List attachedDatabaseNames(); - - /** - * Gets the defaultPrincipalsModificationKind property: The default principals modification kind. - * - * @return the defaultPrincipalsModificationKind value. - */ - DefaultPrincipalsModificationKind defaultPrincipalsModificationKind(); - - /** - * Gets the tableLevelSharingProperties property: Table level sharing specifications. - * - * @return the tableLevelSharingProperties value. - */ - TableLevelSharingProperties tableLevelSharingProperties(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner object. - * - * @return the inner object. - */ - AttachedDatabaseConfigurationInner innerModel(); - - /** - * The entirety of the AttachedDatabaseConfiguration definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The AttachedDatabaseConfiguration definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the AttachedDatabaseConfiguration definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the AttachedDatabaseConfiguration definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies workspaceName, kustoPoolName, resourceGroupName. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingKustoPool(String workspaceName, String kustoPoolName, String resourceGroupName); - } - - /** - * The stage of the AttachedDatabaseConfiguration definition which contains all the minimum required properties - * for the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithLocation, DefinitionStages.WithDatabaseName, - DefinitionStages.WithKustoPoolResourceId, DefinitionStages.WithDefaultPrincipalsModificationKind, - DefinitionStages.WithTableLevelSharingProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - AttachedDatabaseConfiguration create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - AttachedDatabaseConfiguration create(Context context); - } - - /** - * The stage of the AttachedDatabaseConfiguration definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location Resource location. - * @return the next definition stage. - */ - WithCreate withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location Resource location. - * @return the next definition stage. - */ - WithCreate withRegion(String location); - } - - /** - * The stage of the AttachedDatabaseConfiguration definition allowing to specify databaseName. - */ - interface WithDatabaseName { - /** - * Specifies the databaseName property: The name of the database which you would like to attach, use * if - * you want to follow all current and future databases.. - * - * @param databaseName The name of the database which you would like to attach, use * if you want to follow - * all current and future databases. - * @return the next definition stage. - */ - WithCreate withDatabaseName(String databaseName); - } - - /** - * The stage of the AttachedDatabaseConfiguration definition allowing to specify kustoPoolResourceId. - */ - interface WithKustoPoolResourceId { - /** - * Specifies the kustoPoolResourceId property: The resource id of the kusto pool where the databases you - * would like to attach reside.. - * - * @param kustoPoolResourceId The resource id of the kusto pool where the databases you would like to attach - * reside. - * @return the next definition stage. - */ - WithCreate withKustoPoolResourceId(String kustoPoolResourceId); - } - - /** - * The stage of the AttachedDatabaseConfiguration definition allowing to specify - * defaultPrincipalsModificationKind. - */ - interface WithDefaultPrincipalsModificationKind { - /** - * Specifies the defaultPrincipalsModificationKind property: The default principals modification kind. - * - * @param defaultPrincipalsModificationKind The default principals modification kind. - * @return the next definition stage. - */ - WithCreate withDefaultPrincipalsModificationKind( - DefaultPrincipalsModificationKind defaultPrincipalsModificationKind); - } - - /** - * The stage of the AttachedDatabaseConfiguration definition allowing to specify tableLevelSharingProperties. - */ - interface WithTableLevelSharingProperties { - /** - * Specifies the tableLevelSharingProperties property: Table level sharing specifications. - * - * @param tableLevelSharingProperties Table level sharing specifications. - * @return the next definition stage. - */ - WithCreate withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties); - } - } - - /** - * Begins update for the AttachedDatabaseConfiguration resource. - * - * @return the stage of resource update. - */ - AttachedDatabaseConfiguration.Update update(); - - /** - * The template for AttachedDatabaseConfiguration update. - */ - interface Update extends UpdateStages.WithDatabaseName, UpdateStages.WithKustoPoolResourceId, - UpdateStages.WithDefaultPrincipalsModificationKind, UpdateStages.WithTableLevelSharingProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - AttachedDatabaseConfiguration apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - AttachedDatabaseConfiguration apply(Context context); - } - - /** - * The AttachedDatabaseConfiguration update stages. - */ - interface UpdateStages { - /** - * The stage of the AttachedDatabaseConfiguration update allowing to specify databaseName. - */ - interface WithDatabaseName { - /** - * Specifies the databaseName property: The name of the database which you would like to attach, use * if - * you want to follow all current and future databases.. - * - * @param databaseName The name of the database which you would like to attach, use * if you want to follow - * all current and future databases. - * @return the next definition stage. - */ - Update withDatabaseName(String databaseName); - } - - /** - * The stage of the AttachedDatabaseConfiguration update allowing to specify kustoPoolResourceId. - */ - interface WithKustoPoolResourceId { - /** - * Specifies the kustoPoolResourceId property: The resource id of the kusto pool where the databases you - * would like to attach reside.. - * - * @param kustoPoolResourceId The resource id of the kusto pool where the databases you would like to attach - * reside. - * @return the next definition stage. - */ - Update withKustoPoolResourceId(String kustoPoolResourceId); - } - - /** - * The stage of the AttachedDatabaseConfiguration update allowing to specify defaultPrincipalsModificationKind. - */ - interface WithDefaultPrincipalsModificationKind { - /** - * Specifies the defaultPrincipalsModificationKind property: The default principals modification kind. - * - * @param defaultPrincipalsModificationKind The default principals modification kind. - * @return the next definition stage. - */ - Update withDefaultPrincipalsModificationKind( - DefaultPrincipalsModificationKind defaultPrincipalsModificationKind); - } - - /** - * The stage of the AttachedDatabaseConfiguration update allowing to specify tableLevelSharingProperties. - */ - interface WithTableLevelSharingProperties { - /** - * Specifies the tableLevelSharingProperties property: Table level sharing specifications. - * - * @param tableLevelSharingProperties Table level sharing specifications. - * @return the next definition stage. - */ - Update withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - AttachedDatabaseConfiguration refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - AttachedDatabaseConfiguration refresh(Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java deleted file mode 100644 index 0e721914a808..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import java.io.IOException; -import java.util.List; - -/** - * The list attached database configurations operation response. - */ -@Fluent -public final class AttachedDatabaseConfigurationListResult - implements JsonSerializable { - /* - * The list of attached database configurations. - */ - private List value; - - /** - * Creates an instance of AttachedDatabaseConfigurationListResult class. - */ - public AttachedDatabaseConfigurationListResult() { - } - - /** - * Get the value property: The list of attached database configurations. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of attached database configurations. - * - * @param value the value value to set. - * @return the AttachedDatabaseConfigurationListResult object itself. - */ - public AttachedDatabaseConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AttachedDatabaseConfigurationListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AttachedDatabaseConfigurationListResult if the JsonReader was pointing to an instance of - * it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the AttachedDatabaseConfigurationListResult. - */ - public static AttachedDatabaseConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AttachedDatabaseConfigurationListResult deserializedAttachedDatabaseConfigurationListResult - = new AttachedDatabaseConfigurationListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> AttachedDatabaseConfigurationInner.fromJson(reader1)); - deserializedAttachedDatabaseConfigurationListResult.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedAttachedDatabaseConfigurationListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentication.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentication.java deleted file mode 100644 index 52b820ac5a51..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentication.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import java.time.OffsetDateTime; - -/** - * An immutable client-side representation of AzureADOnlyAuthentication. - */ -public interface AzureADOnlyAuthentication { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * - * @return the azureADOnlyAuthentication value. - */ - boolean azureADOnlyAuthentication(); - - /** - * Gets the state property: property configuration state. - * - * @return the state value. - */ - StateValue state(); - - /** - * Gets the creationDate property: property configuration date. - * - * @return the creationDate value. - */ - OffsetDateTime creationDate(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner object. - * - * @return the inner object. - */ - AzureADOnlyAuthenticationInner innerModel(); - - /** - * The entirety of the AzureADOnlyAuthentication definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The AzureADOnlyAuthentication definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the AzureADOnlyAuthentication definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the AzureADOnlyAuthentication definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, workspaceName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @return the next definition stage. - */ - WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); - } - - /** - * The stage of the AzureADOnlyAuthentication definition which contains all the minimum required properties for - * the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithAzureADOnlyAuthentication { - /** - * Executes the create request. - * - * @return the created resource. - */ - AzureADOnlyAuthentication create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - AzureADOnlyAuthentication create(Context context); - } - - /** - * The stage of the AzureADOnlyAuthentication definition allowing to specify azureADOnlyAuthentication. - */ - interface WithAzureADOnlyAuthentication { - /** - * Specifies the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.. - * - * @param azureADOnlyAuthentication Azure Active Directory only Authentication enabled. - * @return the next definition stage. - */ - WithCreate withAzureADOnlyAuthentication(boolean azureADOnlyAuthentication); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - AzureADOnlyAuthentication refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - AzureADOnlyAuthentication refresh(Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java deleted file mode 100644 index c6d0afe19483..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import java.io.IOException; -import java.util.List; - -/** - * A list of active directory only authentications. - */ -@Immutable -public final class AzureADOnlyAuthenticationListResult - implements JsonSerializable { - /* - * Array of results. - */ - private List value; - - /* - * Link to retrieve next page of results. - */ - private String nextLink; - - /** - * Creates an instance of AzureADOnlyAuthenticationListResult class. - */ - public AzureADOnlyAuthenticationListResult() { - } - - /** - * Get the value property: Array of results. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: Link to retrieve next page of results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AzureADOnlyAuthenticationListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AzureADOnlyAuthenticationListResult if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the AzureADOnlyAuthenticationListResult. - */ - public static AzureADOnlyAuthenticationListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AzureADOnlyAuthenticationListResult deserializedAzureADOnlyAuthenticationListResult - = new AzureADOnlyAuthenticationListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> AzureADOnlyAuthenticationInner.fromJson(reader1)); - deserializedAzureADOnlyAuthenticationListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedAzureADOnlyAuthenticationListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedAzureADOnlyAuthenticationListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationName.java deleted file mode 100644 index 47996be4846f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationName.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Defines values for AzureADOnlyAuthenticationName. - */ -public final class AzureADOnlyAuthenticationName extends ExpandableStringEnum { - /** - * Static value default for AzureADOnlyAuthenticationName. - */ - public static final AzureADOnlyAuthenticationName DEFAULT = fromString("default"); - - /** - * Creates a new instance of AzureADOnlyAuthenticationName value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AzureADOnlyAuthenticationName() { - } - - /** - * Creates or finds a AzureADOnlyAuthenticationName from its string representation. - * - * @param name a name to look for. - * @return the corresponding AzureADOnlyAuthenticationName. - */ - public static AzureADOnlyAuthenticationName fromString(String name) { - return fromString(name, AzureADOnlyAuthenticationName.class); - } - - /** - * Gets known AzureADOnlyAuthenticationName values. - * - * @return known AzureADOnlyAuthenticationName values. - */ - public static Collection values() { - return values(AzureADOnlyAuthenticationName.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java deleted file mode 100644 index c18fa9faa485..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of AzureADOnlyAuthentications. - */ -public interface AzureADOnlyAuthentications { - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context); - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param azureADOnlyAuthenticationName name of the property. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property. - */ - AzureADOnlyAuthentication get(String resourceGroupName, String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String workspaceName); - - /** - * Gets a list of Azure Active Directory only authentication property - * - * Gets a list of Azure Active Directory only authentication property for a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String workspaceName, Context context); - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property along with {@link Response}. - */ - AzureADOnlyAuthentication getById(String id); - - /** - * Get Azure Active Directory only authentication property - * - * Gets a Azure Active Directory only authentication property. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Azure Active Directory only authentication property along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new AzureADOnlyAuthentication resource. - * - * @param name resource name. - * @return the first stage of the new AzureADOnlyAuthentication definition. - */ - AzureADOnlyAuthentication.DefinitionStages.Blank define(AzureADOnlyAuthenticationName name); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java deleted file mode 100644 index 99b508429c19..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Azure capacity definition. - */ -@Fluent -public final class AzureCapacity implements JsonSerializable { - /* - * Scale type. - */ - private AzureScaleType scaleType; - - /* - * Minimum allowed capacity. - */ - private int minimum; - - /* - * Maximum allowed capacity. - */ - private int maximum; - - /* - * The default capacity that would be used. - */ - private int defaultProperty; - - /** - * Creates an instance of AzureCapacity class. - */ - public AzureCapacity() { - } - - /** - * Get the scaleType property: Scale type. - * - * @return the scaleType value. - */ - public AzureScaleType scaleType() { - return this.scaleType; - } - - /** - * Set the scaleType property: Scale type. - * - * @param scaleType the scaleType value to set. - * @return the AzureCapacity object itself. - */ - public AzureCapacity withScaleType(AzureScaleType scaleType) { - this.scaleType = scaleType; - return this; - } - - /** - * Get the minimum property: Minimum allowed capacity. - * - * @return the minimum value. - */ - public int minimum() { - return this.minimum; - } - - /** - * Set the minimum property: Minimum allowed capacity. - * - * @param minimum the minimum value to set. - * @return the AzureCapacity object itself. - */ - public AzureCapacity withMinimum(int minimum) { - this.minimum = minimum; - return this; - } - - /** - * Get the maximum property: Maximum allowed capacity. - * - * @return the maximum value. - */ - public int maximum() { - return this.maximum; - } - - /** - * Set the maximum property: Maximum allowed capacity. - * - * @param maximum the maximum value to set. - * @return the AzureCapacity object itself. - */ - public AzureCapacity withMaximum(int maximum) { - this.maximum = maximum; - return this; - } - - /** - * Get the defaultProperty property: The default capacity that would be used. - * - * @return the defaultProperty value. - */ - public int defaultProperty() { - return this.defaultProperty; - } - - /** - * Set the defaultProperty property: The default capacity that would be used. - * - * @param defaultProperty the defaultProperty value to set. - * @return the AzureCapacity object itself. - */ - public AzureCapacity withDefaultProperty(int defaultProperty) { - this.defaultProperty = defaultProperty; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (scaleType() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property scaleType in model AzureCapacity")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureCapacity.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("scaleType", this.scaleType == null ? null : this.scaleType.toString()); - jsonWriter.writeIntField("minimum", this.minimum); - jsonWriter.writeIntField("maximum", this.maximum); - jsonWriter.writeIntField("default", this.defaultProperty); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AzureCapacity from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AzureCapacity if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the AzureCapacity. - */ - public static AzureCapacity fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AzureCapacity deserializedAzureCapacity = new AzureCapacity(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("scaleType".equals(fieldName)) { - deserializedAzureCapacity.scaleType = AzureScaleType.fromString(reader.getString()); - } else if ("minimum".equals(fieldName)) { - deserializedAzureCapacity.minimum = reader.getInt(); - } else if ("maximum".equals(fieldName)) { - deserializedAzureCapacity.maximum = reader.getInt(); - } else if ("default".equals(fieldName)) { - deserializedAzureCapacity.defaultProperty = reader.getInt(); - } else { - reader.skipChildren(); - } - } - - return deserializedAzureCapacity; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureResourceSku.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureResourceSku.java deleted file mode 100644 index 5c41e1e5685a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureResourceSku.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; - -/** - * An immutable client-side representation of AzureResourceSku. - */ -public interface AzureResourceSku { - /** - * Gets the resourceType property: Resource Namespace and Type. - * - * @return the resourceType value. - */ - String resourceType(); - - /** - * Gets the sku property: The SKU details. - * - * @return the sku value. - */ - AzureSku sku(); - - /** - * Gets the capacity property: The number of instances of the cluster. - * - * @return the capacity value. - */ - AzureCapacity capacity(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner object. - * - * @return the inner object. - */ - AzureResourceSkuInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureScaleType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureScaleType.java deleted file mode 100644 index df82a5b53854..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureScaleType.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Scale type. - */ -public final class AzureScaleType extends ExpandableStringEnum { - /** - * Static value automatic for AzureScaleType. - */ - public static final AzureScaleType AUTOMATIC = fromString("automatic"); - - /** - * Static value manual for AzureScaleType. - */ - public static final AzureScaleType MANUAL = fromString("manual"); - - /** - * Static value none for AzureScaleType. - */ - public static final AzureScaleType NONE = fromString("none"); - - /** - * Creates a new instance of AzureScaleType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AzureScaleType() { - } - - /** - * Creates or finds a AzureScaleType from its string representation. - * - * @param name a name to look for. - * @return the corresponding AzureScaleType. - */ - public static AzureScaleType fromString(String name) { - return fromString(name, AzureScaleType.class); - } - - /** - * Gets known AzureScaleType values. - * - * @return known AzureScaleType values. - */ - public static Collection values() { - return values(AzureScaleType.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java deleted file mode 100644 index f0d782864103..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Azure SKU definition. - */ -@Fluent -public final class AzureSku implements JsonSerializable { - /* - * SKU name. - */ - private SkuName name; - - /* - * The number of instances of the cluster. - */ - private Integer capacity; - - /* - * SKU size. - */ - private SkuSize size; - - /** - * Creates an instance of AzureSku class. - */ - public AzureSku() { - } - - /** - * Get the name property: SKU name. - * - * @return the name value. - */ - public SkuName name() { - return this.name; - } - - /** - * Set the name property: SKU name. - * - * @param name the name value to set. - * @return the AzureSku object itself. - */ - public AzureSku withName(SkuName name) { - this.name = name; - return this; - } - - /** - * Get the capacity property: The number of instances of the cluster. - * - * @return the capacity value. - */ - public Integer capacity() { - return this.capacity; - } - - /** - * Set the capacity property: The number of instances of the cluster. - * - * @param capacity the capacity value to set. - * @return the AzureSku object itself. - */ - public AzureSku withCapacity(Integer capacity) { - this.capacity = capacity; - return this; - } - - /** - * Get the size property: SKU size. - * - * @return the size value. - */ - public SkuSize size() { - return this.size; - } - - /** - * Set the size property: SKU size. - * - * @param size the size value to set. - * @return the AzureSku object itself. - */ - public AzureSku withSize(SkuSize size) { - this.size = size; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property name in model AzureSku")); - } - if (size() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property size in model AzureSku")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureSku.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name == null ? null : this.name.toString()); - jsonWriter.writeStringField("size", this.size == null ? null : this.size.toString()); - jsonWriter.writeNumberField("capacity", this.capacity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AzureSku from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AzureSku if the JsonReader was pointing to an instance of it, or null if it was pointing - * to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the AzureSku. - */ - public static AzureSku fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AzureSku deserializedAzureSku = new AzureSku(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedAzureSku.name = SkuName.fromString(reader.getString()); - } else if ("size".equals(fieldName)) { - deserializedAzureSku.size = SkuSize.fromString(reader.getString()); - } else if ("capacity".equals(fieldName)) { - deserializedAzureSku.capacity = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedAzureSku; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java index fb88661db6d0..388f2f22c5de 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java @@ -86,13 +86,6 @@ public interface BigDataPoolResourceInfo { */ Boolean isComputeIsolationEnabled(); - /** - * Gets the isAutotuneEnabled property: Whether autotune is required or not. - * - * @return the isAutotuneEnabled value. - */ - Boolean isAutotuneEnabled(); - /** * Gets the sessionLevelPackagesEnabled property: Whether session level packages enabled. * @@ -147,7 +140,7 @@ public interface BigDataPoolResourceInfo { * * @return the sparkConfigProperties value. */ - SparkConfigProperties sparkConfigProperties(); + LibraryRequirements sparkConfigProperties(); /** * Gets the sparkVersion property: The Apache Spark version. @@ -269,14 +262,14 @@ interface WithParentResource { * the resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProvisioningState, - DefinitionStages.WithAutoScale, DefinitionStages.WithAutoPause, - DefinitionStages.WithIsComputeIsolationEnabled, DefinitionStages.WithIsAutotuneEnabled, - DefinitionStages.WithSessionLevelPackagesEnabled, DefinitionStages.WithCacheSize, - DefinitionStages.WithDynamicExecutorAllocation, DefinitionStages.WithSparkEventsFolder, - DefinitionStages.WithNodeCount, DefinitionStages.WithLibraryRequirements, - DefinitionStages.WithCustomLibraries, DefinitionStages.WithSparkConfigProperties, - DefinitionStages.WithSparkVersion, DefinitionStages.WithDefaultSparkLogFolder, - DefinitionStages.WithNodeSize, DefinitionStages.WithNodeSizeFamily, DefinitionStages.WithForce { + DefinitionStages.WithAutoScale, DefinitionStages.WithCreationDate, DefinitionStages.WithAutoPause, + DefinitionStages.WithIsComputeIsolationEnabled, DefinitionStages.WithSessionLevelPackagesEnabled, + DefinitionStages.WithCacheSize, DefinitionStages.WithDynamicExecutorAllocation, + DefinitionStages.WithSparkEventsFolder, DefinitionStages.WithNodeCount, + DefinitionStages.WithLibraryRequirements, DefinitionStages.WithCustomLibraries, + DefinitionStages.WithSparkConfigProperties, DefinitionStages.WithSparkVersion, + DefinitionStages.WithDefaultSparkLogFolder, DefinitionStages.WithNodeSize, + DefinitionStages.WithNodeSizeFamily, DefinitionStages.WithForce { /** * Executes the create request. * @@ -332,6 +325,19 @@ interface WithAutoScale { WithCreate withAutoScale(AutoScaleProperties autoScale); } + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify creationDate. + */ + interface WithCreationDate { + /** + * Specifies the creationDate property: The time when the Big Data pool was created.. + * + * @param creationDate The time when the Big Data pool was created. + * @return the next definition stage. + */ + WithCreate withCreationDate(OffsetDateTime creationDate); + } + /** * The stage of the BigDataPoolResourceInfo definition allowing to specify autoPause. */ @@ -358,19 +364,6 @@ interface WithIsComputeIsolationEnabled { WithCreate withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled); } - /** - * The stage of the BigDataPoolResourceInfo definition allowing to specify isAutotuneEnabled. - */ - interface WithIsAutotuneEnabled { - /** - * Specifies the isAutotuneEnabled property: Whether autotune is required or not.. - * - * @param isAutotuneEnabled Whether autotune is required or not. - * @return the next definition stage. - */ - WithCreate withIsAutotuneEnabled(Boolean isAutotuneEnabled); - } - /** * The stage of the BigDataPoolResourceInfo definition allowing to specify sessionLevelPackagesEnabled. */ @@ -473,7 +466,7 @@ interface WithSparkConfigProperties { * @param sparkConfigProperties Spark configuration file to specify additional properties. * @return the next definition stage. */ - WithCreate withSparkConfigProperties(SparkConfigProperties sparkConfigProperties); + WithCreate withSparkConfigProperties(LibraryRequirements sparkConfigProperties); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPools.java index 70a062eef124..5ca0d713d0d2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPools.java @@ -55,9 +55,9 @@ Response getWithResponse(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool. + * @return any object. */ - BigDataPoolResourceInfo delete(String resourceGroupName, String workspaceName, String bigDataPoolName); + Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName); /** * Delete a Big Data pool. @@ -71,10 +71,9 @@ Response getWithResponse(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool. + * @return any object. */ - BigDataPoolResourceInfo delete(String resourceGroupName, String workspaceName, String bigDataPoolName, - Context context); + Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); /** * List the Big Data pools in a workspace. @@ -142,9 +141,9 @@ PagedIterable listByWorkspace(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool. + * @return any object. */ - BigDataPoolResourceInfo deleteById(String id); + Object deleteById(String id); /** * Delete a Big Data pool. @@ -156,9 +155,9 @@ PagedIterable listByWorkspace(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool. + * @return any object. */ - BigDataPoolResourceInfo deleteByIdWithResponse(String id, Context context); + Object deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new BigDataPoolResourceInfo resource. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobStorageEventType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobStorageEventType.java deleted file mode 100644 index 266209fe2922..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobStorageEventType.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The name of blob storage event type to process. - */ -public final class BlobStorageEventType extends ExpandableStringEnum { - /** - * Static value Microsoft.Storage.BlobCreated for BlobStorageEventType. - */ - public static final BlobStorageEventType MICROSOFT_STORAGE_BLOB_CREATED - = fromString("Microsoft.Storage.BlobCreated"); - - /** - * Static value Microsoft.Storage.BlobRenamed for BlobStorageEventType. - */ - public static final BlobStorageEventType MICROSOFT_STORAGE_BLOB_RENAMED - = fromString("Microsoft.Storage.BlobRenamed"); - - /** - * Creates a new instance of BlobStorageEventType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public BlobStorageEventType() { - } - - /** - * Creates or finds a BlobStorageEventType from its string representation. - * - * @param name a name to look for. - * @return the corresponding BlobStorageEventType. - */ - public static BlobStorageEventType fromString(String name) { - return fromString(name, BlobStorageEventType.class); - } - - /** - * Gets known BlobStorageEventType values. - * - * @return known BlobStorageEventType values. - */ - public static Collection values() { - return values(BlobStorageEventType.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameResult.java deleted file mode 100644 index 30f54c6b1d80..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameResult.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; - -/** - * An immutable client-side representation of CheckNameResult. - */ -public interface CheckNameResult { - /** - * Gets the nameAvailable property: Specifies a Boolean value that indicates if the name is available. - * - * @return the nameAvailable value. - */ - Boolean nameAvailable(); - - /** - * Gets the name property: The name that was checked. - * - * @return the name value. - */ - String name(); - - /** - * Gets the message property: Message indicating an unavailable name due to a conflict, or a description of the - * naming rules that are violated. - * - * @return the message value. - */ - String message(); - - /** - * Gets the reason property: Message providing the reason why the given name is invalid. - * - * @return the reason value. - */ - Reason reason(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner object. - * - * @return the inner object. - */ - CheckNameResultInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignment.java deleted file mode 100644 index d0c84949812a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignment.java +++ /dev/null @@ -1,324 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; - -/** - * An immutable client-side representation of ClusterPrincipalAssignment. - */ -public interface ClusterPrincipalAssignment { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the principalId property: The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. - * - * @return the principalId value. - */ - String principalId(); - - /** - * Gets the role property: Cluster principal role. - * - * @return the role value. - */ - ClusterPrincipalRole role(); - - /** - * Gets the tenantId property: The tenant id of the principal. - * - * @return the tenantId value. - */ - String tenantId(); - - /** - * Gets the principalType property: Principal type. - * - * @return the principalType value. - */ - PrincipalType principalType(); - - /** - * Gets the tenantName property: The tenant name of the principal. - * - * @return the tenantName value. - */ - String tenantName(); - - /** - * Gets the principalName property: The principal name. - * - * @return the principalName value. - */ - String principalName(); - - /** - * Gets the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - ResourceProvisioningState provisioningState(); - - /** - * Gets the aadObjectId property: The service principal object id in AAD (Azure active directory). - * - * @return the aadObjectId value. - */ - String aadObjectId(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner object. - * - * @return the inner object. - */ - ClusterPrincipalAssignmentInner innerModel(); - - /** - * The entirety of the ClusterPrincipalAssignment definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ClusterPrincipalAssignment definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ClusterPrincipalAssignment definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the ClusterPrincipalAssignment definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies workspaceName, kustoPoolName, resourceGroupName. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingKustoPool(String workspaceName, String kustoPoolName, String resourceGroupName); - } - - /** - * The stage of the ClusterPrincipalAssignment definition which contains all the minimum required properties for - * the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithPrincipalId, DefinitionStages.WithRole, - DefinitionStages.WithTenantId, DefinitionStages.WithPrincipalType { - /** - * Executes the create request. - * - * @return the created resource. - */ - ClusterPrincipalAssignment create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ClusterPrincipalAssignment create(Context context); - } - - /** - * The stage of the ClusterPrincipalAssignment definition allowing to specify principalId. - */ - interface WithPrincipalId { - /** - * Specifies the principalId property: The principal ID assigned to the cluster principal. It can be a user - * email, application ID, or security group name.. - * - * @param principalId The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. - * @return the next definition stage. - */ - WithCreate withPrincipalId(String principalId); - } - - /** - * The stage of the ClusterPrincipalAssignment definition allowing to specify role. - */ - interface WithRole { - /** - * Specifies the role property: Cluster principal role.. - * - * @param role Cluster principal role. - * @return the next definition stage. - */ - WithCreate withRole(ClusterPrincipalRole role); - } - - /** - * The stage of the ClusterPrincipalAssignment definition allowing to specify tenantId. - */ - interface WithTenantId { - /** - * Specifies the tenantId property: The tenant id of the principal. - * - * @param tenantId The tenant id of the principal. - * @return the next definition stage. - */ - WithCreate withTenantId(String tenantId); - } - - /** - * The stage of the ClusterPrincipalAssignment definition allowing to specify principalType. - */ - interface WithPrincipalType { - /** - * Specifies the principalType property: Principal type.. - * - * @param principalType Principal type. - * @return the next definition stage. - */ - WithCreate withPrincipalType(PrincipalType principalType); - } - } - - /** - * Begins update for the ClusterPrincipalAssignment resource. - * - * @return the stage of resource update. - */ - ClusterPrincipalAssignment.Update update(); - - /** - * The template for ClusterPrincipalAssignment update. - */ - interface Update extends UpdateStages.WithPrincipalId, UpdateStages.WithRole, UpdateStages.WithTenantId, - UpdateStages.WithPrincipalType { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ClusterPrincipalAssignment apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ClusterPrincipalAssignment apply(Context context); - } - - /** - * The ClusterPrincipalAssignment update stages. - */ - interface UpdateStages { - /** - * The stage of the ClusterPrincipalAssignment update allowing to specify principalId. - */ - interface WithPrincipalId { - /** - * Specifies the principalId property: The principal ID assigned to the cluster principal. It can be a user - * email, application ID, or security group name.. - * - * @param principalId The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. - * @return the next definition stage. - */ - Update withPrincipalId(String principalId); - } - - /** - * The stage of the ClusterPrincipalAssignment update allowing to specify role. - */ - interface WithRole { - /** - * Specifies the role property: Cluster principal role.. - * - * @param role Cluster principal role. - * @return the next definition stage. - */ - Update withRole(ClusterPrincipalRole role); - } - - /** - * The stage of the ClusterPrincipalAssignment update allowing to specify tenantId. - */ - interface WithTenantId { - /** - * Specifies the tenantId property: The tenant id of the principal. - * - * @param tenantId The tenant id of the principal. - * @return the next definition stage. - */ - Update withTenantId(String tenantId); - } - - /** - * The stage of the ClusterPrincipalAssignment update allowing to specify principalType. - */ - interface WithPrincipalType { - /** - * Specifies the principalType property: Principal type.. - * - * @param principalType Principal type. - * @return the next definition stage. - */ - Update withPrincipalType(PrincipalType principalType); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ClusterPrincipalAssignment refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ClusterPrincipalAssignment refresh(Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java deleted file mode 100644 index e66a652ccdca..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * A principal assignment check name availability request. - */ -@Fluent -public final class ClusterPrincipalAssignmentCheckNameRequest - implements JsonSerializable { - /* - * Principal Assignment resource name. - */ - private String name; - - /* - * The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. - */ - private String type = "Microsoft.Synapse/workspaces/kustoPools/principalAssignments"; - - /** - * Creates an instance of ClusterPrincipalAssignmentCheckNameRequest class. - */ - public ClusterPrincipalAssignmentCheckNameRequest() { - } - - /** - * Get the name property: Principal Assignment resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Principal Assignment resource name. - * - * @param name the name value to set. - * @return the ClusterPrincipalAssignmentCheckNameRequest object itself. - */ - public ClusterPrincipalAssignmentCheckNameRequest withName(String name) { - this.name = name; - return this; - } - - /** - * Get the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. - * - * @param type the type value to set. - * @return the ClusterPrincipalAssignmentCheckNameRequest object itself. - */ - public ClusterPrincipalAssignmentCheckNameRequest withType(String type) { - this.type = type; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property name in model ClusterPrincipalAssignmentCheckNameRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ClusterPrincipalAssignmentCheckNameRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ClusterPrincipalAssignmentCheckNameRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ClusterPrincipalAssignmentCheckNameRequest if the JsonReader was pointing to an instance - * of it, or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the ClusterPrincipalAssignmentCheckNameRequest. - */ - public static ClusterPrincipalAssignmentCheckNameRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ClusterPrincipalAssignmentCheckNameRequest deserializedClusterPrincipalAssignmentCheckNameRequest - = new ClusterPrincipalAssignmentCheckNameRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedClusterPrincipalAssignmentCheckNameRequest.name = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedClusterPrincipalAssignmentCheckNameRequest; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java deleted file mode 100644 index 68036d0073e3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import java.io.IOException; -import java.util.List; - -/** - * The list Kusto cluster principal assignments operation response. - */ -@Fluent -public final class ClusterPrincipalAssignmentListResult - implements JsonSerializable { - /* - * The list of Kusto cluster principal assignments. - */ - private List value; - - /** - * Creates an instance of ClusterPrincipalAssignmentListResult class. - */ - public ClusterPrincipalAssignmentListResult() { - } - - /** - * Get the value property: The list of Kusto cluster principal assignments. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of Kusto cluster principal assignments. - * - * @param value the value value to set. - * @return the ClusterPrincipalAssignmentListResult object itself. - */ - public ClusterPrincipalAssignmentListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ClusterPrincipalAssignmentListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ClusterPrincipalAssignmentListResult if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the ClusterPrincipalAssignmentListResult. - */ - public static ClusterPrincipalAssignmentListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ClusterPrincipalAssignmentListResult deserializedClusterPrincipalAssignmentListResult - = new ClusterPrincipalAssignmentListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ClusterPrincipalAssignmentInner.fromJson(reader1)); - deserializedClusterPrincipalAssignmentListResult.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedClusterPrincipalAssignmentListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalRole.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalRole.java deleted file mode 100644 index b3c2e5cac0ec..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalRole.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Cluster principal role. - */ -public final class ClusterPrincipalRole extends ExpandableStringEnum { - /** - * Static value AllDatabasesAdmin for ClusterPrincipalRole. - */ - public static final ClusterPrincipalRole ALL_DATABASES_ADMIN = fromString("AllDatabasesAdmin"); - - /** - * Static value AllDatabasesViewer for ClusterPrincipalRole. - */ - public static final ClusterPrincipalRole ALL_DATABASES_VIEWER = fromString("AllDatabasesViewer"); - - /** - * Creates a new instance of ClusterPrincipalRole value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ClusterPrincipalRole() { - } - - /** - * Creates or finds a ClusterPrincipalRole from its string representation. - * - * @param name a name to look for. - * @return the corresponding ClusterPrincipalRole. - */ - public static ClusterPrincipalRole fromString(String name) { - return fromString(name, ClusterPrincipalRole.class); - } - - /** - * Gets known ClusterPrincipalRole values. - * - * @return known ClusterPrincipalRole values. - */ - public static Collection values() { - return values(ClusterPrincipalRole.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Compression.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Compression.java deleted file mode 100644 index 52cc4a5195f4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Compression.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The compression type. - */ -public final class Compression extends ExpandableStringEnum { - /** - * Static value None for Compression. - */ - public static final Compression NONE = fromString("None"); - - /** - * Static value GZip for Compression. - */ - public static final Compression GZIP = fromString("GZip"); - - /** - * Creates a new instance of Compression value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public Compression() { - } - - /** - * Creates or finds a Compression from its string representation. - * - * @param name a name to look for. - * @return the corresponding Compression. - */ - public static Compression fromString(String name) { - return fromString(name, Compression.class); - } - - /** - * Gets known Compression values. - * - * @return known Compression values. - */ - public static Collection values() { - return values(Compression.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConfigurationType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConfigurationType.java deleted file mode 100644 index 8641857500c2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConfigurationType.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The type of the spark config properties file. - */ -public final class ConfigurationType extends ExpandableStringEnum { - /** - * Static value File for ConfigurationType. - */ - public static final ConfigurationType FILE = fromString("File"); - - /** - * Static value Artifact for ConfigurationType. - */ - public static final ConfigurationType ARTIFACT = fromString("Artifact"); - - /** - * Creates a new instance of ConfigurationType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ConfigurationType() { - } - - /** - * Creates or finds a ConfigurationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ConfigurationType. - */ - public static ConfigurationType fromString(String name) { - return fromString(name, ConfigurationType.class); - } - - /** - * Gets known ConfigurationType values. - * - * @return known ConfigurationType values. - */ - public static Collection values() { - return values(ConfigurationType.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java deleted file mode 100644 index b408d53fdc8b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Initial workspace AAD admin properties for a CSP subscription. - */ -@Fluent -public final class CspWorkspaceAdminProperties implements JsonSerializable { - /* - * AAD object ID of initial workspace admin - */ - private String initialWorkspaceAdminObjectId; - - /** - * Creates an instance of CspWorkspaceAdminProperties class. - */ - public CspWorkspaceAdminProperties() { - } - - /** - * Get the initialWorkspaceAdminObjectId property: AAD object ID of initial workspace admin. - * - * @return the initialWorkspaceAdminObjectId value. - */ - public String initialWorkspaceAdminObjectId() { - return this.initialWorkspaceAdminObjectId; - } - - /** - * Set the initialWorkspaceAdminObjectId property: AAD object ID of initial workspace admin. - * - * @param initialWorkspaceAdminObjectId the initialWorkspaceAdminObjectId value to set. - * @return the CspWorkspaceAdminProperties object itself. - */ - public CspWorkspaceAdminProperties withInitialWorkspaceAdminObjectId(String initialWorkspaceAdminObjectId) { - this.initialWorkspaceAdminObjectId = initialWorkspaceAdminObjectId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("initialWorkspaceAdminObjectId", this.initialWorkspaceAdminObjectId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CspWorkspaceAdminProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CspWorkspaceAdminProperties if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the CspWorkspaceAdminProperties. - */ - public static CspWorkspaceAdminProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CspWorkspaceAdminProperties deserializedCspWorkspaceAdminProperties = new CspWorkspaceAdminProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("initialWorkspaceAdminObjectId".equals(fieldName)) { - deserializedCspWorkspaceAdminProperties.initialWorkspaceAdminObjectId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedCspWorkspaceAdminProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java index 677053895333..63d39dad29e2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java @@ -26,11 +26,6 @@ public final class CustomerManagedKeyDetails implements JsonSerializable { - /* - * Data Connection name. - */ - private String name; - - /* - * The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. - */ - private String type = "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"; - - /** - * Creates an instance of DataConnectionCheckNameRequest class. - */ - public DataConnectionCheckNameRequest() { - } - - /** - * Get the name property: Data Connection name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Data Connection name. - * - * @param name the name value to set. - * @return the DataConnectionCheckNameRequest object itself. - */ - public DataConnectionCheckNameRequest withName(String name) { - this.name = name; - return this; - } - - /** - * Get the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. - * - * @param type the type value to set. - * @return the DataConnectionCheckNameRequest object itself. - */ - public DataConnectionCheckNameRequest withType(String type) { - this.type = type; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property name in model DataConnectionCheckNameRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DataConnectionCheckNameRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DataConnectionCheckNameRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DataConnectionCheckNameRequest if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the DataConnectionCheckNameRequest. - */ - public static DataConnectionCheckNameRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DataConnectionCheckNameRequest deserializedDataConnectionCheckNameRequest - = new DataConnectionCheckNameRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedDataConnectionCheckNameRequest.name = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDataConnectionCheckNameRequest; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionKind.java deleted file mode 100644 index 54e9dbb8e8c0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionKind.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Kind of the endpoint for the data connection. - */ -public final class DataConnectionKind extends ExpandableStringEnum { - /** - * Static value EventHub for DataConnectionKind. - */ - public static final DataConnectionKind EVENT_HUB = fromString("EventHub"); - - /** - * Static value EventGrid for DataConnectionKind. - */ - public static final DataConnectionKind EVENT_GRID = fromString("EventGrid"); - - /** - * Static value IotHub for DataConnectionKind. - */ - public static final DataConnectionKind IOT_HUB = fromString("IotHub"); - - /** - * Creates a new instance of DataConnectionKind value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DataConnectionKind() { - } - - /** - * Creates or finds a DataConnectionKind from its string representation. - * - * @param name a name to look for. - * @return the corresponding DataConnectionKind. - */ - public static DataConnectionKind fromString(String name) { - return fromString(name, DataConnectionKind.class); - } - - /** - * Gets known DataConnectionKind values. - * - * @return known DataConnectionKind values. - */ - public static Collection values() { - return values(DataConnectionKind.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java deleted file mode 100644 index 05c8bf1a22f3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import java.io.IOException; -import java.util.List; - -/** - * The list Kusto data connections operation response. - */ -@Fluent -public final class DataConnectionListResult implements JsonSerializable { - /* - * The list of Kusto data connections. - */ - private List value; - - /** - * Creates an instance of DataConnectionListResult class. - */ - public DataConnectionListResult() { - } - - /** - * Get the value property: The list of Kusto data connections. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of Kusto data connections. - * - * @param value the value value to set. - * @return the DataConnectionListResult object itself. - */ - public DataConnectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DataConnectionListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DataConnectionListResult if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DataConnectionListResult. - */ - public static DataConnectionListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DataConnectionListResult deserializedDataConnectionListResult = new DataConnectionListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> DataConnectionInner.fromJson(reader1)); - deserializedDataConnectionListResult.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedDataConnectionListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidation.java deleted file mode 100644 index a76aad23f8b7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidation.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; - -/** - * An immutable client-side representation of DataConnectionValidation. - */ -public interface DataConnectionValidation { - /** - * Gets the dataConnectionName property: The name of the data connection. - * - * @return the dataConnectionName value. - */ - String dataConnectionName(); - - /** - * Gets the properties property: The data connection properties to validate. - * - * @return the properties value. - */ - DataConnection properties(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner object. - * - * @return the inner object. - */ - DataConnectionValidationInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationListResult.java deleted file mode 100644 index 887596eda835..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationListResult.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; -import java.util.List; - -/** - * An immutable client-side representation of DataConnectionValidationListResult. - */ -public interface DataConnectionValidationListResult { - /** - * Gets the value property: The list of Kusto data connection validation errors. - * - * @return the value value. - */ - List value(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner object. - * - * @return the inner object. - */ - DataConnectionValidationListResultInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java deleted file mode 100644 index b095e9249063..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The result returned from a data connection validation request. - */ -@Fluent -public final class DataConnectionValidationResult implements JsonSerializable { - /* - * A message which indicates a problem in data connection validation. - */ - private String errorMessage; - - /** - * Creates an instance of DataConnectionValidationResult class. - */ - public DataConnectionValidationResult() { - } - - /** - * Get the errorMessage property: A message which indicates a problem in data connection validation. - * - * @return the errorMessage value. - */ - public String errorMessage() { - return this.errorMessage; - } - - /** - * Set the errorMessage property: A message which indicates a problem in data connection validation. - * - * @param errorMessage the errorMessage value to set. - * @return the DataConnectionValidationResult object itself. - */ - public DataConnectionValidationResult withErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("errorMessage", this.errorMessage); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DataConnectionValidationResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DataConnectionValidationResult if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DataConnectionValidationResult. - */ - public static DataConnectionValidationResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DataConnectionValidationResult deserializedDataConnectionValidationResult - = new DataConnectionValidationResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("errorMessage".equals(fieldName)) { - deserializedDataConnectionValidationResult.errorMessage = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDataConnectionValidationResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java index 8f74e2f5dfd8..b4e5991b695b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java @@ -26,16 +26,6 @@ public final class DataLakeStorageAccountDetails implements JsonSerializable { - /* - * Resource name. - */ - private String name; - - /* - * The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. - */ - private Type type; - - /** - * Creates an instance of DatabaseCheckNameRequest class. - */ - public DatabaseCheckNameRequest() { - } - - /** - * Get the name property: Resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Resource name. - * - * @param name the name value to set. - * @return the DatabaseCheckNameRequest object itself. - */ - public DatabaseCheckNameRequest withName(String name) { - this.name = name; - return this; - } - - /** - * Get the type property: The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. - * - * @return the type value. - */ - public Type type() { - return this.type; - } - - /** - * Set the type property: The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. - * - * @param type the type value to set. - * @return the DatabaseCheckNameRequest object itself. - */ - public DatabaseCheckNameRequest withType(Type type) { - this.type = type; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property name in model DatabaseCheckNameRequest")); - } - if (type() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property type in model DatabaseCheckNameRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabaseCheckNameRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DatabaseCheckNameRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DatabaseCheckNameRequest if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the DatabaseCheckNameRequest. - */ - public static DatabaseCheckNameRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DatabaseCheckNameRequest deserializedDatabaseCheckNameRequest = new DatabaseCheckNameRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedDatabaseCheckNameRequest.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedDatabaseCheckNameRequest.type = Type.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedDatabaseCheckNameRequest; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java deleted file mode 100644 index 0a74f1a46b83..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import java.io.IOException; -import java.util.List; - -/** - * The list Kusto databases operation response. - */ -@Fluent -public final class DatabaseListResult implements JsonSerializable { - /* - * The list of Kusto databases. - */ - private List value; - - /** - * Creates an instance of DatabaseListResult class. - */ - public DatabaseListResult() { - } - - /** - * Get the value property: The list of Kusto databases. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of Kusto databases. - * - * @param value the value value to set. - * @return the DatabaseListResult object itself. - */ - public DatabaseListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DatabaseListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DatabaseListResult if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the DatabaseListResult. - */ - public static DatabaseListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DatabaseListResult deserializedDatabaseListResult = new DatabaseListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> DatabaseInner.fromJson(reader1)); - deserializedDatabaseListResult.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedDatabaseListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignment.java deleted file mode 100644 index 7fc9c764d433..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignment.java +++ /dev/null @@ -1,326 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; - -/** - * An immutable client-side representation of DatabasePrincipalAssignment. - */ -public interface DatabasePrincipalAssignment { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the principalId property: The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. - * - * @return the principalId value. - */ - String principalId(); - - /** - * Gets the role property: Database principal role. - * - * @return the role value. - */ - DatabasePrincipalRole role(); - - /** - * Gets the tenantId property: The tenant id of the principal. - * - * @return the tenantId value. - */ - String tenantId(); - - /** - * Gets the principalType property: Principal type. - * - * @return the principalType value. - */ - PrincipalType principalType(); - - /** - * Gets the tenantName property: The tenant name of the principal. - * - * @return the tenantName value. - */ - String tenantName(); - - /** - * Gets the principalName property: The principal name. - * - * @return the principalName value. - */ - String principalName(); - - /** - * Gets the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - ResourceProvisioningState provisioningState(); - - /** - * Gets the aadObjectId property: The service principal object id in AAD (Azure active directory). - * - * @return the aadObjectId value. - */ - String aadObjectId(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner object. - * - * @return the inner object. - */ - DatabasePrincipalAssignmentInner innerModel(); - - /** - * The entirety of the DatabasePrincipalAssignment definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The DatabasePrincipalAssignment definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the DatabasePrincipalAssignment definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the DatabasePrincipalAssignment definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies workspaceName, kustoPoolName, databaseName, resourceGroupName. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingDatabase(String workspaceName, String kustoPoolName, String databaseName, - String resourceGroupName); - } - - /** - * The stage of the DatabasePrincipalAssignment definition which contains all the minimum required properties - * for the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithPrincipalId, DefinitionStages.WithRole, - DefinitionStages.WithTenantId, DefinitionStages.WithPrincipalType { - /** - * Executes the create request. - * - * @return the created resource. - */ - DatabasePrincipalAssignment create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - DatabasePrincipalAssignment create(Context context); - } - - /** - * The stage of the DatabasePrincipalAssignment definition allowing to specify principalId. - */ - interface WithPrincipalId { - /** - * Specifies the principalId property: The principal ID assigned to the database principal. It can be a user - * email, application ID, or security group name.. - * - * @param principalId The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. - * @return the next definition stage. - */ - WithCreate withPrincipalId(String principalId); - } - - /** - * The stage of the DatabasePrincipalAssignment definition allowing to specify role. - */ - interface WithRole { - /** - * Specifies the role property: Database principal role.. - * - * @param role Database principal role. - * @return the next definition stage. - */ - WithCreate withRole(DatabasePrincipalRole role); - } - - /** - * The stage of the DatabasePrincipalAssignment definition allowing to specify tenantId. - */ - interface WithTenantId { - /** - * Specifies the tenantId property: The tenant id of the principal. - * - * @param tenantId The tenant id of the principal. - * @return the next definition stage. - */ - WithCreate withTenantId(String tenantId); - } - - /** - * The stage of the DatabasePrincipalAssignment definition allowing to specify principalType. - */ - interface WithPrincipalType { - /** - * Specifies the principalType property: Principal type.. - * - * @param principalType Principal type. - * @return the next definition stage. - */ - WithCreate withPrincipalType(PrincipalType principalType); - } - } - - /** - * Begins update for the DatabasePrincipalAssignment resource. - * - * @return the stage of resource update. - */ - DatabasePrincipalAssignment.Update update(); - - /** - * The template for DatabasePrincipalAssignment update. - */ - interface Update extends UpdateStages.WithPrincipalId, UpdateStages.WithRole, UpdateStages.WithTenantId, - UpdateStages.WithPrincipalType { - /** - * Executes the update request. - * - * @return the updated resource. - */ - DatabasePrincipalAssignment apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - DatabasePrincipalAssignment apply(Context context); - } - - /** - * The DatabasePrincipalAssignment update stages. - */ - interface UpdateStages { - /** - * The stage of the DatabasePrincipalAssignment update allowing to specify principalId. - */ - interface WithPrincipalId { - /** - * Specifies the principalId property: The principal ID assigned to the database principal. It can be a user - * email, application ID, or security group name.. - * - * @param principalId The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. - * @return the next definition stage. - */ - Update withPrincipalId(String principalId); - } - - /** - * The stage of the DatabasePrincipalAssignment update allowing to specify role. - */ - interface WithRole { - /** - * Specifies the role property: Database principal role.. - * - * @param role Database principal role. - * @return the next definition stage. - */ - Update withRole(DatabasePrincipalRole role); - } - - /** - * The stage of the DatabasePrincipalAssignment update allowing to specify tenantId. - */ - interface WithTenantId { - /** - * Specifies the tenantId property: The tenant id of the principal. - * - * @param tenantId The tenant id of the principal. - * @return the next definition stage. - */ - Update withTenantId(String tenantId); - } - - /** - * The stage of the DatabasePrincipalAssignment update allowing to specify principalType. - */ - interface WithPrincipalType { - /** - * Specifies the principalType property: Principal type.. - * - * @param principalType Principal type. - * @return the next definition stage. - */ - Update withPrincipalType(PrincipalType principalType); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - DatabasePrincipalAssignment refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - DatabasePrincipalAssignment refresh(Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java deleted file mode 100644 index 14341ec3a402..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * A principal assignment check name availability request. - */ -@Fluent -public final class DatabasePrincipalAssignmentCheckNameRequest - implements JsonSerializable { - /* - * Principal Assignment resource name. - */ - private String name; - - /* - * The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. - */ - private String type = "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"; - - /** - * Creates an instance of DatabasePrincipalAssignmentCheckNameRequest class. - */ - public DatabasePrincipalAssignmentCheckNameRequest() { - } - - /** - * Get the name property: Principal Assignment resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Principal Assignment resource name. - * - * @param name the name value to set. - * @return the DatabasePrincipalAssignmentCheckNameRequest object itself. - */ - public DatabasePrincipalAssignmentCheckNameRequest withName(String name) { - this.name = name; - return this; - } - - /** - * Get the type property: The type of resource, - * Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: The type of resource, - * Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. - * - * @param type the type value to set. - * @return the DatabasePrincipalAssignmentCheckNameRequest object itself. - */ - public DatabasePrincipalAssignmentCheckNameRequest withType(String type) { - this.type = type; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property name in model DatabasePrincipalAssignmentCheckNameRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DatabasePrincipalAssignmentCheckNameRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DatabasePrincipalAssignmentCheckNameRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DatabasePrincipalAssignmentCheckNameRequest if the JsonReader was pointing to an instance - * of it, or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the DatabasePrincipalAssignmentCheckNameRequest. - */ - public static DatabasePrincipalAssignmentCheckNameRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DatabasePrincipalAssignmentCheckNameRequest deserializedDatabasePrincipalAssignmentCheckNameRequest - = new DatabasePrincipalAssignmentCheckNameRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedDatabasePrincipalAssignmentCheckNameRequest.name = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDatabasePrincipalAssignmentCheckNameRequest; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java deleted file mode 100644 index 5c09dd84cbf9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import java.io.IOException; -import java.util.List; - -/** - * The list Kusto database principal assignments operation response. - */ -@Fluent -public final class DatabasePrincipalAssignmentListResult - implements JsonSerializable { - /* - * The list of Kusto database principal assignments. - */ - private List value; - - /** - * Creates an instance of DatabasePrincipalAssignmentListResult class. - */ - public DatabasePrincipalAssignmentListResult() { - } - - /** - * Get the value property: The list of Kusto database principal assignments. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of Kusto database principal assignments. - * - * @param value the value value to set. - * @return the DatabasePrincipalAssignmentListResult object itself. - */ - public DatabasePrincipalAssignmentListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DatabasePrincipalAssignmentListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DatabasePrincipalAssignmentListResult if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DatabasePrincipalAssignmentListResult. - */ - public static DatabasePrincipalAssignmentListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DatabasePrincipalAssignmentListResult deserializedDatabasePrincipalAssignmentListResult - = new DatabasePrincipalAssignmentListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> DatabasePrincipalAssignmentInner.fromJson(reader1)); - deserializedDatabasePrincipalAssignmentListResult.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedDatabasePrincipalAssignmentListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalRole.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalRole.java deleted file mode 100644 index 20c8ded39fd1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalRole.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Database principal role. - */ -public final class DatabasePrincipalRole extends ExpandableStringEnum { - /** - * Static value Admin for DatabasePrincipalRole. - */ - public static final DatabasePrincipalRole ADMIN = fromString("Admin"); - - /** - * Static value Ingestor for DatabasePrincipalRole. - */ - public static final DatabasePrincipalRole INGESTOR = fromString("Ingestor"); - - /** - * Static value Monitor for DatabasePrincipalRole. - */ - public static final DatabasePrincipalRole MONITOR = fromString("Monitor"); - - /** - * Static value User for DatabasePrincipalRole. - */ - public static final DatabasePrincipalRole USER = fromString("User"); - - /** - * Static value UnrestrictedViewer for DatabasePrincipalRole. - */ - public static final DatabasePrincipalRole UNRESTRICTED_VIEWER = fromString("UnrestrictedViewer"); - - /** - * Static value Viewer for DatabasePrincipalRole. - */ - public static final DatabasePrincipalRole VIEWER = fromString("Viewer"); - - /** - * Creates a new instance of DatabasePrincipalRole value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DatabasePrincipalRole() { - } - - /** - * Creates or finds a DatabasePrincipalRole from its string representation. - * - * @param name a name to look for. - * @return the corresponding DatabasePrincipalRole. - */ - public static DatabasePrincipalRole fromString(String name) { - return fromString(name, DatabasePrincipalRole.class); - } - - /** - * Gets known DatabasePrincipalRole values. - * - * @return known DatabasePrincipalRole values. - */ - public static Collection values() { - return values(DatabasePrincipalRole.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java deleted file mode 100644 index 21025aa01374..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * A class that contains database statistics information. - */ -@Fluent -public final class DatabaseStatistics implements JsonSerializable { - /* - * The database size - the total size of compressed data and index in bytes. - */ - private Float size; - - /** - * Creates an instance of DatabaseStatistics class. - */ - public DatabaseStatistics() { - } - - /** - * Get the size property: The database size - the total size of compressed data and index in bytes. - * - * @return the size value. - */ - public Float size() { - return this.size; - } - - /** - * Set the size property: The database size - the total size of compressed data and index in bytes. - * - * @param size the size value to set. - * @return the DatabaseStatistics object itself. - */ - public DatabaseStatistics withSize(Float size) { - this.size = size; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("size", this.size); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DatabaseStatistics from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DatabaseStatistics if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the DatabaseStatistics. - */ - public static DatabaseStatistics fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DatabaseStatistics deserializedDatabaseStatistics = new DatabaseStatistics(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("size".equals(fieldName)) { - deserializedDatabaseStatistics.size = reader.getNullable(JsonReader::getFloat); - } else { - reader.skipChildren(); - } - } - - return deserializedDatabaseStatistics; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java deleted file mode 100644 index c972e82893ce..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; - -/** - * An immutable client-side representation of DedicatedSQLminimalTlsSettings. - */ -public interface DedicatedSQLminimalTlsSettings { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: Resource location. - * - * @return the location value. - */ - String location(); - - /** - * Gets the minimalTlsVersion property: The minimal tls version of the sql server. - * - * @return the minimalTlsVersion value. - */ - String minimalTlsVersion(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner object. - * - * @return the inner object. - */ - DedicatedSQLminimalTlsSettingsInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java deleted file mode 100644 index d0ffbb3ce420..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import java.io.IOException; -import java.util.List; - -/** - * A list of the server's dedicated sql minimal tls settings. - */ -@Immutable -public final class DedicatedSQLminimalTlsSettingsListResult - implements JsonSerializable { - /* - * Array of results. - */ - private List value; - - /* - * Link to retrieve next page of results. - */ - private String nextLink; - - /** - * Creates an instance of DedicatedSQLminimalTlsSettingsListResult class. - */ - public DedicatedSQLminimalTlsSettingsListResult() { - } - - /** - * Get the value property: Array of results. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: Link to retrieve next page of results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DedicatedSQLminimalTlsSettingsListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DedicatedSQLminimalTlsSettingsListResult if the JsonReader was pointing to an instance of - * it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DedicatedSQLminimalTlsSettingsListResult. - */ - public static DedicatedSQLminimalTlsSettingsListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DedicatedSQLminimalTlsSettingsListResult deserializedDedicatedSQLminimalTlsSettingsListResult - = new DedicatedSQLminimalTlsSettingsListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> DedicatedSQLminimalTlsSettingsInner.fromJson(reader1)); - deserializedDedicatedSQLminimalTlsSettingsListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedDedicatedSQLminimalTlsSettingsListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDedicatedSQLminimalTlsSettingsListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java deleted file mode 100644 index f7f813fd4b86..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Defines values for DedicatedSqlMinimalTlsSettingsName. - */ -public final class DedicatedSqlMinimalTlsSettingsName extends ExpandableStringEnum { - /** - * Static value default for DedicatedSqlMinimalTlsSettingsName. - */ - public static final DedicatedSqlMinimalTlsSettingsName DEFAULT = fromString("default"); - - /** - * Creates a new instance of DedicatedSqlMinimalTlsSettingsName value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DedicatedSqlMinimalTlsSettingsName() { - } - - /** - * Creates or finds a DedicatedSqlMinimalTlsSettingsName from its string representation. - * - * @param name a name to look for. - * @return the corresponding DedicatedSqlMinimalTlsSettingsName. - */ - public static DedicatedSqlMinimalTlsSettingsName fromString(String name) { - return fromString(name, DedicatedSqlMinimalTlsSettingsName.class); - } - - /** - * Gets known DedicatedSqlMinimalTlsSettingsName values. - * - * @return known DedicatedSqlMinimalTlsSettingsName values. - */ - public static Collection values() { - return values(DedicatedSqlMinimalTlsSettingsName.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DefaultPrincipalsModificationKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DefaultPrincipalsModificationKind.java deleted file mode 100644 index 2e27cae3806b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DefaultPrincipalsModificationKind.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The default principals modification kind. - */ -public final class DefaultPrincipalsModificationKind extends ExpandableStringEnum { - /** - * Static value Union for DefaultPrincipalsModificationKind. - */ - public static final DefaultPrincipalsModificationKind UNION = fromString("Union"); - - /** - * Static value Replace for DefaultPrincipalsModificationKind. - */ - public static final DefaultPrincipalsModificationKind REPLACE = fromString("Replace"); - - /** - * Static value None for DefaultPrincipalsModificationKind. - */ - public static final DefaultPrincipalsModificationKind NONE = fromString("None"); - - /** - * Creates a new instance of DefaultPrincipalsModificationKind value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DefaultPrincipalsModificationKind() { - } - - /** - * Creates or finds a DefaultPrincipalsModificationKind from its string representation. - * - * @param name a name to look for. - * @return the corresponding DefaultPrincipalsModificationKind. - */ - public static DefaultPrincipalsModificationKind fromString(String name) { - return fromString(name, DefaultPrincipalsModificationKind.class); - } - - /** - * Gets known DefaultPrincipalsModificationKind values. - * - * @return known DefaultPrincipalsModificationKind values. - */ - public static Collection values() { - return values(DefaultPrincipalsModificationKind.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java deleted file mode 100644 index 2ae64a64c4d3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -/** - * Desired state. - */ -public enum DesiredState { - /** - * Enum value Enabled. - */ - ENABLED("Enabled"), - - /** - * Enum value Disabled. - */ - DISABLED("Disabled"); - - /** - * The actual serialized value for a DesiredState instance. - */ - private final String value; - - DesiredState(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a DesiredState instance. - * - * @param value the serialized value to parse. - * @return the parsed DesiredState object, or null if unable to parse. - */ - public static DesiredState fromString(String value) { - if (value == null) { - return null; - } - DesiredState[] items = DesiredState.values(); - for (DesiredState item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - /** - * {@inheritDoc} - */ - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java index 79cddf59010d..322564409ee4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java @@ -21,16 +21,6 @@ public final class DynamicExecutorAllocation implements JsonSerializable { - EventGridDataConnection deserializedEventGridDataConnection = new EventGridDataConnection(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedEventGridDataConnection.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedEventGridDataConnection.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedEventGridDataConnection.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedEventGridDataConnection.withLocation(reader.getString()); - } else if ("systemData".equals(fieldName)) { - deserializedEventGridDataConnection.systemData = SystemData.fromJson(reader); - } else if ("kind".equals(fieldName)) { - deserializedEventGridDataConnection.kind = DataConnectionKind.fromString(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedEventGridDataConnection.innerProperties - = EventGridConnectionProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedEventGridDataConnection; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataFormat.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataFormat.java deleted file mode 100644 index 20193813f8a0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataFormat.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The data format of the message. Optionally the data format can be added to each message. - */ -public final class EventGridDataFormat extends ExpandableStringEnum { - /** - * Static value MULTIJSON for EventGridDataFormat. - */ - public static final EventGridDataFormat MULTIJSON = fromString("MULTIJSON"); - - /** - * Static value JSON for EventGridDataFormat. - */ - public static final EventGridDataFormat JSON = fromString("JSON"); - - /** - * Static value CSV for EventGridDataFormat. - */ - public static final EventGridDataFormat CSV = fromString("CSV"); - - /** - * Static value TSV for EventGridDataFormat. - */ - public static final EventGridDataFormat TSV = fromString("TSV"); - - /** - * Static value SCSV for EventGridDataFormat. - */ - public static final EventGridDataFormat SCSV = fromString("SCSV"); - - /** - * Static value SOHSV for EventGridDataFormat. - */ - public static final EventGridDataFormat SOHSV = fromString("SOHSV"); - - /** - * Static value PSV for EventGridDataFormat. - */ - public static final EventGridDataFormat PSV = fromString("PSV"); - - /** - * Static value TXT for EventGridDataFormat. - */ - public static final EventGridDataFormat TXT = fromString("TXT"); - - /** - * Static value RAW for EventGridDataFormat. - */ - public static final EventGridDataFormat RAW = fromString("RAW"); - - /** - * Static value SINGLEJSON for EventGridDataFormat. - */ - public static final EventGridDataFormat SINGLEJSON = fromString("SINGLEJSON"); - - /** - * Static value AVRO for EventGridDataFormat. - */ - public static final EventGridDataFormat AVRO = fromString("AVRO"); - - /** - * Static value TSVE for EventGridDataFormat. - */ - public static final EventGridDataFormat TSVE = fromString("TSVE"); - - /** - * Static value PARQUET for EventGridDataFormat. - */ - public static final EventGridDataFormat PARQUET = fromString("PARQUET"); - - /** - * Static value ORC for EventGridDataFormat. - */ - public static final EventGridDataFormat ORC = fromString("ORC"); - - /** - * Static value APACHEAVRO for EventGridDataFormat. - */ - public static final EventGridDataFormat APACHEAVRO = fromString("APACHEAVRO"); - - /** - * Static value W3CLOGFILE for EventGridDataFormat. - */ - public static final EventGridDataFormat W3CLOGFILE = fromString("W3CLOGFILE"); - - /** - * Creates a new instance of EventGridDataFormat value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public EventGridDataFormat() { - } - - /** - * Creates or finds a EventGridDataFormat from its string representation. - * - * @param name a name to look for. - * @return the corresponding EventGridDataFormat. - */ - public static EventGridDataFormat fromString(String name) { - return fromString(name, EventGridDataFormat.class); - } - - /** - * Gets known EventGridDataFormat values. - * - * @return known EventGridDataFormat values. - */ - public static Collection values() { - return values(EventGridDataFormat.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java deleted file mode 100644 index 8b282f89bd2c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java +++ /dev/null @@ -1,389 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.EventHubConnectionProperties; -import java.io.IOException; -import java.util.List; - -/** - * Class representing an event hub data connection. - */ -@Fluent -public final class EventHubDataConnection extends DataConnectionInner { - /* - * Kind of the endpoint for the data connection - */ - private DataConnectionKind kind = DataConnectionKind.EVENT_HUB; - - /* - * The Event Hub data connection properties to validate. - */ - private EventHubConnectionProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of EventHubDataConnection class. - */ - public EventHubDataConnection() { - } - - /** - * Get the kind property: Kind of the endpoint for the data connection. - * - * @return the kind value. - */ - @Override - public DataConnectionKind kind() { - return this.kind; - } - - /** - * Get the innerProperties property: The Event Hub data connection properties to validate. - * - * @return the innerProperties value. - */ - private EventHubConnectionProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - @Override - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public EventHubDataConnection withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * Get the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection. - * - * @return the eventHubResourceId value. - */ - public String eventHubResourceId() { - return this.innerProperties() == null ? null : this.innerProperties().eventHubResourceId(); - } - - /** - * Set the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection. - * - * @param eventHubResourceId the eventHubResourceId value to set. - * @return the EventHubDataConnection object itself. - */ - public EventHubDataConnection withEventHubResourceId(String eventHubResourceId) { - if (this.innerProperties() == null) { - this.innerProperties = new EventHubConnectionProperties(); - } - this.innerProperties().withEventHubResourceId(eventHubResourceId); - return this; - } - - /** - * Get the consumerGroup property: The event hub consumer group. - * - * @return the consumerGroup value. - */ - public String consumerGroup() { - return this.innerProperties() == null ? null : this.innerProperties().consumerGroup(); - } - - /** - * Set the consumerGroup property: The event hub consumer group. - * - * @param consumerGroup the consumerGroup value to set. - * @return the EventHubDataConnection object itself. - */ - public EventHubDataConnection withConsumerGroup(String consumerGroup) { - if (this.innerProperties() == null) { - this.innerProperties = new EventHubConnectionProperties(); - } - this.innerProperties().withConsumerGroup(consumerGroup); - return this; - } - - /** - * Get the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @return the tableName value. - */ - public String tableName() { - return this.innerProperties() == null ? null : this.innerProperties().tableName(); - } - - /** - * Set the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @param tableName the tableName value to set. - * @return the EventHubDataConnection object itself. - */ - public EventHubDataConnection withTableName(String tableName) { - if (this.innerProperties() == null) { - this.innerProperties = new EventHubConnectionProperties(); - } - this.innerProperties().withTableName(tableName); - return this; - } - - /** - * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @return the mappingRuleName value. - */ - public String mappingRuleName() { - return this.innerProperties() == null ? null : this.innerProperties().mappingRuleName(); - } - - /** - * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @param mappingRuleName the mappingRuleName value to set. - * @return the EventHubDataConnection object itself. - */ - public EventHubDataConnection withMappingRuleName(String mappingRuleName) { - if (this.innerProperties() == null) { - this.innerProperties = new EventHubConnectionProperties(); - } - this.innerProperties().withMappingRuleName(mappingRuleName); - return this; - } - - /** - * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @return the dataFormat value. - */ - public EventHubDataFormat dataFormat() { - return this.innerProperties() == null ? null : this.innerProperties().dataFormat(); - } - - /** - * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @param dataFormat the dataFormat value to set. - * @return the EventHubDataConnection object itself. - */ - public EventHubDataConnection withDataFormat(EventHubDataFormat dataFormat) { - if (this.innerProperties() == null) { - this.innerProperties = new EventHubConnectionProperties(); - } - this.innerProperties().withDataFormat(dataFormat); - return this; - } - - /** - * Get the eventSystemProperties property: System properties of the event hub. - * - * @return the eventSystemProperties value. - */ - public List eventSystemProperties() { - return this.innerProperties() == null ? null : this.innerProperties().eventSystemProperties(); - } - - /** - * Set the eventSystemProperties property: System properties of the event hub. - * - * @param eventSystemProperties the eventSystemProperties value to set. - * @return the EventHubDataConnection object itself. - */ - public EventHubDataConnection withEventSystemProperties(List eventSystemProperties) { - if (this.innerProperties() == null) { - this.innerProperties = new EventHubConnectionProperties(); - } - this.innerProperties().withEventSystemProperties(eventSystemProperties); - return this; - } - - /** - * Get the compression property: The event hub messages compression type. - * - * @return the compression value. - */ - public Compression compression() { - return this.innerProperties() == null ? null : this.innerProperties().compression(); - } - - /** - * Set the compression property: The event hub messages compression type. - * - * @param compression the compression value to set. - * @return the EventHubDataConnection object itself. - */ - public EventHubDataConnection withCompression(Compression compression) { - if (this.innerProperties() == null) { - this.innerProperties = new EventHubConnectionProperties(); - } - this.innerProperties().withCompression(compression); - return this; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. - * - * @return the managedIdentityResourceId value. - */ - public String managedIdentityResourceId() { - return this.innerProperties() == null ? null : this.innerProperties().managedIdentityResourceId(); - } - - /** - * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. - * - * @param managedIdentityResourceId the managedIdentityResourceId value to set. - * @return the EventHubDataConnection object itself. - */ - public EventHubDataConnection withManagedIdentityResourceId(String managedIdentityResourceId) { - if (this.innerProperties() == null) { - this.innerProperties = new EventHubConnectionProperties(); - } - this.innerProperties().withManagedIdentityResourceId(managedIdentityResourceId); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EventHubDataConnection from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EventHubDataConnection if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the EventHubDataConnection. - */ - public static EventHubDataConnection fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EventHubDataConnection deserializedEventHubDataConnection = new EventHubDataConnection(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedEventHubDataConnection.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedEventHubDataConnection.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedEventHubDataConnection.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedEventHubDataConnection.withLocation(reader.getString()); - } else if ("systemData".equals(fieldName)) { - deserializedEventHubDataConnection.systemData = SystemData.fromJson(reader); - } else if ("kind".equals(fieldName)) { - deserializedEventHubDataConnection.kind = DataConnectionKind.fromString(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedEventHubDataConnection.innerProperties = EventHubConnectionProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedEventHubDataConnection; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataFormat.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataFormat.java deleted file mode 100644 index 1c0fc0e7f9f3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataFormat.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The data format of the message. Optionally the data format can be added to each message. - */ -public final class EventHubDataFormat extends ExpandableStringEnum { - /** - * Static value MULTIJSON for EventHubDataFormat. - */ - public static final EventHubDataFormat MULTIJSON = fromString("MULTIJSON"); - - /** - * Static value JSON for EventHubDataFormat. - */ - public static final EventHubDataFormat JSON = fromString("JSON"); - - /** - * Static value CSV for EventHubDataFormat. - */ - public static final EventHubDataFormat CSV = fromString("CSV"); - - /** - * Static value TSV for EventHubDataFormat. - */ - public static final EventHubDataFormat TSV = fromString("TSV"); - - /** - * Static value SCSV for EventHubDataFormat. - */ - public static final EventHubDataFormat SCSV = fromString("SCSV"); - - /** - * Static value SOHSV for EventHubDataFormat. - */ - public static final EventHubDataFormat SOHSV = fromString("SOHSV"); - - /** - * Static value PSV for EventHubDataFormat. - */ - public static final EventHubDataFormat PSV = fromString("PSV"); - - /** - * Static value TXT for EventHubDataFormat. - */ - public static final EventHubDataFormat TXT = fromString("TXT"); - - /** - * Static value RAW for EventHubDataFormat. - */ - public static final EventHubDataFormat RAW = fromString("RAW"); - - /** - * Static value SINGLEJSON for EventHubDataFormat. - */ - public static final EventHubDataFormat SINGLEJSON = fromString("SINGLEJSON"); - - /** - * Static value AVRO for EventHubDataFormat. - */ - public static final EventHubDataFormat AVRO = fromString("AVRO"); - - /** - * Static value TSVE for EventHubDataFormat. - */ - public static final EventHubDataFormat TSVE = fromString("TSVE"); - - /** - * Static value PARQUET for EventHubDataFormat. - */ - public static final EventHubDataFormat PARQUET = fromString("PARQUET"); - - /** - * Static value ORC for EventHubDataFormat. - */ - public static final EventHubDataFormat ORC = fromString("ORC"); - - /** - * Static value APACHEAVRO for EventHubDataFormat. - */ - public static final EventHubDataFormat APACHEAVRO = fromString("APACHEAVRO"); - - /** - * Static value W3CLOGFILE for EventHubDataFormat. - */ - public static final EventHubDataFormat W3CLOGFILE = fromString("W3CLOGFILE"); - - /** - * Creates a new instance of EventHubDataFormat value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public EventHubDataFormat() { - } - - /** - * Creates or finds a EventHubDataFormat from its string representation. - * - * @param name a name to look for. - * @return the corresponding EventHubDataFormat. - */ - public static EventHubDataFormat fromString(String name) { - return fromString(name, EventHubDataFormat.class); - } - - /** - * Gets known EventHubDataFormat values. - * - * @return known EventHubDataFormat values. - */ - public static Collection values() { - return values(EventHubDataFormat.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java index a27da6ba535a..7c115af5053b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java @@ -196,26 +196,6 @@ public interface ExtendedServerBlobAuditingPolicy { */ Integer queueDelayMs(); - /** - * Gets the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs - * will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @return the isDevopsAuditEnabled value. - */ - Boolean isDevopsAuditEnabled(); - /** * Gets the name of the resource group. * @@ -269,8 +249,7 @@ interface WithCreate extends DefinitionStages.WithPredicateExpression, Definitio DefinitionStages.WithStorageEndpoint, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithRetentionDays, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithIsStorageSecondaryKeyInUse, - DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithQueueDelayMs, - DefinitionStages.WithIsDevopsAuditEnabled { + DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithQueueDelayMs { /** * Executes the create request. * @@ -605,46 +584,6 @@ interface WithQueueDelayMs { */ WithCreate withQueueDelayMs(Integer queueDelayMs); } - - /** - * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify isDevopsAuditEnabled. - */ - interface WithIsDevopsAuditEnabled { - /** - * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, - * devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' - * as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic - * logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * . - * - * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be - * sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' - * as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic - * logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * @return the next definition stage. - */ - WithCreate withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); - } } /** @@ -657,11 +596,11 @@ interface WithIsDevopsAuditEnabled { /** * The template for ExtendedServerBlobAuditingPolicy update. */ - interface Update - extends UpdateStages.WithPredicateExpression, UpdateStages.WithState, UpdateStages.WithStorageEndpoint, - UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithAuditActionsAndGroups, + interface Update extends UpdateStages.WithPredicateExpression, UpdateStages.WithState, + UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithRetentionDays, + UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled, - UpdateStages.WithQueueDelayMs, UpdateStages.WithIsDevopsAuditEnabled { + UpdateStages.WithQueueDelayMs { /** * Executes the update request. * @@ -757,6 +696,20 @@ interface WithStorageAccountAccessKey { Update withStorageAccountAccessKey(String storageAccountAccessKey); } + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify retentionDays. + */ + interface WithRetentionDays { + /** + * Specifies the retentionDays property: Specifies the number of days to keep in the audit logs in the + * storage account.. + * + * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account. + * @return the next definition stage. + */ + Update withRetentionDays(Integer retentionDays); + } + /** * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify auditActionsAndGroups. */ @@ -900,6 +853,19 @@ interface WithAuditActionsAndGroups { Update withAuditActionsAndGroups(List auditActionsAndGroups); } + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify storageAccountSubscriptionId. + */ + interface WithStorageAccountSubscriptionId { + /** + * Specifies the storageAccountSubscriptionId property: Specifies the blob storage subscription Id.. + * + * @param storageAccountSubscriptionId Specifies the blob storage subscription Id. + * @return the next definition stage. + */ + Update withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId); + } + /** * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. */ @@ -972,46 +938,6 @@ interface WithQueueDelayMs { */ Update withQueueDelayMs(Integer queueDelayMs); } - - /** - * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isDevopsAuditEnabled. - */ - interface WithIsDevopsAuditEnabled { - /** - * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, - * devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' - * as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic - * logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * . - * - * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be - * sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' - * as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic - * logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * @return the next definition stage. - */ - Update withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); - } } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseDefinition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseDefinition.java deleted file mode 100644 index bbb1b75f5618..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseDefinition.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; - -/** - * An immutable client-side representation of FollowerDatabaseDefinition. - */ -public interface FollowerDatabaseDefinition { - /** - * Gets the kustoPoolResourceId property: Resource id of the cluster that follows a database owned by this cluster. - * - * @return the kustoPoolResourceId value. - */ - String kustoPoolResourceId(); - - /** - * Gets the attachedDatabaseConfigurationName property: Resource name of the attached database configuration in the - * follower cluster. - * - * @return the attachedDatabaseConfigurationName value. - */ - String attachedDatabaseConfigurationName(); - - /** - * Gets the databaseName property: The database name owned by this cluster that was followed. * in case following - * all databases. - * - * @return the databaseName value. - */ - String databaseName(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner object. - * - * @return the inner object. - */ - FollowerDatabaseDefinitionInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java deleted file mode 100644 index 9897230e8257..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import java.io.IOException; -import java.util.List; - -/** - * The list Kusto database principals operation response. - */ -@Fluent -public final class FollowerDatabaseListResult implements JsonSerializable { - /* - * The list of follower database result. - */ - private List value; - - /** - * Creates an instance of FollowerDatabaseListResult class. - */ - public FollowerDatabaseListResult() { - } - - /** - * Get the value property: The list of follower database result. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of follower database result. - * - * @param value the value value to set. - * @return the FollowerDatabaseListResult object itself. - */ - public FollowerDatabaseListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of FollowerDatabaseListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of FollowerDatabaseListResult if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IOException If an error occurs while reading the FollowerDatabaseListResult. - */ - public static FollowerDatabaseListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - FollowerDatabaseListResult deserializedFollowerDatabaseListResult = new FollowerDatabaseListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> FollowerDatabaseDefinitionInner.fromJson(reader1)); - deserializedFollowerDatabaseListResult.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedFollowerDatabaseListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Gets.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Gets.java deleted file mode 100644 index 34b3fdad5d44..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Gets.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of Gets. - */ -public interface Gets { - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status along with {@link Response}. - */ - Response integrationRuntimeStartWithResponse(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context); - - /** - * Get integration runtime start operation status - * - * Get an integration runtime start operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime start operation status. - */ - IntegrationRuntimeOperationStatus integrationRuntimeStart(String resourceGroupName, String workspaceName, - String integrationRuntimeName, String integrationRuntimeOperationId); - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status along with {@link Response}. - */ - Response integrationRuntimeStopWithResponse(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context); - - /** - * Get integration runtime stop operation status - * - * Get an integration runtime stop operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime stop operation status. - */ - IntegrationRuntimeStopOperationStatus integrationRuntimeStop(String resourceGroupName, String workspaceName, - String integrationRuntimeName, String integrationRuntimeOperationId); - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status along with {@link Response}. - */ - Response integrationRuntimeEnableInteractivequeryWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, - String integrationRuntimeOperationId, Context context); - - /** - * Get integration runtime enable interactivequery operation status - * - * Get an integration runtime enable interactivequery operation status. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name. - * @param integrationRuntimeOperationId Integration runtime Operation Id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime enable interactivequery operation status. - */ - IntegrationRuntimeEnableinteractivequery integrationRuntimeEnableInteractivequery(String resourceGroupName, - String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java index 50d4504c7a60..ecd1230f91bb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java @@ -34,12 +34,6 @@ public final class IntegrationRuntimeDataFlowProperties */ private Integer timeToLive; - /* - * Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is - * reached if this is set as false. Default is true. - */ - private Boolean cleanup; - /* * Data flow properties for managed integration runtime. */ @@ -113,28 +107,6 @@ public IntegrationRuntimeDataFlowProperties withTimeToLive(Integer timeToLive) { return this; } - /** - * Get the cleanup property: Cluster will not be recycled and it will be used in next data flow activity run until - * TTL (time to live) is reached if this is set as false. Default is true. - * - * @return the cleanup value. - */ - public Boolean cleanup() { - return this.cleanup; - } - - /** - * Set the cleanup property: Cluster will not be recycled and it will be used in next data flow activity run until - * TTL (time to live) is reached if this is set as false. Default is true. - * - * @param cleanup the cleanup value to set. - * @return the IntegrationRuntimeDataFlowProperties object itself. - */ - public IntegrationRuntimeDataFlowProperties withCleanup(Boolean cleanup) { - this.cleanup = cleanup; - return this; - } - /** * Get the additionalProperties property: Data flow properties for managed integration runtime. * @@ -172,7 +144,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("computeType", this.computeType == null ? null : this.computeType.toString()); jsonWriter.writeNumberField("coreCount", this.coreCount); jsonWriter.writeNumberField("timeToLive", this.timeToLive); - jsonWriter.writeBooleanField("cleanup", this.cleanup); if (additionalProperties != null) { for (Map.Entry additionalProperty : additionalProperties.entrySet()) { jsonWriter.writeUntypedField(additionalProperty.getKey(), additionalProperty.getValue()); @@ -206,9 +177,6 @@ public static IntegrationRuntimeDataFlowProperties fromJson(JsonReader jsonReade } else if ("timeToLive".equals(fieldName)) { deserializedIntegrationRuntimeDataFlowProperties.timeToLive = reader.getNullable(JsonReader::getInt); - } else if ("cleanup".equals(fieldName)) { - deserializedIntegrationRuntimeDataFlowProperties.cleanup - = reader.getNullable(JsonReader::getBoolean); } else { if (additionalProperties == null) { additionalProperties = new LinkedHashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEnableinteractivequery.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEnableinteractivequery.java deleted file mode 100644 index bd8019f2d399..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEnableinteractivequery.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner; - -/** - * An immutable client-side representation of IntegrationRuntimeEnableinteractivequery. - */ -public interface IntegrationRuntimeEnableinteractivequery { - /** - * Gets the status property: EnableInteractivequery status of Integrationruntimes. - * - * @return the status value. - */ - WorkspaceStatus status(); - - /** - * Gets the name property: The operation name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the properties property: The operation properties. - * - * @return the properties value. - */ - Object properties(); - - /** - * Gets the error property: The operation error message. - * - * @return the error value. - */ - String error(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner - * object. - * - * @return the inner object. - */ - IntegrationRuntimeEnableinteractivequeryInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOperationStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOperationStatus.java deleted file mode 100644 index 6811aac83c85..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOperationStatus.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; - -/** - * An immutable client-side representation of IntegrationRuntimeOperationStatus. - */ -public interface IntegrationRuntimeOperationStatus { - /** - * Gets the status property: status of Start Integrationruntimes. - * - * @return the status value. - */ - WorkspaceStatus status(); - - /** - * Gets the name property: The operation name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the properties property: The operation properties. - * - * @return the properties value. - */ - Object properties(); - - /** - * Gets the error property: The operation error message. - * - * @return the error value. - */ - String error(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner object. - * - * @return the inner object. - */ - IntegrationRuntimeOperationStatusInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStopOperationStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStopOperationStatus.java deleted file mode 100644 index 442c04e32c3c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStopOperationStatus.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; - -/** - * An immutable client-side representation of IntegrationRuntimeStopOperationStatus. - */ -public interface IntegrationRuntimeStopOperationStatus { - /** - * Gets the status property: status of Start Integrationruntimes. - * - * @return the status value. - */ - WorkspaceStatus status(); - - /** - * Gets the name property: The operation name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the properties property: The operation properties. - * - * @return the properties value. - */ - Object properties(); - - /** - * Gets the error property: The operation error message. - * - * @return the error value. - */ - String error(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner object. - * - * @return the inner object. - */ - IntegrationRuntimeStopOperationStatusInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java deleted file mode 100644 index 6bba2aff30d4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java +++ /dev/null @@ -1,364 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.IotHubConnectionProperties; -import java.io.IOException; -import java.util.List; - -/** - * Class representing an iot hub data connection. - */ -@Fluent -public final class IotHubDataConnection extends DataConnectionInner { - /* - * Kind of the endpoint for the data connection - */ - private DataConnectionKind kind = DataConnectionKind.IOT_HUB; - - /* - * The Iot Hub data connection properties. - */ - private IotHubConnectionProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of IotHubDataConnection class. - */ - public IotHubDataConnection() { - } - - /** - * Get the kind property: Kind of the endpoint for the data connection. - * - * @return the kind value. - */ - @Override - public DataConnectionKind kind() { - return this.kind; - } - - /** - * Get the innerProperties property: The Iot Hub data connection properties. - * - * @return the innerProperties value. - */ - private IotHubConnectionProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - @Override - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public IotHubDataConnection withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * Get the iotHubResourceId property: The resource ID of the Iot hub to be used to create a data connection. - * - * @return the iotHubResourceId value. - */ - public String iotHubResourceId() { - return this.innerProperties() == null ? null : this.innerProperties().iotHubResourceId(); - } - - /** - * Set the iotHubResourceId property: The resource ID of the Iot hub to be used to create a data connection. - * - * @param iotHubResourceId the iotHubResourceId value to set. - * @return the IotHubDataConnection object itself. - */ - public IotHubDataConnection withIotHubResourceId(String iotHubResourceId) { - if (this.innerProperties() == null) { - this.innerProperties = new IotHubConnectionProperties(); - } - this.innerProperties().withIotHubResourceId(iotHubResourceId); - return this; - } - - /** - * Get the consumerGroup property: The iot hub consumer group. - * - * @return the consumerGroup value. - */ - public String consumerGroup() { - return this.innerProperties() == null ? null : this.innerProperties().consumerGroup(); - } - - /** - * Set the consumerGroup property: The iot hub consumer group. - * - * @param consumerGroup the consumerGroup value to set. - * @return the IotHubDataConnection object itself. - */ - public IotHubDataConnection withConsumerGroup(String consumerGroup) { - if (this.innerProperties() == null) { - this.innerProperties = new IotHubConnectionProperties(); - } - this.innerProperties().withConsumerGroup(consumerGroup); - return this; - } - - /** - * Get the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @return the tableName value. - */ - public String tableName() { - return this.innerProperties() == null ? null : this.innerProperties().tableName(); - } - - /** - * Set the tableName property: The table where the data should be ingested. Optionally the table information can be - * added to each message. - * - * @param tableName the tableName value to set. - * @return the IotHubDataConnection object itself. - */ - public IotHubDataConnection withTableName(String tableName) { - if (this.innerProperties() == null) { - this.innerProperties = new IotHubConnectionProperties(); - } - this.innerProperties().withTableName(tableName); - return this; - } - - /** - * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @return the mappingRuleName value. - */ - public String mappingRuleName() { - return this.innerProperties() == null ? null : this.innerProperties().mappingRuleName(); - } - - /** - * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. - * - * @param mappingRuleName the mappingRuleName value to set. - * @return the IotHubDataConnection object itself. - */ - public IotHubDataConnection withMappingRuleName(String mappingRuleName) { - if (this.innerProperties() == null) { - this.innerProperties = new IotHubConnectionProperties(); - } - this.innerProperties().withMappingRuleName(mappingRuleName); - return this; - } - - /** - * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @return the dataFormat value. - */ - public IotHubDataFormat dataFormat() { - return this.innerProperties() == null ? null : this.innerProperties().dataFormat(); - } - - /** - * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each - * message. - * - * @param dataFormat the dataFormat value to set. - * @return the IotHubDataConnection object itself. - */ - public IotHubDataConnection withDataFormat(IotHubDataFormat dataFormat) { - if (this.innerProperties() == null) { - this.innerProperties = new IotHubConnectionProperties(); - } - this.innerProperties().withDataFormat(dataFormat); - return this; - } - - /** - * Get the eventSystemProperties property: System properties of the iot hub. - * - * @return the eventSystemProperties value. - */ - public List eventSystemProperties() { - return this.innerProperties() == null ? null : this.innerProperties().eventSystemProperties(); - } - - /** - * Set the eventSystemProperties property: System properties of the iot hub. - * - * @param eventSystemProperties the eventSystemProperties value to set. - * @return the IotHubDataConnection object itself. - */ - public IotHubDataConnection withEventSystemProperties(List eventSystemProperties) { - if (this.innerProperties() == null) { - this.innerProperties = new IotHubConnectionProperties(); - } - this.innerProperties().withEventSystemProperties(eventSystemProperties); - return this; - } - - /** - * Get the sharedAccessPolicyName property: The name of the share access policy. - * - * @return the sharedAccessPolicyName value. - */ - public String sharedAccessPolicyName() { - return this.innerProperties() == null ? null : this.innerProperties().sharedAccessPolicyName(); - } - - /** - * Set the sharedAccessPolicyName property: The name of the share access policy. - * - * @param sharedAccessPolicyName the sharedAccessPolicyName value to set. - * @return the IotHubDataConnection object itself. - */ - public IotHubDataConnection withSharedAccessPolicyName(String sharedAccessPolicyName) { - if (this.innerProperties() == null) { - this.innerProperties = new IotHubConnectionProperties(); - } - this.innerProperties().withSharedAccessPolicyName(sharedAccessPolicyName); - return this; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IotHubDataConnection from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IotHubDataConnection if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the IotHubDataConnection. - */ - public static IotHubDataConnection fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IotHubDataConnection deserializedIotHubDataConnection = new IotHubDataConnection(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedIotHubDataConnection.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedIotHubDataConnection.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedIotHubDataConnection.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedIotHubDataConnection.withLocation(reader.getString()); - } else if ("systemData".equals(fieldName)) { - deserializedIotHubDataConnection.systemData = SystemData.fromJson(reader); - } else if ("kind".equals(fieldName)) { - deserializedIotHubDataConnection.kind = DataConnectionKind.fromString(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedIotHubDataConnection.innerProperties = IotHubConnectionProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedIotHubDataConnection; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataFormat.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataFormat.java deleted file mode 100644 index ce20f4a8e658..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataFormat.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The data format of the message. Optionally the data format can be added to each message. - */ -public final class IotHubDataFormat extends ExpandableStringEnum { - /** - * Static value MULTIJSON for IotHubDataFormat. - */ - public static final IotHubDataFormat MULTIJSON = fromString("MULTIJSON"); - - /** - * Static value JSON for IotHubDataFormat. - */ - public static final IotHubDataFormat JSON = fromString("JSON"); - - /** - * Static value CSV for IotHubDataFormat. - */ - public static final IotHubDataFormat CSV = fromString("CSV"); - - /** - * Static value TSV for IotHubDataFormat. - */ - public static final IotHubDataFormat TSV = fromString("TSV"); - - /** - * Static value SCSV for IotHubDataFormat. - */ - public static final IotHubDataFormat SCSV = fromString("SCSV"); - - /** - * Static value SOHSV for IotHubDataFormat. - */ - public static final IotHubDataFormat SOHSV = fromString("SOHSV"); - - /** - * Static value PSV for IotHubDataFormat. - */ - public static final IotHubDataFormat PSV = fromString("PSV"); - - /** - * Static value TXT for IotHubDataFormat. - */ - public static final IotHubDataFormat TXT = fromString("TXT"); - - /** - * Static value RAW for IotHubDataFormat. - */ - public static final IotHubDataFormat RAW = fromString("RAW"); - - /** - * Static value SINGLEJSON for IotHubDataFormat. - */ - public static final IotHubDataFormat SINGLEJSON = fromString("SINGLEJSON"); - - /** - * Static value AVRO for IotHubDataFormat. - */ - public static final IotHubDataFormat AVRO = fromString("AVRO"); - - /** - * Static value TSVE for IotHubDataFormat. - */ - public static final IotHubDataFormat TSVE = fromString("TSVE"); - - /** - * Static value PARQUET for IotHubDataFormat. - */ - public static final IotHubDataFormat PARQUET = fromString("PARQUET"); - - /** - * Static value ORC for IotHubDataFormat. - */ - public static final IotHubDataFormat ORC = fromString("ORC"); - - /** - * Static value APACHEAVRO for IotHubDataFormat. - */ - public static final IotHubDataFormat APACHEAVRO = fromString("APACHEAVRO"); - - /** - * Static value W3CLOGFILE for IotHubDataFormat. - */ - public static final IotHubDataFormat W3CLOGFILE = fromString("W3CLOGFILE"); - - /** - * Creates a new instance of IotHubDataFormat value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public IotHubDataFormat() { - } - - /** - * Creates or finds a IotHubDataFormat from its string representation. - * - * @param name a name to look for. - * @return the corresponding IotHubDataFormat. - */ - public static IotHubDataFormat fromString(String name) { - return fromString(name, IotHubDataFormat.class); - } - - /** - * Gets known IotHubDataFormat values. - * - * @return known IotHubDataFormat values. - */ - public static Collection values() { - return values(IotHubDataFormat.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java index 2a6233a937eb..5d968b2b8b29 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java @@ -46,9 +46,9 @@ public interface IpFirewallRules { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule. + * @return any object. */ - IpFirewallRuleInfo delete(String resourceGroupName, String workspaceName, String ruleName); + Object delete(String resourceGroupName, String workspaceName, String ruleName); /** * Deletes a firewall rule. @@ -60,9 +60,9 @@ public interface IpFirewallRules { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule. + * @return any object. */ - IpFirewallRuleInfo delete(String resourceGroupName, String workspaceName, String ruleName, Context context); + Object delete(String resourceGroupName, String workspaceName, String ruleName, Context context); /** * Get a firewall rule. @@ -151,9 +151,9 @@ ReplaceAllFirewallRulesOperationResponse replaceAll(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule. + * @return any object. */ - IpFirewallRuleInfo deleteById(String id); + Object deleteById(String id); /** * Deletes a firewall rule. @@ -163,9 +163,9 @@ ReplaceAllFirewallRulesOperationResponse replaceAll(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule. + * @return any object. */ - IpFirewallRuleInfo deleteByIdWithResponse(String id, Context context); + Object deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new IpFirewallRuleInfo resource. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java deleted file mode 100644 index b979041941ca..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Key encryption key properties. - */ -@Fluent -public final class KekIdentityProperties implements JsonSerializable { - /* - * User assigned identity resource Id - */ - private String userAssignedIdentity; - - /* - * Boolean specifying whether to use system assigned identity or not - */ - private Object useSystemAssignedIdentity; - - /** - * Creates an instance of KekIdentityProperties class. - */ - public KekIdentityProperties() { - } - - /** - * Get the userAssignedIdentity property: User assigned identity resource Id. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: User assigned identity resource Id. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the KekIdentityProperties object itself. - */ - public KekIdentityProperties withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * Get the useSystemAssignedIdentity property: Boolean specifying whether to use system assigned identity or not. - * - * @return the useSystemAssignedIdentity value. - */ - public Object useSystemAssignedIdentity() { - return this.useSystemAssignedIdentity; - } - - /** - * Set the useSystemAssignedIdentity property: Boolean specifying whether to use system assigned identity or not. - * - * @param useSystemAssignedIdentity the useSystemAssignedIdentity value to set. - * @return the KekIdentityProperties object itself. - */ - public KekIdentityProperties withUseSystemAssignedIdentity(Object useSystemAssignedIdentity) { - this.useSystemAssignedIdentity = useSystemAssignedIdentity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("userAssignedIdentity", this.userAssignedIdentity); - jsonWriter.writeUntypedField("useSystemAssignedIdentity", this.useSystemAssignedIdentity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KekIdentityProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KekIdentityProperties if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the KekIdentityProperties. - */ - public static KekIdentityProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KekIdentityProperties deserializedKekIdentityProperties = new KekIdentityProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("userAssignedIdentity".equals(fieldName)) { - deserializedKekIdentityProperties.userAssignedIdentity = reader.getString(); - } else if ("useSystemAssignedIdentity".equals(fieldName)) { - deserializedKekIdentityProperties.useSystemAssignedIdentity = reader.readUntyped(); - } else { - reader.skipChildren(); - } - } - - return deserializedKekIdentityProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Key.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Key.java index 6510b156dba6..5a15ee762068 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Key.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Key.java @@ -150,7 +150,7 @@ interface WithKeyVaultUrl { /** * The template for Key update. */ - interface Update extends UpdateStages.WithIsActiveCmk { + interface Update extends UpdateStages.WithIsActiveCmk, UpdateStages.WithKeyVaultUrl { /** * Executes the update request. * @@ -184,6 +184,19 @@ interface WithIsActiveCmk { */ Update withIsActiveCmk(Boolean isActiveCmk); } + + /** + * The stage of the Key update allowing to specify keyVaultUrl. + */ + interface WithKeyVaultUrl { + /** + * Specifies the keyVaultUrl property: The Key Vault Url of the workspace key.. + * + * @param keyVaultUrl The Key Vault Url of the workspace key. + * @return the next definition stage. + */ + Update withKeyVaultUrl(String keyVaultUrl); + } } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Kind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Kind.java deleted file mode 100644 index e86d7388ae65..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Kind.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Kind of the database. - */ -public final class Kind extends ExpandableStringEnum { - /** - * Static value ReadWrite for Kind. - */ - public static final Kind READ_WRITE = fromString("ReadWrite"); - - /** - * Static value ReadOnlyFollowing for Kind. - */ - public static final Kind READ_ONLY_FOLLOWING = fromString("ReadOnlyFollowing"); - - /** - * Creates a new instance of Kind value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public Kind() { - } - - /** - * Creates or finds a Kind from its string representation. - * - * @param name a name to look for. - * @return the corresponding Kind. - */ - public static Kind fromString(String name) { - return fromString(name, Kind.class); - } - - /** - * Gets known Kind values. - * - * @return known Kind values. - */ - public static Collection values() { - return values(Kind.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java deleted file mode 100644 index 1bb3bdfcc974..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; - -/** - * Resource collection API of KustoOperations. - */ -public interface KustoOperations { - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. - */ - PagedIterable list(Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java deleted file mode 100644 index 9c916fd1c74b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java +++ /dev/null @@ -1,627 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import java.util.Map; - -/** - * An immutable client-side representation of KustoPool. - */ -public interface KustoPool { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the sku property: The SKU of the kusto pool. - * - * @return the sku value. - */ - AzureSku sku(); - - /** - * Gets the etag property: A unique read-only string that changes whenever the resource is updated. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the state property: The state of the resource. - * - * @return the state value. - */ - State state(); - - /** - * Gets the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - ResourceProvisioningState provisioningState(); - - /** - * Gets the uri property: The Kusto Pool URI. - * - * @return the uri value. - */ - String uri(); - - /** - * Gets the dataIngestionUri property: The Kusto Pool data ingestion URI. - * - * @return the dataIngestionUri value. - */ - String dataIngestionUri(); - - /** - * Gets the stateReason property: The reason for the Kusto Pool's current state. - * - * @return the stateReason value. - */ - String stateReason(); - - /** - * Gets the optimizedAutoscale property: Optimized auto scale definition. - * - * @return the optimizedAutoscale value. - */ - OptimizedAutoscale optimizedAutoscale(); - - /** - * Gets the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * - * @return the enableStreamingIngest value. - */ - Boolean enableStreamingIngest(); - - /** - * Gets the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * - * @return the enablePurge value. - */ - Boolean enablePurge(); - - /** - * Gets the languageExtensions property: List of the Kusto Pool's language extensions. - * - * @return the languageExtensions value. - */ - LanguageExtensionsList languageExtensions(); - - /** - * Gets the workspaceUid property: The workspace unique identifier. - * - * @return the workspaceUid value. - */ - String workspaceUid(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner object. - * - * @return the inner object. - */ - KustoPoolInner innerModel(); - - /** - * The entirety of the KustoPool definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithSku, DefinitionStages.WithCreate { - } - - /** - * The KustoPool definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the KustoPool definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the KustoPool definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the KustoPool definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies workspaceName, resourceGroupName. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithSku withExistingWorkspace(String workspaceName, String resourceGroupName); - } - - /** - * The stage of the KustoPool definition allowing to specify sku. - */ - interface WithSku { - /** - * Specifies the sku property: The SKU of the kusto pool.. - * - * @param sku The SKU of the kusto pool. - * @return the next definition stage. - */ - WithCreate withSku(AzureSku sku); - } - - /** - * The stage of the KustoPool definition which contains all the minimum required properties for the resource to - * be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithOptimizedAutoscale, - DefinitionStages.WithEnableStreamingIngest, DefinitionStages.WithEnablePurge, - DefinitionStages.WithWorkspaceUid, DefinitionStages.WithIfMatch, DefinitionStages.WithIfNoneMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - KustoPool create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - KustoPool create(Context context); - } - - /** - * The stage of the KustoPool definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the KustoPool definition allowing to specify optimizedAutoscale. - */ - interface WithOptimizedAutoscale { - /** - * Specifies the optimizedAutoscale property: Optimized auto scale definition.. - * - * @param optimizedAutoscale Optimized auto scale definition. - * @return the next definition stage. - */ - WithCreate withOptimizedAutoscale(OptimizedAutoscale optimizedAutoscale); - } - - /** - * The stage of the KustoPool definition allowing to specify enableStreamingIngest. - */ - interface WithEnableStreamingIngest { - /** - * Specifies the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is - * enabled.. - * - * @param enableStreamingIngest A boolean value that indicates if the streaming ingest is enabled. - * @return the next definition stage. - */ - WithCreate withEnableStreamingIngest(Boolean enableStreamingIngest); - } - - /** - * The stage of the KustoPool definition allowing to specify enablePurge. - */ - interface WithEnablePurge { - /** - * Specifies the enablePurge property: A boolean value that indicates if the purge operations are enabled.. - * - * @param enablePurge A boolean value that indicates if the purge operations are enabled. - * @return the next definition stage. - */ - WithCreate withEnablePurge(Boolean enablePurge); - } - - /** - * The stage of the KustoPool definition allowing to specify workspaceUid. - */ - interface WithWorkspaceUid { - /** - * Specifies the workspaceUid property: The workspace unique identifier.. - * - * @param workspaceUid The workspace unique identifier. - * @return the next definition stage. - */ - WithCreate withWorkspaceUid(String workspaceUid); - } - - /** - * The stage of the KustoPool definition allowing to specify ifMatch. - */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: The ETag of the Kusto Pool. Omit this value to always overwrite the - * current Kusto Pool. Specify the last-seen ETag value to prevent accidentally overwriting concurrent - * changes.. - * - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. - * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - - /** - * The stage of the KustoPool definition allowing to specify ifNoneMatch. - */ - interface WithIfNoneMatch { - /** - * Specifies the ifNoneMatch property: Set to '*' to allow a new Kusto Pool to be created, but to prevent - * updating an existing Kusto Pool. Other values will result in a 412 Pre-condition Failed response.. - * - * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an - * existing Kusto Pool. Other values will result in a 412 Pre-condition Failed response. - * @return the next definition stage. - */ - WithCreate withIfNoneMatch(String ifNoneMatch); - } - } - - /** - * Begins update for the KustoPool resource. - * - * @return the stage of resource update. - */ - KustoPool.Update update(); - - /** - * The template for KustoPool update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithOptimizedAutoscale, - UpdateStages.WithEnableStreamingIngest, UpdateStages.WithEnablePurge, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - KustoPool apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - KustoPool apply(Context context); - } - - /** - * The KustoPool update stages. - */ - interface UpdateStages { - /** - * The stage of the KustoPool update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the KustoPool update allowing to specify sku. - */ - interface WithSku { - /** - * Specifies the sku property: The SKU of the kusto pool.. - * - * @param sku The SKU of the kusto pool. - * @return the next definition stage. - */ - Update withSku(AzureSku sku); - } - - /** - * The stage of the KustoPool update allowing to specify optimizedAutoscale. - */ - interface WithOptimizedAutoscale { - /** - * Specifies the optimizedAutoscale property: Optimized auto scale definition.. - * - * @param optimizedAutoscale Optimized auto scale definition. - * @return the next definition stage. - */ - Update withOptimizedAutoscale(OptimizedAutoscale optimizedAutoscale); - } - - /** - * The stage of the KustoPool update allowing to specify enableStreamingIngest. - */ - interface WithEnableStreamingIngest { - /** - * Specifies the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is - * enabled.. - * - * @param enableStreamingIngest A boolean value that indicates if the streaming ingest is enabled. - * @return the next definition stage. - */ - Update withEnableStreamingIngest(Boolean enableStreamingIngest); - } - - /** - * The stage of the KustoPool update allowing to specify enablePurge. - */ - interface WithEnablePurge { - /** - * Specifies the enablePurge property: A boolean value that indicates if the purge operations are enabled.. - * - * @param enablePurge A boolean value that indicates if the purge operations are enabled. - * @return the next definition stage. - */ - Update withEnablePurge(Boolean enablePurge); - } - - /** - * The stage of the KustoPool update allowing to specify ifMatch. - */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: The ETag of the Kusto Pool. Omit this value to always overwrite the - * current Kusto Pool. Specify the last-seen ETag value to prevent accidentally overwriting concurrent - * changes.. - * - * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. - * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - KustoPool refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - KustoPool refresh(Context context); - - /** - * Stops a Kusto pool. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(); - - /** - * Stops a Kusto pool. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(Context context); - - /** - * Starts a Kusto pool. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void start(); - - /** - * Starts a Kusto pool. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void start(Context context); - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedIterable}. - */ - PagedIterable listLanguageExtensions(); - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedIterable}. - */ - PagedIterable listLanguageExtensions(Context context); - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void addLanguageExtensions(LanguageExtensionsList languageExtensionsToAdd); - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void addLanguageExtensions(LanguageExtensionsList languageExtensionsToAdd, Context context); - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void removeLanguageExtensions(LanguageExtensionsList languageExtensionsToRemove); - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void removeLanguageExtensions(LanguageExtensionsList languageExtensionsToRemove, Context context); - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. - */ - PagedIterable listFollowerDatabases(); - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. - */ - PagedIterable listFollowerDatabases(Context context); - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void detachFollowerDatabases(FollowerDatabaseDefinitionInner followerDatabaseToRemove); - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void detachFollowerDatabases(FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java deleted file mode 100644 index c4bf88d31b4d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of KustoPoolAttachedDatabaseConfigurations. - */ -public interface KustoPoolAttachedDatabaseConfigurations { - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with - * {@link PagedIterable}. - */ - PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Returns the list of attached database configurations of the given Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with - * {@link PagedIterable}. - */ - PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response}. - */ - Response getWithResponse(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName, Context context); - - /** - * Returns an attached database configuration. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration. - */ - AttachedDatabaseConfiguration get(String workspaceName, String kustoPoolName, - String attachedDatabaseConfigurationName, String resourceGroupName); - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName); - - /** - * Deletes the attached database configuration with the given name. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param attachedDatabaseConfigurationName The name of the attached database configuration. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, Context context); - - /** - * Returns an attached database configuration. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response}. - */ - AttachedDatabaseConfiguration getById(String id); - - /** - * Returns an attached database configuration. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Deletes the attached database configuration with the given name. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes the attached database configuration with the given name. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new AttachedDatabaseConfiguration resource. - * - * @param name resource name. - * @return the first stage of the new AttachedDatabaseConfiguration definition. - */ - AttachedDatabaseConfiguration.DefinitionStages.Blank define(String name); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java deleted file mode 100644 index 1d48d005d7fa..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The object sent for a kusto pool check name availability request. - */ -@Fluent -public final class KustoPoolCheckNameRequest implements JsonSerializable { - /* - * Kusto Pool name. - */ - private String name; - - /* - * The type of resource, Microsoft.Synapse/workspaces/kustoPools. - */ - private String type = "Microsoft.Synapse/workspaces/kustoPools"; - - /** - * Creates an instance of KustoPoolCheckNameRequest class. - */ - public KustoPoolCheckNameRequest() { - } - - /** - * Get the name property: Kusto Pool name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Kusto Pool name. - * - * @param name the name value to set. - * @return the KustoPoolCheckNameRequest object itself. - */ - public KustoPoolCheckNameRequest withName(String name) { - this.name = name; - return this; - } - - /** - * Get the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools. - * - * @param type the type value to set. - * @return the KustoPoolCheckNameRequest object itself. - */ - public KustoPoolCheckNameRequest withType(String type) { - this.type = type; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property name in model KustoPoolCheckNameRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(KustoPoolCheckNameRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KustoPoolCheckNameRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KustoPoolCheckNameRequest if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the KustoPoolCheckNameRequest. - */ - public static KustoPoolCheckNameRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KustoPoolCheckNameRequest deserializedKustoPoolCheckNameRequest = new KustoPoolCheckNameRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedKustoPoolCheckNameRequest.name = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedKustoPoolCheckNameRequest; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolChildResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolChildResources.java deleted file mode 100644 index 5f7855e9b23f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolChildResources.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of KustoPoolChildResources. - */ -public interface KustoPoolChildResources { - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context); - - /** - * Checks that the Kusto Pool child resource name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Kusto Pool child resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, - DatabaseCheckNameRequest resourceName); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java deleted file mode 100644 index dcd6ab44e6a9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; - -/** - * Resource collection API of KustoPoolDataConnections. - */ -public interface KustoPoolDataConnections { - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - Response checkNameAvailabilityWithResponse(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName, Context context); - - /** - * Checks that the data connection name is valid and is not already in use. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - CheckNameResult checkNameAvailability(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, DataConnectionCheckNameRequest dataConnectionName); - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result. - */ - DataConnectionValidationListResult dataConnectionValidation(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionValidationInner parameters); - - /** - * Checks that the data connection parameters are valid. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result. - */ - DataConnectionValidationListResult dataConnectionValidation(String resourceGroupName, String workspaceName, - String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context); - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. - */ - PagedIterable listByDatabase(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName); - - /** - * Returns the list of data connections of the given Kusto pool database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. - */ - PagedIterable listByDatabase(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, Context context); - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, Context context); - - /** - * Returns a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - DataConnection get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName); - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - DataConnection createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters); - - /** - * Creates or updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - DataConnection createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context); - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - DataConnection update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, DataConnectionInner parameters); - - /** - * Updates a data connection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param parameters The data connection parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection. - */ - DataConnection update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, DataConnectionInner parameters, Context context); - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName); - - /** - * Deletes the data connection with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param dataConnectionName The name of the data connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java deleted file mode 100644 index 13610033c231..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java +++ /dev/null @@ -1,197 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of KustoPoolDatabasePrincipalAssignments. - */ -public interface KustoPoolDatabasePrincipalAssignments { - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context); - - /** - * Checks that the database principal assignment is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String databaseName, - String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String workspaceName, String kustoPoolName, String databaseName, - String resourceGroupName); - - /** - * Lists all Kusto pool database principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String workspaceName, String kustoPoolName, String databaseName, - String resourceGroupName, Context context); - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response}. - */ - Response getWithResponse(String workspaceName, String kustoPoolName, - String databaseName, String principalAssignmentName, String resourceGroupName, Context context); - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment. - */ - DatabasePrincipalAssignment get(String workspaceName, String kustoPoolName, String databaseName, - String principalAssignmentName, String resourceGroupName); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, Context context); - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response}. - */ - DatabasePrincipalAssignment getById(String id); - - /** - * Gets a Kusto pool database principalAssignment. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new DatabasePrincipalAssignment resource. - * - * @param name resource name. - * @return the first stage of the new DatabasePrincipalAssignment definition. - */ - DatabasePrincipalAssignment.DefinitionStages.Blank define(String name); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java deleted file mode 100644 index 475104e41b13..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; - -/** - * Resource collection API of KustoPoolDatabases. - */ -public interface KustoPoolDatabases { - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. - */ - PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName); - - /** - * Returns the list of databases of the given Kusto pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. - */ - PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName, - Context context); - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, - String databaseName, Context context); - - /** - * Returns a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - Database get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - Database createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DatabaseInner parameters); - - /** - * Creates or updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the CreateOrUpdate operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - Database createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DatabaseInner parameters, Context context); - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - Database update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DatabaseInner parameters); - - /** - * Updates a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param parameters The database parameters supplied to the Update operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database. - */ - Database update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DatabaseInner parameters, Context context); - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); - - /** - * Deletes the database with the given name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param databaseName The name of the database in the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolListResult.java deleted file mode 100644 index bf91bd61beea..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolListResult.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner; -import java.util.List; - -/** - * An immutable client-side representation of KustoPoolListResult. - */ -public interface KustoPoolListResult { - /** - * Gets the value property: The list of Kusto pools. - * - * @return the value value. - */ - List value(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner object. - * - * @return the inner object. - */ - KustoPoolListResultInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java deleted file mode 100644 index 62a3c1fcefd3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of KustoPoolPrincipalAssignments. - */ -public interface KustoPoolPrincipalAssignments { - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, - String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context); - - /** - * Checks that the principal assignment name is valid and is not already in use. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param principalAssignmentName The name of the principal assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName); - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Lists all Kusto pool principalAssignments. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String workspaceName, String kustoPoolName, String resourceGroupName, - Context context); - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment along with {@link Response}. - */ - Response getWithResponse(String workspaceName, String kustoPoolName, - String principalAssignmentName, String resourceGroupName, Context context); - - /** - * Gets a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment. - */ - ClusterPrincipalAssignment get(String workspaceName, String kustoPoolName, String principalAssignmentName, - String resourceGroupName); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param principalAssignmentName The name of the Kusto principalAssignment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, - Context context); - - /** - * Gets a Kusto pool principalAssignment. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment along with {@link Response}. - */ - ClusterPrincipalAssignment getById(String id); - - /** - * Gets a Kusto pool principalAssignment. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool principalAssignment along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a Kusto pool principalAssignment. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ClusterPrincipalAssignment resource. - * - * @param name resource name. - * @return the first stage of the new ClusterPrincipalAssignment definition. - */ - ClusterPrincipalAssignment.DefinitionStages.Blank define(String name); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java deleted file mode 100644 index 7065a9808f86..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.management.SystemData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; -import java.util.List; - -/** - * An immutable client-side representation of KustoPoolPrivateLinkResources. - */ -public interface KustoPoolPrivateLinkResources { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the groupId property: The Private link resources GroupId. - * - * @return the groupId value. - */ - String groupId(); - - /** - * Gets the requiredMembers property: The private link resource required member names. - * - * @return the requiredMembers value. - */ - List requiredMembers(); - - /** - * Gets the requiredZoneNames property: The private link resource required zone names. - * - * @return the requiredZoneNames value. - */ - List requiredZoneNames(); - - /** - * Gets the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - ResourceProvisioningState provisioningState(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner object. - * - * @return the inner object. - */ - KustoPoolPrivateLinkResourcesInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java deleted file mode 100644 index fb3e239c2a41..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; - -/** - * Resource collection API of KustoPoolPrivateLinkResourcesOperations. - */ -public interface KustoPoolPrivateLinkResourcesOperations { - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String workspaceName, - String kustoPoolName); - - /** - * Lists all Kusto pool PrivateLinkResources. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String workspaceName, - String kustoPoolName, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java deleted file mode 100644 index 90fd0a7c81a8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java +++ /dev/null @@ -1,345 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolProperties; -import java.io.IOException; -import java.util.Map; - -/** - * Class representing an update to a Kusto kusto pool. - */ -@Fluent -public final class KustoPoolUpdate extends ProxyResource { - /* - * Resource tags. - */ - private Map tags; - - /* - * The SKU of the kusto pool. - */ - private AzureSku sku; - - /* - * The kusto pool properties. - */ - private KustoPoolProperties innerProperties; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of KustoPoolUpdate class. - */ - public KustoPoolUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the KustoPoolUpdate object itself. - */ - public KustoPoolUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the sku property: The SKU of the kusto pool. - * - * @return the sku value. - */ - public AzureSku sku() { - return this.sku; - } - - /** - * Set the sku property: The SKU of the kusto pool. - * - * @param sku the sku value to set. - * @return the KustoPoolUpdate object itself. - */ - public KustoPoolUpdate withSku(AzureSku sku) { - this.sku = sku; - return this; - } - - /** - * Get the innerProperties property: The kusto pool properties. - * - * @return the innerProperties value. - */ - private KustoPoolProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the state property: The state of the resource. - * - * @return the state value. - */ - public State state() { - return this.innerProperties() == null ? null : this.innerProperties().state(); - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the uri property: The Kusto Pool URI. - * - * @return the uri value. - */ - public String uri() { - return this.innerProperties() == null ? null : this.innerProperties().uri(); - } - - /** - * Get the dataIngestionUri property: The Kusto Pool data ingestion URI. - * - * @return the dataIngestionUri value. - */ - public String dataIngestionUri() { - return this.innerProperties() == null ? null : this.innerProperties().dataIngestionUri(); - } - - /** - * Get the stateReason property: The reason for the Kusto Pool's current state. - * - * @return the stateReason value. - */ - public String stateReason() { - return this.innerProperties() == null ? null : this.innerProperties().stateReason(); - } - - /** - * Get the optimizedAutoscale property: Optimized auto scale definition. - * - * @return the optimizedAutoscale value. - */ - public OptimizedAutoscale optimizedAutoscale() { - return this.innerProperties() == null ? null : this.innerProperties().optimizedAutoscale(); - } - - /** - * Set the optimizedAutoscale property: Optimized auto scale definition. - * - * @param optimizedAutoscale the optimizedAutoscale value to set. - * @return the KustoPoolUpdate object itself. - */ - public KustoPoolUpdate withOptimizedAutoscale(OptimizedAutoscale optimizedAutoscale) { - if (this.innerProperties() == null) { - this.innerProperties = new KustoPoolProperties(); - } - this.innerProperties().withOptimizedAutoscale(optimizedAutoscale); - return this; - } - - /** - * Get the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * - * @return the enableStreamingIngest value. - */ - public Boolean enableStreamingIngest() { - return this.innerProperties() == null ? null : this.innerProperties().enableStreamingIngest(); - } - - /** - * Set the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * - * @param enableStreamingIngest the enableStreamingIngest value to set. - * @return the KustoPoolUpdate object itself. - */ - public KustoPoolUpdate withEnableStreamingIngest(Boolean enableStreamingIngest) { - if (this.innerProperties() == null) { - this.innerProperties = new KustoPoolProperties(); - } - this.innerProperties().withEnableStreamingIngest(enableStreamingIngest); - return this; - } - - /** - * Get the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * - * @return the enablePurge value. - */ - public Boolean enablePurge() { - return this.innerProperties() == null ? null : this.innerProperties().enablePurge(); - } - - /** - * Set the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * - * @param enablePurge the enablePurge value to set. - * @return the KustoPoolUpdate object itself. - */ - public KustoPoolUpdate withEnablePurge(Boolean enablePurge) { - if (this.innerProperties() == null) { - this.innerProperties = new KustoPoolProperties(); - } - this.innerProperties().withEnablePurge(enablePurge); - return this; - } - - /** - * Get the languageExtensions property: List of the Kusto Pool's language extensions. - * - * @return the languageExtensions value. - */ - public LanguageExtensionsList languageExtensions() { - return this.innerProperties() == null ? null : this.innerProperties().languageExtensions(); - } - - /** - * Get the workspaceUid property: The workspace unique identifier. - * - * @return the workspaceUid value. - */ - public String workspaceUid() { - return this.innerProperties() == null ? null : this.innerProperties().workspaceUid(); - } - - /** - * Set the workspaceUid property: The workspace unique identifier. - * - * @param workspaceUid the workspaceUid value to set. - * @return the KustoPoolUpdate object itself. - */ - public KustoPoolUpdate withWorkspaceUid(String workspaceUid) { - if (this.innerProperties() == null) { - this.innerProperties = new KustoPoolProperties(); - } - this.innerProperties().withWorkspaceUid(workspaceUid); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sku() != null) { - sku().validate(); - } - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("sku", this.sku); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KustoPoolUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KustoPoolUpdate if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the KustoPoolUpdate. - */ - public static KustoPoolUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KustoPoolUpdate deserializedKustoPoolUpdate = new KustoPoolUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedKustoPoolUpdate.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedKustoPoolUpdate.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedKustoPoolUpdate.type = reader.getString(); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedKustoPoolUpdate.tags = tags; - } else if ("sku".equals(fieldName)) { - deserializedKustoPoolUpdate.sku = AzureSku.fromJson(reader); - } else if ("properties".equals(fieldName)) { - deserializedKustoPoolUpdate.innerProperties = KustoPoolProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedKustoPoolUpdate; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java deleted file mode 100644 index c20a85c22634..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java +++ /dev/null @@ -1,420 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; - -/** - * Resource collection API of KustoPools. - */ -public interface KustoPools { - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Lists eligible SKUs for Kusto Pool resource. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. - */ - PagedIterable list(Context context); - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request along with {@link Response}. - */ - Response checkNameAvailabilityWithResponse(String location, - KustoPoolCheckNameRequest kustoPoolName, Context context); - - /** - * Checks that the kusto pool name is valid and is not already in use. - * - * @param location The name of Azure region. - * @param kustoPoolName The name of the cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result returned from a check name availability request. - */ - CheckNameResult checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName); - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response along with {@link Response}. - */ - Response listByWorkspaceWithResponse(String resourceGroupName, String workspaceName, - Context context); - - /** - * List Kusto pools - * - * List all Kusto pools. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response. - */ - KustoPoolListResult listByWorkspace(String resourceGroupName, String workspaceName); - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool along with {@link Response}. - */ - Response getWithResponse(String workspaceName, String kustoPoolName, String resourceGroupName, - Context context); - - /** - * Gets a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool. - */ - KustoPool get(String workspaceName, String kustoPoolName, String resourceGroupName); - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String workspaceName, String resourceGroupName, String kustoPoolName); - - /** - * Deletes a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param kustoPoolName The name of the Kusto pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String workspaceName, String resourceGroupName, String kustoPoolName, Context context); - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(String workspaceName, String kustoPoolName, String resourceGroupName); - - /** - * Stops a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(String workspaceName, String kustoPoolName, String resourceGroupName, Context context); - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void start(String workspaceName, String kustoPoolName, String resourceGroupName); - - /** - * Starts a Kusto pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void start(String workspaceName, String kustoPoolName, String resourceGroupName, Context context); - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. - */ - PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Returns the SKUs available for the provided resource. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. - */ - PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedIterable}. - */ - PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Returns a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects as paginated response with {@link PagedIterable}. - */ - PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd); - - /** - * Add a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToAdd The language extensions to add. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, Context context); - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove); - - /** - * Remove a list of language extensions that can run within KQL queries. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param languageExtensionsToRemove The language extensions to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, Context context); - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. - */ - PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName); - - /** - * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. - */ - PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, - String resourceGroupName, Context context); - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove); - - /** - * Detaches all followers of a database owned by this Kusto Pool. - * - * @param workspaceName The name of the workspace. - * @param kustoPoolName The name of the Kusto pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param followerDatabaseToRemove The follower databases properties to remove. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context); - - /** - * Gets a Kusto pool. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool along with {@link Response}. - */ - KustoPool getById(String id); - - /** - * Gets a Kusto pool. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Deletes a Kusto pool. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a Kusto pool. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new KustoPool resource. - * - * @param name resource name. - * @return the first stage of the new KustoPool definition. - */ - KustoPool.DefinitionStages.Blank define(String name); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtension.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtension.java deleted file mode 100644 index 752b372f6132..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtension.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; - -/** - * An immutable client-side representation of LanguageExtension. - */ -public interface LanguageExtension { - /** - * Gets the languageExtensionName property: The language extension name. - * - * @return the languageExtensionName value. - */ - LanguageExtensionName languageExtensionName(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner object. - * - * @return the inner object. - */ - LanguageExtensionInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionName.java deleted file mode 100644 index 2bec40486994..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionName.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Language extension that can run within KQL query. - */ -public final class LanguageExtensionName extends ExpandableStringEnum { - /** - * Static value PYTHON for LanguageExtensionName. - */ - public static final LanguageExtensionName PYTHON = fromString("PYTHON"); - - /** - * Static value R for LanguageExtensionName. - */ - public static final LanguageExtensionName R = fromString("R"); - - /** - * Creates a new instance of LanguageExtensionName value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public LanguageExtensionName() { - } - - /** - * Creates or finds a LanguageExtensionName from its string representation. - * - * @param name a name to look for. - * @return the corresponding LanguageExtensionName. - */ - public static LanguageExtensionName fromString(String name) { - return fromString(name, LanguageExtensionName.class); - } - - /** - * Gets known LanguageExtensionName values. - * - * @return known LanguageExtensionName values. - */ - public static Collection values() { - return values(LanguageExtensionName.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java deleted file mode 100644 index 31005d166166..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import java.io.IOException; -import java.util.List; - -/** - * The list of language extension objects. - */ -@Fluent -public final class LanguageExtensionsList implements JsonSerializable { - /* - * The list of language extensions. - */ - private List value; - - /** - * Creates an instance of LanguageExtensionsList class. - */ - public LanguageExtensionsList() { - } - - /** - * Get the value property: The list of language extensions. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of language extensions. - * - * @param value the value value to set. - * @return the LanguageExtensionsList object itself. - */ - public LanguageExtensionsList withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LanguageExtensionsList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LanguageExtensionsList if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the LanguageExtensionsList. - */ - public static LanguageExtensionsList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LanguageExtensionsList deserializedLanguageExtensionsList = new LanguageExtensionsList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> LanguageExtensionInner.fromJson(reader1)); - deserializedLanguageExtensionsList.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedLanguageExtensionsList; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java deleted file mode 100644 index 615ce8dcb19b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import java.io.IOException; -import java.util.List; - -/** - * List of available SKUs for a Kusto Pool. - */ -@Fluent -public final class ListResourceSkusResult implements JsonSerializable { - /* - * The collection of available SKUs for an existing resource. - */ - private List value; - - /** - * Creates an instance of ListResourceSkusResult class. - */ - public ListResourceSkusResult() { - } - - /** - * Get the value property: The collection of available SKUs for an existing resource. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The collection of available SKUs for an existing resource. - * - * @param value the value value to set. - * @return the ListResourceSkusResult object itself. - */ - public ListResourceSkusResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ListResourceSkusResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ListResourceSkusResult if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the ListResourceSkusResult. - */ - public static ListResourceSkusResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ListResourceSkusResult deserializedListResourceSkusResult = new ListResourceSkusResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> AzureResourceSkuInner.fromJson(reader1)); - deserializedListResourceSkusResult.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedListResourceSkusResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java index 7b6452ba8d7a..09d7ad9322c1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java @@ -10,7 +10,6 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; -import java.util.Map; import java.util.UUID; /** @@ -33,11 +32,6 @@ public final class ManagedIdentity implements JsonSerializable */ private ResourceIdentityType type; - /* - * The user assigned managed identities. - */ - private Map userAssignedIdentities; - /** * Creates an instance of ManagedIdentity class. */ @@ -82,39 +76,12 @@ public ManagedIdentity withType(ResourceIdentityType type) { return this; } - /** - * Get the userAssignedIdentities property: The user assigned managed identities. - * - * @return the userAssignedIdentities value. - */ - public Map userAssignedIdentities() { - return this.userAssignedIdentities; - } - - /** - * Set the userAssignedIdentities property: The user assigned managed identities. - * - * @param userAssignedIdentities the userAssignedIdentities value to set. - * @return the ManagedIdentity object itself. - */ - public ManagedIdentity withUserAssignedIdentities(Map userAssignedIdentities) { - this.userAssignedIdentities = userAssignedIdentities; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (userAssignedIdentities() != null) { - userAssignedIdentities().values().forEach(e -> { - if (e != null) { - e.validate(); - } - }); - } } /** @@ -124,8 +91,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); - jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities, - (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -151,10 +116,6 @@ public static ManagedIdentity fromJson(JsonReader jsonReader) throws IOException = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); } else if ("type".equals(fieldName)) { deserializedManagedIdentity.type = ResourceIdentityType.fromString(reader.getString()); - } else if ("userAssignedIdentities".equals(fieldName)) { - Map userAssignedIdentities - = reader.readMap(reader1 -> UserAssignedManagedIdentity.fromJson(reader1)); - deserializedManagedIdentity.userAssignedIdentities = userAssignedIdentities; } else { reader.skipChildren(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java index e5ccf13ea83a..1b600e9eac1b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java @@ -20,12 +20,12 @@ public final class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlContr /* * Desired state */ - private DesiredState desiredState; + private ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState desiredState; /* * Actual state */ - private ActualState actualState; + private ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState actualState; /** * Creates an instance of ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity class. @@ -38,7 +38,7 @@ public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedI * * @return the desiredState value. */ - public DesiredState desiredState() { + public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState desiredState() { return this.desiredState; } @@ -48,8 +48,8 @@ public DesiredState desiredState() { * @param desiredState the desiredState value to set. * @return the ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity object itself. */ - public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity - withDesiredState(DesiredState desiredState) { + public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity withDesiredState( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState desiredState) { this.desiredState = desiredState; return this; } @@ -59,7 +59,7 @@ public DesiredState desiredState() { * * @return the actualState value. */ - public ActualState actualState() { + public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState actualState() { return this.actualState; } @@ -102,10 +102,12 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { if ("desiredState".equals(fieldName)) { deserializedManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.desiredState - = DesiredState.fromString(reader.getString()); + = ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState + .fromString(reader.getString()); } else if ("actualState".equals(fieldName)) { deserializedManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.actualState - = ActualState.fromString(reader.getString()); + = ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState + .fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.java new file mode 100644 index 000000000000..7271568bd7c0 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Actual state. + */ +public final class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState extends + ExpandableStringEnum { + /** + * Static value Enabling for + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. + */ + public static final ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState ENABLING + = fromString("Enabling"); + + /** + * Static value Enabled for + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. + */ + public static final ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState ENABLED + = fromString("Enabled"); + + /** + * Static value Disabling for + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. + */ + public static final ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState DISABLING + = fromString("Disabling"); + + /** + * Static value Disabled for + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. + */ + public static final ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState DISABLED + = fromString("Disabled"); + + /** + * Static value Unknown for + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. + */ + public static final ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState UNKNOWN + = fromString("Unknown"); + + /** + * Creates a new instance of + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState() { + } + + /** + * Creates or finds a ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState + * from its string representation. + * + * @param name a name to look for. + * @return the corresponding + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. + */ + public static ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState + fromString(String name) { + return fromString(name, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.class); + } + + /** + * Gets known ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState values. + * + * @return known ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState values. + */ + public static + Collection + values() { + return values( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.class); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.java new file mode 100644 index 000000000000..4184b390d891 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Desired state. + */ +public final class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState extends + ExpandableStringEnum { + /** + * Static value Enabled for + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState. + */ + public static final ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState ENABLED + = fromString("Enabled"); + + /** + * Static value Disabled for + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState. + */ + public static final ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState DISABLED + = fromString("Disabled"); + + /** + * Creates a new instance of + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState() { + } + + /** + * Creates or finds a ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState + * from its string representation. + * + * @param name a name to look for. + * @return the corresponding + * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState. + */ + public static ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState + fromString(String name) { + return fromString(name, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.class); + } + + /** + * Gets known ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState values. + * + * @return known ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState + * values. + */ + public static + Collection + values() { + return values( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.class); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java index 67f9a28e5ce1..e830ac9eb112 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java @@ -9,7 +9,6 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeManagedVirtualNetworkReference; import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeTypeProperties; import java.io.IOException; import java.util.LinkedHashMap; @@ -35,11 +34,6 @@ public final class ManagedIntegrationRuntime extends IntegrationRuntime { */ private ManagedIntegrationRuntimeTypeProperties innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - /* - * Managed integration runtime managed virtual network. - */ - private ManagedIntegrationRuntimeManagedVirtualNetworkReference innerManagedVirtualNetwork; - /** * Creates an instance of ManagedIntegrationRuntime class. */ @@ -74,15 +68,6 @@ private ManagedIntegrationRuntimeTypeProperties innerTypeProperties() { return this.innerTypeProperties; } - /** - * Get the innerManagedVirtualNetwork property: Managed integration runtime managed virtual network. - * - * @return the innerManagedVirtualNetwork value. - */ - private ManagedIntegrationRuntimeManagedVirtualNetworkReference innerManagedVirtualNetwork() { - return this.innerManagedVirtualNetwork; - } - /** * {@inheritDoc} */ @@ -138,75 +123,6 @@ public ManagedIntegrationRuntime withSsisProperties(IntegrationRuntimeSsisProper return this; } - /** - * Get the referenceName property: The reference name of the managed virtual network. - * - * @return the referenceName value. - */ - public String referenceName() { - return this.innerManagedVirtualNetwork() == null ? null : this.innerManagedVirtualNetwork().referenceName(); - } - - /** - * Set the referenceName property: The reference name of the managed virtual network. - * - * @param referenceName the referenceName value to set. - * @return the ManagedIntegrationRuntime object itself. - */ - public ManagedIntegrationRuntime withReferenceName(String referenceName) { - if (this.innerManagedVirtualNetwork() == null) { - this.innerManagedVirtualNetwork = new ManagedIntegrationRuntimeManagedVirtualNetworkReference(); - } - this.innerManagedVirtualNetwork().withReferenceName(referenceName); - return this; - } - - /** - * Get the type property: The type of the managed virtual network. - * - * @return the type value. - */ - public String typeManagedVirtualNetworkType() { - return this.innerManagedVirtualNetwork() == null ? null : this.innerManagedVirtualNetwork().type(); - } - - /** - * Set the type property: The type of the managed virtual network. - * - * @param type the type value to set. - * @return the ManagedIntegrationRuntime object itself. - */ - public ManagedIntegrationRuntime withTypeManagedVirtualNetworkType(String type) { - if (this.innerManagedVirtualNetwork() == null) { - this.innerManagedVirtualNetwork = new ManagedIntegrationRuntimeManagedVirtualNetworkReference(); - } - this.innerManagedVirtualNetwork().withType(type); - return this; - } - - /** - * Get the id property: The id of the managed virtual network. - * - * @return the id value. - */ - public String id() { - return this.innerManagedVirtualNetwork() == null ? null : this.innerManagedVirtualNetwork().id(); - } - - /** - * Set the id property: The id of the managed virtual network. - * - * @param id the id value to set. - * @return the ManagedIntegrationRuntime object itself. - */ - public ManagedIntegrationRuntime withId(String id) { - if (this.innerManagedVirtualNetwork() == null) { - this.innerManagedVirtualNetwork = new ManagedIntegrationRuntimeManagedVirtualNetworkReference(); - } - this.innerManagedVirtualNetwork().withId(id); - return this; - } - /** * Validates the instance. * @@ -221,9 +137,6 @@ public void validate() { } else { innerTypeProperties().validate(); } - if (innerManagedVirtualNetwork() != null) { - innerManagedVirtualNetwork().validate(); - } } private static final ClientLogger LOGGER = new ClientLogger(ManagedIntegrationRuntime.class); @@ -237,7 +150,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("description", description()); jsonWriter.writeJsonField("typeProperties", this.innerTypeProperties); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); - jsonWriter.writeJsonField("managedVirtualNetwork", this.innerManagedVirtualNetwork); if (additionalProperties() != null) { for (Map.Entry additionalProperty : additionalProperties().entrySet()) { jsonWriter.writeUntypedField(additionalProperty.getKey(), additionalProperty.getValue()); @@ -273,9 +185,6 @@ public static ManagedIntegrationRuntime fromJson(JsonReader jsonReader) throws I } else if ("state".equals(fieldName)) { deserializedManagedIntegrationRuntime.state = IntegrationRuntimeState.fromString(reader.getString()); - } else if ("managedVirtualNetwork".equals(fieldName)) { - deserializedManagedIntegrationRuntime.innerManagedVirtualNetwork - = ManagedIntegrationRuntimeManagedVirtualNetworkReference.fromJson(reader); } else { if (additionalProperties == null) { additionalProperties = new LinkedHashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java index 5bef93480e74..1401587c4c29 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java @@ -32,16 +32,6 @@ public final class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeSta private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties = new ManagedIntegrationRuntimeStatusTypeProperties(); - /* - * The state of integration runtime. - */ - private IntegrationRuntimeState state; - - /* - * The workspace name which the integration runtime belong to. - */ - private String dataFactoryName; - /** * Creates an instance of ManagedIntegrationRuntimeStatus class. */ @@ -67,26 +57,6 @@ private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { return this.innerTypeProperties; } - /** - * Get the state property: The state of integration runtime. - * - * @return the state value. - */ - @Override - public IntegrationRuntimeState state() { - return this.state; - } - - /** - * Get the dataFactoryName property: The workspace name which the integration runtime belong to. - * - * @return the dataFactoryName value. - */ - @Override - public String dataFactoryName() { - return this.dataFactoryName; - } - /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. * @@ -176,10 +146,10 @@ public static ManagedIntegrationRuntimeStatus fromJson(JsonReader jsonReader) th reader.nextToken(); if ("dataFactoryName".equals(fieldName)) { - deserializedManagedIntegrationRuntimeStatus.dataFactoryName = reader.getString(); + deserializedManagedIntegrationRuntimeStatus.withDataFactoryName(reader.getString()); } else if ("state".equals(fieldName)) { - deserializedManagedIntegrationRuntimeStatus.state - = IntegrationRuntimeState.fromString(reader.getString()); + deserializedManagedIntegrationRuntimeStatus + .withState(IntegrationRuntimeState.fromString(reader.getString())); } else if ("typeProperties".equals(fieldName)) { deserializedManagedIntegrationRuntimeStatus.innerTypeProperties = ManagedIntegrationRuntimeStatusTypeProperties.fromJson(reader); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operation.java deleted file mode 100644 index 515827fd4cab..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operation.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; - -/** - * An immutable client-side representation of Operation. - */ -public interface Operation { - /** - * Gets the name property: This is of the format {provider}/{resource}/{operation}. - * - * @return the name value. - */ - String name(); - - /** - * Gets the display property: The object that describes the operation. - * - * @return the display value. - */ - OperationDisplay display(); - - /** - * Gets the origin property: The intended executor of the operation. - * - * @return the origin value. - */ - String origin(); - - /** - * Gets the properties property: Properties of the operation. - * - * @return the properties value. - */ - Object properties(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.OperationInner object. - * - * @return the inner object. - */ - OperationInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java deleted file mode 100644 index 0fcbb2d163b4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The object that describes the operation. - */ -@Fluent -public final class OperationDisplay implements JsonSerializable { - /* - * Friendly name of the resource provider. - */ - private String provider; - - /* - * For example: read, write, delete. - */ - private String operation; - - /* - * The resource type on which the operation is performed. - */ - private String resource; - - /* - * The friendly name of the operation. - */ - private String description; - - /** - * Creates an instance of OperationDisplay class. - */ - public OperationDisplay() { - } - - /** - * Get the provider property: Friendly name of the resource provider. - * - * @return the provider value. - */ - public String provider() { - return this.provider; - } - - /** - * Set the provider property: Friendly name of the resource provider. - * - * @param provider the provider value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withProvider(String provider) { - this.provider = provider; - return this; - } - - /** - * Get the operation property: For example: read, write, delete. - * - * @return the operation value. - */ - public String operation() { - return this.operation; - } - - /** - * Set the operation property: For example: read, write, delete. - * - * @param operation the operation value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withOperation(String operation) { - this.operation = operation; - return this; - } - - /** - * Get the resource property: The resource type on which the operation is performed. - * - * @return the resource value. - */ - public String resource() { - return this.resource; - } - - /** - * Set the resource property: The resource type on which the operation is performed. - * - * @param resource the resource value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withResource(String resource) { - this.resource = resource; - return this; - } - - /** - * Get the description property: The friendly name of the operation. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: The friendly name of the operation. - * - * @param description the description value to set. - * @return the OperationDisplay object itself. - */ - public OperationDisplay withDescription(String description) { - this.description = description; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("provider", this.provider); - jsonWriter.writeStringField("operation", this.operation); - jsonWriter.writeStringField("resource", this.resource); - jsonWriter.writeStringField("description", this.description); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of OperationDisplay from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of OperationDisplay if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the OperationDisplay. - */ - public static OperationDisplay fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - OperationDisplay deserializedOperationDisplay = new OperationDisplay(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provider".equals(fieldName)) { - deserializedOperationDisplay.provider = reader.getString(); - } else if ("operation".equals(fieldName)) { - deserializedOperationDisplay.operation = reader.getString(); - } else if ("resource".equals(fieldName)) { - deserializedOperationDisplay.resource = reader.getString(); - } else if ("description".equals(fieldName)) { - deserializedOperationDisplay.description = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedOperationDisplay; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java deleted file mode 100644 index 966086a88e82..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import java.io.IOException; -import java.util.List; - -/** - * Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the - * next set of results. - */ -@Fluent -public final class OperationListResult implements JsonSerializable { - /* - * The list of operations supported by the resource provider. - */ - private List value; - - /* - * The URL to get the next set of operation list results if there are any. - */ - private String nextLink; - - /** - * Creates an instance of OperationListResult class. - */ - public OperationListResult() { - } - - /** - * Get the value property: The list of operations supported by the resource provider. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of operations supported by the resource provider. - * - * @param value the value value to set. - * @return the OperationListResult object itself. - */ - public OperationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of operation list results if there are any. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of OperationListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the OperationListResult. - */ - public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - OperationListResult deserializedOperationListResult = new OperationListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> OperationInner.fromJson(reader1)); - deserializedOperationListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedOperationListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedOperationListResult; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java deleted file mode 100644 index 6fae50bfc6b3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * A class that contains the optimized auto scale definition. - */ -@Fluent -public final class OptimizedAutoscale implements JsonSerializable { - /* - * The version of the template defined, for instance 1. - */ - private int version; - - /* - * A boolean value that indicate if the optimized autoscale feature is enabled or not. - */ - private boolean isEnabled; - - /* - * Minimum allowed instances count. - */ - private int minimum; - - /* - * Maximum allowed instances count. - */ - private int maximum; - - /** - * Creates an instance of OptimizedAutoscale class. - */ - public OptimizedAutoscale() { - } - - /** - * Get the version property: The version of the template defined, for instance 1. - * - * @return the version value. - */ - public int version() { - return this.version; - } - - /** - * Set the version property: The version of the template defined, for instance 1. - * - * @param version the version value to set. - * @return the OptimizedAutoscale object itself. - */ - public OptimizedAutoscale withVersion(int version) { - this.version = version; - return this; - } - - /** - * Get the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not. - * - * @return the isEnabled value. - */ - public boolean isEnabled() { - return this.isEnabled; - } - - /** - * Set the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not. - * - * @param isEnabled the isEnabled value to set. - * @return the OptimizedAutoscale object itself. - */ - public OptimizedAutoscale withIsEnabled(boolean isEnabled) { - this.isEnabled = isEnabled; - return this; - } - - /** - * Get the minimum property: Minimum allowed instances count. - * - * @return the minimum value. - */ - public int minimum() { - return this.minimum; - } - - /** - * Set the minimum property: Minimum allowed instances count. - * - * @param minimum the minimum value to set. - * @return the OptimizedAutoscale object itself. - */ - public OptimizedAutoscale withMinimum(int minimum) { - this.minimum = minimum; - return this; - } - - /** - * Get the maximum property: Maximum allowed instances count. - * - * @return the maximum value. - */ - public int maximum() { - return this.maximum; - } - - /** - * Set the maximum property: Maximum allowed instances count. - * - * @param maximum the maximum value to set. - * @return the OptimizedAutoscale object itself. - */ - public OptimizedAutoscale withMaximum(int maximum) { - this.maximum = maximum; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeIntField("version", this.version); - jsonWriter.writeBooleanField("isEnabled", this.isEnabled); - jsonWriter.writeIntField("minimum", this.minimum); - jsonWriter.writeIntField("maximum", this.maximum); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of OptimizedAutoscale from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of OptimizedAutoscale if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the OptimizedAutoscale. - */ - public static OptimizedAutoscale fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - OptimizedAutoscale deserializedOptimizedAutoscale = new OptimizedAutoscale(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("version".equals(fieldName)) { - deserializedOptimizedAutoscale.version = reader.getInt(); - } else if ("isEnabled".equals(fieldName)) { - deserializedOptimizedAutoscale.isEnabled = reader.getBoolean(); - } else if ("minimum".equals(fieldName)) { - deserializedOptimizedAutoscale.minimum = reader.getInt(); - } else if ("maximum".equals(fieldName)) { - deserializedOptimizedAutoscale.maximum = reader.getInt(); - } else { - reader.skipChildren(); - } - } - - return deserializedOptimizedAutoscale; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalType.java deleted file mode 100644 index 17011d3841b3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalType.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Principal type. - */ -public final class PrincipalType extends ExpandableStringEnum { - /** - * Static value App for PrincipalType. - */ - public static final PrincipalType APP = fromString("App"); - - /** - * Static value Group for PrincipalType. - */ - public static final PrincipalType GROUP = fromString("Group"); - - /** - * Static value User for PrincipalType. - */ - public static final PrincipalType USER = fromString("User"); - - /** - * Creates a new instance of PrincipalType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public PrincipalType() { - } - - /** - * Creates or finds a PrincipalType from its string representation. - * - * @param name a name to look for. - * @return the corresponding PrincipalType. - */ - public static PrincipalType fromString(String name) { - return fromString(name, PrincipalType.class); - } - - /** - * Gets known PrincipalType values. - * - * @return known PrincipalType values. - */ - public static Collection values() { - return values(PrincipalType.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java deleted file mode 100644 index c8fe9f0b55bf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The principals modification kind of the database. - */ -public final class PrincipalsModificationKind extends ExpandableStringEnum { - /** - * Static value Union for PrincipalsModificationKind. - */ - public static final PrincipalsModificationKind UNION = fromString("Union"); - - /** - * Static value Replace for PrincipalsModificationKind. - */ - public static final PrincipalsModificationKind REPLACE = fromString("Replace"); - - /** - * Static value None for PrincipalsModificationKind. - */ - public static final PrincipalsModificationKind NONE = fromString("None"); - - /** - * Creates a new instance of PrincipalsModificationKind value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public PrincipalsModificationKind() { - } - - /** - * Creates or finds a PrincipalsModificationKind from its string representation. - * - * @param name a name to look for. - * @return the corresponding PrincipalsModificationKind. - */ - public static PrincipalsModificationKind fromString(String name) { - return fromString(name, PrincipalsModificationKind.class); - } - - /** - * Gets known PrincipalsModificationKind values. - * - * @return known PrincipalsModificationKind values. - */ - public static Collection values() { - return values(PrincipalsModificationKind.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java index b791b5642bc7..2c1812740432 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; import com.azure.core.util.Context; /** @@ -37,33 +36,4 @@ public interface PrivateEndpointConnectionsPrivateLinkHubs { */ PagedIterable list(String resourceGroupName, String privateLinkHubName, Context context); - - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, - String privateLinkHubName, String privateEndpointConnectionName, Context context); - - /** - * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @param privateEndpointConnectionName Name of the privateEndpointConnection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnection in the PrivateLinkHub by name. - */ - PrivateEndpointConnectionForPrivateLinkHub get(String resourceGroupName, String privateLinkHubName, - String privateEndpointConnectionName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java index de0d9f70496b..42f9f76a5213 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java @@ -4,97 +4,72 @@ package com.azure.resourcemanager.synapse.models; -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; -import java.io.IOException; -import java.util.List; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; /** - * The list Kusto Private Link Resources operation response. + * Resource collection API of PrivateLinkResources. */ -@Fluent -public final class PrivateLinkResources implements JsonSerializable { - /* - * The list of Kusto Private Link Resources. - */ - private List value; - +public interface PrivateLinkResources { /** - * Creates an instance of PrivateLinkResources class. - */ - public PrivateLinkResources() { - } - - /** - * Get the value property: The list of Kusto Private Link Resources. + * Private Link Resources * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of Kusto Private Link Resources. + * Get all private link resources for a workspaces. * - * @param value the value value to set. - * @return the PrivateLinkResources object itself. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ - public PrivateLinkResources withValue(List value) { - this.value = value; - return this; - } + PagedIterable list(String resourceGroupName, String workspaceName); /** - * Validates the instance. + * Private Link Resources + * + * Get all private link resources for a workspaces. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } + PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * {@inheritDoc} + * Get Private Link Resource + * + * Get private link resource in workspace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateLinkResourceName The name of the private link resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return private link resource in workspace along with {@link Response}. */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } + Response getWithResponse(String resourceGroupName, String workspaceName, + String privateLinkResourceName, Context context); /** - * Reads an instance of PrivateLinkResources from the JsonReader. + * Get Private Link Resource * - * @param jsonReader The JsonReader being read. - * @return An instance of PrivateLinkResources if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the PrivateLinkResources. + * Get private link resource in workspace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateLinkResourceName The name of the private link resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return private link resource in workspace. */ - public static PrivateLinkResources fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - PrivateLinkResources deserializedPrivateLinkResources = new PrivateLinkResources(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> KustoPoolPrivateLinkResourcesInner.fromJson(reader1)); - deserializedPrivateLinkResources.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedPrivateLinkResources; - }); - } + PrivateLinkResource get(String resourceGroupName, String workspaceName, String privateLinkResourceName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java deleted file mode 100644 index 10525800d43c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of PrivateLinkResourcesOperations. - */ -public interface PrivateLinkResourcesOperations { - /** - * Private Link Resources - * - * Get all private link resources for a workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String workspaceName); - - /** - * Private Link Resources - * - * Get all private link resources for a workspaces. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String workspaceName, Context context); - - /** - * Get Private Link Resource - * - * Get private link resource in workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param privateLinkResourceName The name of the private link resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link resource in workspace along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String workspaceName, - String privateLinkResourceName, Context context); - - /** - * Get Private Link Resource - * - * Get private link resource in workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param privateLinkResourceName The name of the private link resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link resource in workspace. - */ - PrivateLinkResource get(String resourceGroupName, String workspaceName, String privateLinkResourceName); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java deleted file mode 100644 index 6427fc3addec..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java +++ /dev/null @@ -1,267 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.fluent.models.ReadOnlyFollowingDatabaseProperties; -import java.io.IOException; -import java.time.Duration; - -/** - * Class representing a read only following database. - */ -@Fluent -public final class ReadOnlyFollowingDatabase extends DatabaseInner { - /* - * Kind of the database - */ - private Kind kind = Kind.READ_ONLY_FOLLOWING; - - /* - * The database properties. - */ - private ReadOnlyFollowingDatabaseProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ReadOnlyFollowingDatabase class. - */ - public ReadOnlyFollowingDatabase() { - } - - /** - * Get the kind property: Kind of the database. - * - * @return the kind value. - */ - @Override - public Kind kind() { - return this.kind; - } - - /** - * Get the innerProperties property: The database properties. - * - * @return the innerProperties value. - */ - private ReadOnlyFollowingDatabaseProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - @Override - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ReadOnlyFollowingDatabase withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries - * in TimeSpan. - * - * @return the softDeletePeriod value. - */ - public Duration softDeletePeriod() { - return this.innerProperties() == null ? null : this.innerProperties().softDeletePeriod(); - } - - /** - * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * - * @return the hotCachePeriod value. - */ - public Duration hotCachePeriod() { - return this.innerProperties() == null ? null : this.innerProperties().hotCachePeriod(); - } - - /** - * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * - * @param hotCachePeriod the hotCachePeriod value to set. - * @return the ReadOnlyFollowingDatabase object itself. - */ - public ReadOnlyFollowingDatabase withHotCachePeriod(Duration hotCachePeriod) { - if (this.innerProperties() == null) { - this.innerProperties = new ReadOnlyFollowingDatabaseProperties(); - } - this.innerProperties().withHotCachePeriod(hotCachePeriod); - return this; - } - - /** - * Get the statistics property: The statistics of the database. - * - * @return the statistics value. - */ - public DatabaseStatistics statistics() { - return this.innerProperties() == null ? null : this.innerProperties().statistics(); - } - - /** - * Get the leaderClusterResourceId property: The name of the leader cluster. - * - * @return the leaderClusterResourceId value. - */ - public String leaderClusterResourceId() { - return this.innerProperties() == null ? null : this.innerProperties().leaderClusterResourceId(); - } - - /** - * Get the attachedDatabaseConfigurationName property: The name of the attached database configuration cluster. - * - * @return the attachedDatabaseConfigurationName value. - */ - public String attachedDatabaseConfigurationName() { - return this.innerProperties() == null ? null : this.innerProperties().attachedDatabaseConfigurationName(); - } - - /** - * Get the principalsModificationKind property: The principals modification kind of the database. - * - * @return the principalsModificationKind value. - */ - public PrincipalsModificationKind principalsModificationKind() { - return this.innerProperties() == null ? null : this.innerProperties().principalsModificationKind(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ReadOnlyFollowingDatabase from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ReadOnlyFollowingDatabase if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the ReadOnlyFollowingDatabase. - */ - public static ReadOnlyFollowingDatabase fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ReadOnlyFollowingDatabase deserializedReadOnlyFollowingDatabase = new ReadOnlyFollowingDatabase(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedReadOnlyFollowingDatabase.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedReadOnlyFollowingDatabase.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedReadOnlyFollowingDatabase.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedReadOnlyFollowingDatabase.withLocation(reader.getString()); - } else if ("systemData".equals(fieldName)) { - deserializedReadOnlyFollowingDatabase.systemData = SystemData.fromJson(reader); - } else if ("kind".equals(fieldName)) { - deserializedReadOnlyFollowingDatabase.kind = Kind.fromString(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedReadOnlyFollowingDatabase.innerProperties - = ReadOnlyFollowingDatabaseProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedReadOnlyFollowingDatabase; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java deleted file mode 100644 index c19c8142d144..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.fluent.models.ReadWriteDatabaseProperties; -import java.io.IOException; -import java.time.Duration; - -/** - * Class representing a read write database. - */ -@Fluent -public final class ReadWriteDatabase extends DatabaseInner { - /* - * Kind of the database - */ - private Kind kind = Kind.READ_WRITE; - - /* - * The database properties. - */ - private ReadWriteDatabaseProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ReadWriteDatabase class. - */ - public ReadWriteDatabase() { - } - - /** - * Get the kind property: Kind of the database. - * - * @return the kind value. - */ - @Override - public Kind kind() { - return this.kind; - } - - /** - * Get the innerProperties property: The database properties. - * - * @return the innerProperties value. - */ - private ReadWriteDatabaseProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - @Override - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ReadWriteDatabase withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ResourceProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries - * in TimeSpan. - * - * @return the softDeletePeriod value. - */ - public Duration softDeletePeriod() { - return this.innerProperties() == null ? null : this.innerProperties().softDeletePeriod(); - } - - /** - * Set the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries - * in TimeSpan. - * - * @param softDeletePeriod the softDeletePeriod value to set. - * @return the ReadWriteDatabase object itself. - */ - public ReadWriteDatabase withSoftDeletePeriod(Duration softDeletePeriod) { - if (this.innerProperties() == null) { - this.innerProperties = new ReadWriteDatabaseProperties(); - } - this.innerProperties().withSoftDeletePeriod(softDeletePeriod); - return this; - } - - /** - * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * - * @return the hotCachePeriod value. - */ - public Duration hotCachePeriod() { - return this.innerProperties() == null ? null : this.innerProperties().hotCachePeriod(); - } - - /** - * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * - * @param hotCachePeriod the hotCachePeriod value to set. - * @return the ReadWriteDatabase object itself. - */ - public ReadWriteDatabase withHotCachePeriod(Duration hotCachePeriod) { - if (this.innerProperties() == null) { - this.innerProperties = new ReadWriteDatabaseProperties(); - } - this.innerProperties().withHotCachePeriod(hotCachePeriod); - return this; - } - - /** - * Get the statistics property: The statistics of the database. - * - * @return the statistics value. - */ - public DatabaseStatistics statistics() { - return this.innerProperties() == null ? null : this.innerProperties().statistics(); - } - - /** - * Get the isFollowed property: Indicates whether the database is followed. - * - * @return the isFollowed value. - */ - public Boolean isFollowed() { - return this.innerProperties() == null ? null : this.innerProperties().isFollowed(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ReadWriteDatabase from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ReadWriteDatabase if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the ReadWriteDatabase. - */ - public static ReadWriteDatabase fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ReadWriteDatabase deserializedReadWriteDatabase = new ReadWriteDatabase(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedReadWriteDatabase.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedReadWriteDatabase.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedReadWriteDatabase.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedReadWriteDatabase.withLocation(reader.getString()); - } else if ("systemData".equals(fieldName)) { - deserializedReadWriteDatabase.systemData = SystemData.fromJson(reader); - } else if ("kind".equals(fieldName)) { - deserializedReadWriteDatabase.kind = Kind.fromString(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedReadWriteDatabase.innerProperties = ReadWriteDatabaseProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedReadWriteDatabase; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Reason.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Reason.java deleted file mode 100644 index 8ee01e5bdd90..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Reason.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Message providing the reason why the given name is invalid. - */ -public final class Reason extends ExpandableStringEnum { - /** - * Static value Invalid for Reason. - */ - public static final Reason INVALID = fromString("Invalid"); - - /** - * Static value AlreadyExists for Reason. - */ - public static final Reason ALREADY_EXISTS = fromString("AlreadyExists"); - - /** - * Creates a new instance of Reason value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public Reason() { - } - - /** - * Creates or finds a Reason from its string representation. - * - * @param name a name to look for. - * @return the corresponding Reason. - */ - public static Reason fromString(String name) { - return fromString(name, Reason.class); - } - - /** - * Gets known Reason values. - * - * @return known Reason values. - */ - public static Collection values() { - return values(Reason.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceIdentityType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceIdentityType.java index 2e7afbf3ed48..da727a7e0967 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceIdentityType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceIdentityType.java @@ -16,12 +16,7 @@ public enum ResourceIdentityType { /** * Enum value SystemAssigned. */ - SYSTEM_ASSIGNED("SystemAssigned"), - - /** - * Enum value SystemAssigned,UserAssigned. - */ - SYSTEM_ASSIGNED_USER_ASSIGNED("SystemAssigned,UserAssigned"); + SYSTEM_ASSIGNED("SystemAssigned"); /** * The actual serialized value for a ResourceIdentityType instance. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceProvisioningState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceProvisioningState.java deleted file mode 100644 index c5ef38cf515e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceProvisioningState.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The provisioned state of the resource. - */ -public final class ResourceProvisioningState extends ExpandableStringEnum { - /** - * Static value Running for ResourceProvisioningState. - */ - public static final ResourceProvisioningState RUNNING = fromString("Running"); - - /** - * Static value Creating for ResourceProvisioningState. - */ - public static final ResourceProvisioningState CREATING = fromString("Creating"); - - /** - * Static value Deleting for ResourceProvisioningState. - */ - public static final ResourceProvisioningState DELETING = fromString("Deleting"); - - /** - * Static value Succeeded for ResourceProvisioningState. - */ - public static final ResourceProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for ResourceProvisioningState. - */ - public static final ResourceProvisioningState FAILED = fromString("Failed"); - - /** - * Static value Moving for ResourceProvisioningState. - */ - public static final ResourceProvisioningState MOVING = fromString("Moving"); - - /** - * Static value Canceled for ResourceProvisioningState. - */ - public static final ResourceProvisioningState CANCELED = fromString("Canceled"); - - /** - * Creates a new instance of ResourceProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ResourceProvisioningState() { - } - - /** - * Creates or finds a ResourceProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding ResourceProvisioningState. - */ - public static ResourceProvisioningState fromString(String name) { - return fromString(name, ResourceProvisioningState.class); - } - - /** - * Gets known ResourceProvisioningState values. - * - * @return known ResourceProvisioningState values. - */ - public static Collection values() { - return values(ResourceProvisioningState.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java index c4fb177c2c55..c1706f9c4445 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java @@ -33,16 +33,6 @@ public final class SelfHostedIntegrationRuntimeStatus extends IntegrationRuntime private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); - /* - * The state of integration runtime. - */ - private IntegrationRuntimeState state; - - /* - * The workspace name which the integration runtime belong to. - */ - private String dataFactoryName; - /** * Creates an instance of SelfHostedIntegrationRuntimeStatus class. */ @@ -68,26 +58,6 @@ private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { return this.innerTypeProperties; } - /** - * Get the state property: The state of integration runtime. - * - * @return the state value. - */ - @Override - public IntegrationRuntimeState state() { - return this.state; - } - - /** - * Get the dataFactoryName property: The workspace name which the integration runtime belong to. - * - * @return the dataFactoryName value. - */ - @Override - public String dataFactoryName() { - return this.dataFactoryName; - } - /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. * @@ -276,70 +246,6 @@ public OffsetDateTime autoUpdateEta() { return this.innerTypeProperties() == null ? null : this.innerTypeProperties().autoUpdateEta(); } - /** - * Get the serviceRegion property: The service region of the integration runtime. - * - * @return the serviceRegion value. - */ - public String serviceRegion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceRegion(); - } - - /** - * Set the serviceRegion property: The service region of the integration runtime. - * - * @param serviceRegion the serviceRegion value to set. - * @return the SelfHostedIntegrationRuntimeStatus object itself. - */ - public SelfHostedIntegrationRuntimeStatus withServiceRegion(String serviceRegion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); - } - this.innerTypeProperties().withServiceRegion(serviceRegion); - return this; - } - - /** - * Get the newerVersions property: The newer versions on download center. - * - * @return the newerVersions value. - */ - public List newerVersions() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newerVersions(); - } - - /** - * Set the newerVersions property: The newer versions on download center. - * - * @param newerVersions the newerVersions value to set. - * @return the SelfHostedIntegrationRuntimeStatus object itself. - */ - public SelfHostedIntegrationRuntimeStatus withNewerVersions(List newerVersions) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); - } - this.innerTypeProperties().withNewerVersions(newerVersions); - return this; - } - - /** - * Get the osType property: The osType property. - * - * @return the osType value. - */ - public Integer osType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().osType(); - } - - /** - * Get the targetFramework property: The targetFramework property. - * - * @return the targetFramework value. - */ - public Integer targetFramework() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().targetFramework(); - } - /** * Validates the instance. * @@ -393,10 +299,10 @@ public static SelfHostedIntegrationRuntimeStatus fromJson(JsonReader jsonReader) reader.nextToken(); if ("dataFactoryName".equals(fieldName)) { - deserializedSelfHostedIntegrationRuntimeStatus.dataFactoryName = reader.getString(); + deserializedSelfHostedIntegrationRuntimeStatus.withDataFactoryName(reader.getString()); } else if ("state".equals(fieldName)) { - deserializedSelfHostedIntegrationRuntimeStatus.state - = IntegrationRuntimeState.fromString(reader.getString()); + deserializedSelfHostedIntegrationRuntimeStatus + .withState(IntegrationRuntimeState.fromString(reader.getString())); } else if ("typeProperties".equals(fieldName)) { deserializedSelfHostedIntegrationRuntimeStatus.innerTypeProperties = SelfHostedIntegrationRuntimeStatusTypeProperties.fromJson(reader); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicy.java index 7387b3d9c0b1..a3a6e0ff33e8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicy.java @@ -189,26 +189,6 @@ public interface ServerBlobAuditingPolicy { */ Integer queueDelayMs(); - /** - * Gets the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs - * will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true - * and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs - * category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * - * @return the isDevopsAuditEnabled value. - */ - Boolean isDevopsAuditEnabled(); - /** * Gets the name of the resource group. * @@ -262,7 +242,7 @@ interface WithCreate extends DefinitionStages.WithState, DefinitionStages.WithSt DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithRetentionDays, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithIsAzureMonitorTargetEnabled, - DefinitionStages.WithQueueDelayMs, DefinitionStages.WithIsDevopsAuditEnabled { + DefinitionStages.WithQueueDelayMs { /** * Executes the create request. * @@ -583,46 +563,6 @@ interface WithQueueDelayMs { */ WithCreate withQueueDelayMs(Integer queueDelayMs); } - - /** - * The stage of the ServerBlobAuditingPolicy definition allowing to specify isDevopsAuditEnabled. - */ - interface WithIsDevopsAuditEnabled { - /** - * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, - * devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' - * as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic - * logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * . - * - * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be - * sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' - * as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic - * logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * @return the next definition stage. - */ - WithCreate withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); - } } /** @@ -637,8 +577,9 @@ interface WithIsDevopsAuditEnabled { */ interface Update extends UpdateStages.WithState, UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled, - UpdateStages.WithQueueDelayMs, UpdateStages.WithIsDevopsAuditEnabled { + UpdateStages.WithRetentionDays, UpdateStages.WithAuditActionsAndGroups, + UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithIsStorageSecondaryKeyInUse, + UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithQueueDelayMs { /** * Executes the update request. * @@ -721,6 +662,176 @@ interface WithStorageAccountAccessKey { Update withStorageAccountAccessKey(String storageAccountAccessKey); } + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify retentionDays. + */ + interface WithRetentionDays { + /** + * Specifies the retentionDays property: Specifies the number of days to keep in the audit logs in the + * storage account.. + * + * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account. + * @return the next definition stage. + */ + Update withRetentionDays(Integer retentionDays); + } + + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify auditActionsAndGroups. + */ + interface WithAuditActionsAndGroups { + /** + * Specifies the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * + * @param auditActionsAndGroups Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * @return the next definition stage. + */ + Update withAuditActionsAndGroups(List auditActionsAndGroups); + } + + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify storageAccountSubscriptionId. + */ + interface WithStorageAccountSubscriptionId { + /** + * Specifies the storageAccountSubscriptionId property: Specifies the blob storage subscription Id.. + * + * @param storageAccountSubscriptionId Specifies the blob storage subscription Id. + * @return the next definition stage. + */ + Update withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId); + } + /** * The stage of the ServerBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. */ @@ -793,46 +904,6 @@ interface WithQueueDelayMs { */ Update withQueueDelayMs(Integer queueDelayMs); } - - /** - * The stage of the ServerBlobAuditingPolicy update allowing to specify isDevopsAuditEnabled. - */ - interface WithIsDevopsAuditEnabled { - /** - * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, - * devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' - * as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic - * logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * . - * - * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be - * sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' - * as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic - * logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * @return the next definition stage. - */ - Update withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); - } } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicy.java index 28e99160c2ff..8ce0d1a5df55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicy.java @@ -276,7 +276,9 @@ interface WithRetentionDays { /** * The template for ServerSecurityAlertPolicy update. */ - interface Update extends UpdateStages.WithState, UpdateStages.WithStorageAccountAccessKey { + interface Update extends UpdateStages.WithState, UpdateStages.WithDisabledAlerts, UpdateStages.WithEmailAddresses, + UpdateStages.WithEmailAccountAdmins, UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, + UpdateStages.WithRetentionDays { /** * Executes the update request. * @@ -312,6 +314,64 @@ interface WithState { Update withState(SecurityAlertPolicyState state); } + /** + * The stage of the ServerSecurityAlertPolicy update allowing to specify disabledAlerts. + */ + interface WithDisabledAlerts { + /** + * Specifies the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values + * are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. + * + * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. + * @return the next definition stage. + */ + Update withDisabledAlerts(List disabledAlerts); + } + + /** + * The stage of the ServerSecurityAlertPolicy update allowing to specify emailAddresses. + */ + interface WithEmailAddresses { + /** + * Specifies the emailAddresses property: Specifies an array of e-mail addresses to which the alert is + * sent.. + * + * @param emailAddresses Specifies an array of e-mail addresses to which the alert is sent. + * @return the next definition stage. + */ + Update withEmailAddresses(List emailAddresses); + } + + /** + * The stage of the ServerSecurityAlertPolicy update allowing to specify emailAccountAdmins. + */ + interface WithEmailAccountAdmins { + /** + * Specifies the emailAccountAdmins property: Specifies that the alert is sent to the account + * administrators.. + * + * @param emailAccountAdmins Specifies that the alert is sent to the account administrators. + * @return the next definition stage. + */ + Update withEmailAccountAdmins(Boolean emailAccountAdmins); + } + + /** + * The stage of the ServerSecurityAlertPolicy update allowing to specify storageEndpoint. + */ + interface WithStorageEndpoint { + /** + * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. + * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.. + * + * @param storageEndpoint Specifies the blob storage endpoint (e.g. + * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. + * @return the next definition stage. + */ + Update withStorageEndpoint(String storageEndpoint); + } + /** * The stage of the ServerSecurityAlertPolicy update allowing to specify storageAccountAccessKey. */ @@ -326,6 +386,20 @@ interface WithStorageAccountAccessKey { */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } + + /** + * The stage of the ServerSecurityAlertPolicy update allowing to specify retentionDays. + */ + interface WithRetentionDays { + /** + * Specifies the retentionDays property: Specifies the number of days to keep in the Threat Detection audit + * logs.. + * + * @param retentionDays Specifies the number of days to keep in the Threat Detection audit logs. + * @return the next definition stage. + */ + Update withRetentionDays(Integer retentionDays); + } } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessment.java index 1d307dcf461f..b066aaf088f0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessment.java @@ -205,8 +205,8 @@ interface WithRecurringScans { /** * The template for ServerVulnerabilityAssessment update. */ - interface Update extends UpdateStages.WithStorageContainerSasKey, UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithRecurringScans { + interface Update extends UpdateStages.WithStorageContainerPath, UpdateStages.WithStorageContainerSasKey, + UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithRecurringScans { /** * Executes the update request. * @@ -227,6 +227,21 @@ interface Update extends UpdateStages.WithStorageContainerSasKey, UpdateStages.W * The ServerVulnerabilityAssessment update stages. */ interface UpdateStages { + /** + * The stage of the ServerVulnerabilityAssessment update allowing to specify storageContainerPath. + */ + interface WithStorageContainerPath { + /** + * Specifies the storageContainerPath property: A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/).. + * + * @param storageContainerPath A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * @return the next definition stage. + */ + Update withStorageContainerPath(String storageContainerPath); + } + /** * The stage of the ServerVulnerabilityAssessment update allowing to specify storageContainerSasKey. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescription.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescription.java deleted file mode 100644 index 9976545551fb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescription.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; -import java.util.List; - -/** - * An immutable client-side representation of SkuDescription. - */ -public interface SkuDescription { - /** - * Gets the resourceType property: The resource type. - * - * @return the resourceType value. - */ - String resourceType(); - - /** - * Gets the name property: The name of the SKU. - * - * @return the name value. - */ - String name(); - - /** - * Gets the size property: The size of the SKU. - * - * @return the size value. - */ - String size(); - - /** - * Gets the locations property: The set of locations that the SKU is available. - * - * @return the locations value. - */ - List locations(); - - /** - * Gets the locationInfo property: Locations and zones. - * - * @return the locationInfo value. - */ - List locationInfo(); - - /** - * Gets the restrictions property: The restrictions because of which SKU cannot be used. - * - * @return the restrictions value. - */ - List restrictions(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner object. - * - * @return the inner object. - */ - SkuDescriptionInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java deleted file mode 100644 index b481f0899069..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; -import java.io.IOException; -import java.util.List; - -/** - * The list of the SKU descriptions. - */ -@Immutable -public final class SkuDescriptionList implements JsonSerializable { - /* - * SKU descriptions - */ - private List value; - - /** - * Creates an instance of SkuDescriptionList class. - */ - public SkuDescriptionList() { - } - - /** - * Get the value property: SKU descriptions. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SkuDescriptionList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SkuDescriptionList if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the SkuDescriptionList. - */ - public static SkuDescriptionList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SkuDescriptionList deserializedSkuDescriptionList = new SkuDescriptionList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> SkuDescriptionInner.fromJson(reader1)); - deserializedSkuDescriptionList.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedSkuDescriptionList; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java deleted file mode 100644 index d8e595adf967..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * The locations and zones info for SKU. - */ -@Fluent -public final class SkuLocationInfoItem implements JsonSerializable { - /* - * The available location of the SKU. - */ - private String location; - - /* - * The available zone of the SKU. - */ - private List zones; - - /** - * Creates an instance of SkuLocationInfoItem class. - */ - public SkuLocationInfoItem() { - } - - /** - * Get the location property: The available location of the SKU. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The available location of the SKU. - * - * @param location the location value to set. - * @return the SkuLocationInfoItem object itself. - */ - public SkuLocationInfoItem withLocation(String location) { - this.location = location; - return this; - } - - /** - * Get the zones property: The available zone of the SKU. - * - * @return the zones value. - */ - public List zones() { - return this.zones; - } - - /** - * Set the zones property: The available zone of the SKU. - * - * @param zones the zones value to set. - * @return the SkuLocationInfoItem object itself. - */ - public SkuLocationInfoItem withZones(List zones) { - this.zones = zones; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property location in model SkuLocationInfoItem")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SkuLocationInfoItem.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", this.location); - jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SkuLocationInfoItem from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SkuLocationInfoItem if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the SkuLocationInfoItem. - */ - public static SkuLocationInfoItem fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SkuLocationInfoItem deserializedSkuLocationInfoItem = new SkuLocationInfoItem(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("location".equals(fieldName)) { - deserializedSkuLocationInfoItem.location = reader.getString(); - } else if ("zones".equals(fieldName)) { - List zones = reader.readArray(reader1 -> reader1.getString()); - deserializedSkuLocationInfoItem.zones = zones; - } else { - reader.skipChildren(); - } - } - - return deserializedSkuLocationInfoItem; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuName.java deleted file mode 100644 index 553e37706ccf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuName.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * SKU name. - */ -public final class SkuName extends ExpandableStringEnum { - /** - * Static value Compute optimized for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED = fromString("Compute optimized"); - - /** - * Static value Storage optimized for SkuName. - */ - public static final SkuName STORAGE_OPTIMIZED = fromString("Storage optimized"); - - /** - * Creates a new instance of SkuName value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SkuName() { - } - - /** - * Creates or finds a SkuName from its string representation. - * - * @param name a name to look for. - * @return the corresponding SkuName. - */ - public static SkuName fromString(String name) { - return fromString(name, SkuName.class); - } - - /** - * Gets known SkuName values. - * - * @return known SkuName values. - */ - public static Collection values() { - return values(SkuName.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuSize.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuSize.java deleted file mode 100644 index caf798fff11e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuSize.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * SKU size. - */ -public final class SkuSize extends ExpandableStringEnum { - /** - * Static value Extra small for SkuSize. - */ - public static final SkuSize EXTRA_SMALL = fromString("Extra small"); - - /** - * Static value Small for SkuSize. - */ - public static final SkuSize SMALL = fromString("Small"); - - /** - * Static value Medium for SkuSize. - */ - public static final SkuSize MEDIUM = fromString("Medium"); - - /** - * Static value Large for SkuSize. - */ - public static final SkuSize LARGE = fromString("Large"); - - /** - * Creates a new instance of SkuSize value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SkuSize() { - } - - /** - * Creates or finds a SkuSize from its string representation. - * - * @param name a name to look for. - * @return the corresponding SkuSize. - */ - public static SkuSize fromString(String name) { - return fromString(name, SkuSize.class); - } - - /** - * Gets known SkuSize values. - * - * @return known SkuSize values. - */ - public static Collection values() { - return values(SkuSize.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java deleted file mode 100644 index 106997eb461b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Spark pool Config Properties - * - * SparkConfig Properties for a Big Data pool powered by Apache Spark. - */ -@Fluent -public final class SparkConfigProperties implements JsonSerializable { - /* - * The last update time of the spark config properties file. - */ - private OffsetDateTime time; - - /* - * The spark config properties. - */ - private String content; - - /* - * The filename of the spark config properties file. - */ - private String filename; - - /* - * The type of the spark config properties file. - */ - private ConfigurationType configurationType; - - /** - * Creates an instance of SparkConfigProperties class. - */ - public SparkConfigProperties() { - } - - /** - * Get the time property: The last update time of the spark config properties file. - * - * @return the time value. - */ - public OffsetDateTime time() { - return this.time; - } - - /** - * Get the content property: The spark config properties. - * - * @return the content value. - */ - public String content() { - return this.content; - } - - /** - * Set the content property: The spark config properties. - * - * @param content the content value to set. - * @return the SparkConfigProperties object itself. - */ - public SparkConfigProperties withContent(String content) { - this.content = content; - return this; - } - - /** - * Get the filename property: The filename of the spark config properties file. - * - * @return the filename value. - */ - public String filename() { - return this.filename; - } - - /** - * Set the filename property: The filename of the spark config properties file. - * - * @param filename the filename value to set. - * @return the SparkConfigProperties object itself. - */ - public SparkConfigProperties withFilename(String filename) { - this.filename = filename; - return this; - } - - /** - * Get the configurationType property: The type of the spark config properties file. - * - * @return the configurationType value. - */ - public ConfigurationType configurationType() { - return this.configurationType; - } - - /** - * Set the configurationType property: The type of the spark config properties file. - * - * @param configurationType the configurationType value to set. - * @return the SparkConfigProperties object itself. - */ - public SparkConfigProperties withConfigurationType(ConfigurationType configurationType) { - this.configurationType = configurationType; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("content", this.content); - jsonWriter.writeStringField("filename", this.filename); - jsonWriter.writeStringField("configurationType", - this.configurationType == null ? null : this.configurationType.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SparkConfigProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SparkConfigProperties if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the SparkConfigProperties. - */ - public static SparkConfigProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SparkConfigProperties deserializedSparkConfigProperties = new SparkConfigProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("time".equals(fieldName)) { - deserializedSparkConfigProperties.time = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("content".equals(fieldName)) { - deserializedSparkConfigProperties.content = reader.getString(); - } else if ("filename".equals(fieldName)) { - deserializedSparkConfigProperties.filename = reader.getString(); - } else if ("configurationType".equals(fieldName)) { - deserializedSparkConfigProperties.configurationType - = ConfigurationType.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedSparkConfigProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java deleted file mode 100644 index 66ce6eb7f094..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import java.io.IOException; -import java.util.List; - -/** - * A list of SparkConfiguration resources. - */ -@Fluent -public final class SparkConfigurationListResponse implements JsonSerializable { - /* - * List of SparkConfiguration. - */ - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - private String nextLink; - - /** - * Creates an instance of SparkConfigurationListResponse class. - */ - public SparkConfigurationListResponse() { - } - - /** - * Get the value property: List of SparkConfiguration. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of SparkConfiguration. - * - * @param value the value value to set. - * @return the SparkConfigurationListResponse object itself. - */ - public SparkConfigurationListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the SparkConfigurationListResponse object itself. - */ - public SparkConfigurationListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model SparkConfigurationListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationListResponse.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SparkConfigurationListResponse from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SparkConfigurationListResponse if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the SparkConfigurationListResponse. - */ - public static SparkConfigurationListResponse fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SparkConfigurationListResponse deserializedSparkConfigurationListResponse - = new SparkConfigurationListResponse(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> SparkConfigurationResourceInner.fromJson(reader1)); - deserializedSparkConfigurationListResponse.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedSparkConfigurationListResponse.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedSparkConfigurationListResponse; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationResource.java deleted file mode 100644 index 8aed57d7ad1b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationResource.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -/** - * An immutable client-side representation of SparkConfigurationResource. - */ -public interface SparkConfigurationResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Resource Etag. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the description property: Description about the SparkConfiguration. - * - * @return the description value. - */ - String description(); - - /** - * Gets the configs property: SparkConfiguration configs. - * - * @return the configs value. - */ - Map configs(); - - /** - * Gets the annotations property: Annotations for SparkConfiguration. - * - * @return the annotations value. - */ - List annotations(); - - /** - * Gets the notes property: additional Notes. - * - * @return the notes value. - */ - String notes(); - - /** - * Gets the createdBy property: The identity that created the resource. - * - * @return the createdBy value. - */ - String createdBy(); - - /** - * Gets the created property: The timestamp of resource creation. - * - * @return the created value. - */ - OffsetDateTime created(); - - /** - * Gets the configMergeRule property: SparkConfiguration merge configs. - * - * @return the configMergeRule value. - */ - Map configMergeRule(); - - /** - * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner object. - * - * @return the inner object. - */ - SparkConfigurationResourceInner innerModel(); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurations.java deleted file mode 100644 index 1ec57f1d4036..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurations.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of SparkConfigurations. - */ -public interface SparkConfigurations { - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String sparkConfigurationName, - String workspaceName, Context context); - - /** - * Get SparkConfiguration by name. - * - * Get SparkConfiguration by name in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sparkConfigurationName SparkConfiguration name. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace. - */ - SparkConfigurationResource get(String resourceGroupName, String sparkConfigurationName, String workspaceName); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java deleted file mode 100644 index 97cab1a0ce4b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; - -/** - * Resource collection API of SparkConfigurationsOperations. - */ -public interface SparkConfigurationsOperations { - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); - - /** - * List the sparkConfigurations in a workspace. - * - * List sparkConfigurations in a workspace. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, - Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java index 3b1aab9d7f0b..f0aa1b8d3264 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java @@ -138,13 +138,6 @@ public interface SqlPool { */ StorageAccountType storageAccountType(); - /** - * Gets the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * - * @return the sourceDatabaseDeletionDate value. - */ - OffsetDateTime sourceDatabaseDeletionDate(); - /** * Gets the region of the resource. * @@ -232,8 +225,8 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithSku, DefinitionStages.WithMaxSizeBytes, DefinitionStages.WithCollation, DefinitionStages.WithSourceDatabaseId, DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithProvisioningState, - DefinitionStages.WithRestorePointInTime, DefinitionStages.WithCreateMode, - DefinitionStages.WithStorageAccountType, DefinitionStages.WithSourceDatabaseDeletionDate { + DefinitionStages.WithStatus, DefinitionStages.WithRestorePointInTime, DefinitionStages.WithCreateMode, + DefinitionStages.WithCreationDate, DefinitionStages.WithStorageAccountType { /** * Executes the create request. * @@ -341,6 +334,19 @@ interface WithProvisioningState { WithCreate withProvisioningState(String provisioningState); } + /** + * The stage of the SqlPool definition allowing to specify status. + */ + interface WithStatus { + /** + * Specifies the status property: Resource status. + * + * @param status Resource status. + * @return the next definition stage. + */ + WithCreate withStatus(String status); + } + /** * The stage of the SqlPool definition allowing to specify restorePointInTime. */ @@ -392,30 +398,30 @@ interface WithCreateMode { } /** - * The stage of the SqlPool definition allowing to specify storageAccountType. + * The stage of the SqlPool definition allowing to specify creationDate. */ - interface WithStorageAccountType { + interface WithCreationDate { /** - * Specifies the storageAccountType property: The storage account type used to store backups for this sql - * pool.. + * Specifies the creationDate property: Date the SQL pool was created. * - * @param storageAccountType The storage account type used to store backups for this sql pool. + * @param creationDate Date the SQL pool was created. * @return the next definition stage. */ - WithCreate withStorageAccountType(StorageAccountType storageAccountType); + WithCreate withCreationDate(OffsetDateTime creationDate); } /** - * The stage of the SqlPool definition allowing to specify sourceDatabaseDeletionDate. + * The stage of the SqlPool definition allowing to specify storageAccountType. */ - interface WithSourceDatabaseDeletionDate { + interface WithStorageAccountType { /** - * Specifies the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. + * Specifies the storageAccountType property: The storage account type used to store backups for this sql + * pool.. * - * @param sourceDatabaseDeletionDate Specifies the time that the sql pool was deleted. + * @param storageAccountType The storage account type used to store backups for this sql pool. * @return the next definition stage. */ - WithCreate withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate); + WithCreate withStorageAccountType(StorageAccountType storageAccountType); } } @@ -430,8 +436,9 @@ interface WithSourceDatabaseDeletionDate { * The template for SqlPool update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithMaxSizeBytes, - UpdateStages.WithSourceDatabaseId, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithProvisioningState, - UpdateStages.WithCreateMode, UpdateStages.WithStorageAccountType { + UpdateStages.WithCollation, UpdateStages.WithSourceDatabaseId, UpdateStages.WithRecoverableDatabaseId, + UpdateStages.WithProvisioningState, UpdateStages.WithStatus, UpdateStages.WithRestorePointInTime, + UpdateStages.WithCreateMode, UpdateStages.WithCreationDate, UpdateStages.WithStorageAccountType { /** * Executes the update request. * @@ -491,6 +498,19 @@ interface WithMaxSizeBytes { Update withMaxSizeBytes(Long maxSizeBytes); } + /** + * The stage of the SqlPool update allowing to specify collation. + */ + interface WithCollation { + /** + * Specifies the collation property: Collation mode. + * + * @param collation Collation mode. + * @return the next definition stage. + */ + Update withCollation(String collation); + } + /** * The stage of the SqlPool update allowing to specify sourceDatabaseId. */ @@ -530,6 +550,32 @@ interface WithProvisioningState { Update withProvisioningState(String provisioningState); } + /** + * The stage of the SqlPool update allowing to specify status. + */ + interface WithStatus { + /** + * Specifies the status property: Resource status. + * + * @param status Resource status. + * @return the next definition stage. + */ + Update withStatus(String status); + } + + /** + * The stage of the SqlPool update allowing to specify restorePointInTime. + */ + interface WithRestorePointInTime { + /** + * Specifies the restorePointInTime property: Snapshot time to restore. + * + * @param restorePointInTime Snapshot time to restore. + * @return the next definition stage. + */ + Update withRestorePointInTime(OffsetDateTime restorePointInTime); + } + /** * The stage of the SqlPool update allowing to specify createMode. */ @@ -567,6 +613,19 @@ interface WithCreateMode { Update withCreateMode(CreateMode createMode); } + /** + * The stage of the SqlPool update allowing to specify creationDate. + */ + interface WithCreationDate { + /** + * Specifies the creationDate property: Date the SQL pool was created. + * + * @param creationDate Date the SQL pool was created. + * @return the next definition stage. + */ + Update withCreationDate(OffsetDateTime creationDate); + } + /** * The stage of the SqlPool update allowing to specify storageAccountType. */ @@ -604,9 +663,9 @@ interface WithStorageAccountType { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool pause(); + Object pause(); /** * Pause SQL pool @@ -617,9 +676,9 @@ interface WithStorageAccountType { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool pause(Context context); + Object pause(Context context); /** * Resume SQL pool @@ -628,9 +687,9 @@ interface WithStorageAccountType { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool resume(); + Object resume(); /** * Resume SQL pool @@ -641,7 +700,7 @@ interface WithStorageAccountType { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool resume(Context context); + Object resume(Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicy.java index 207ce1aa3491..1330d6ba3153 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicy.java @@ -532,7 +532,8 @@ interface WithIsAzureMonitorTargetEnabled { * The template for SqlPoolBlobAuditingPolicy update. */ interface Update extends UpdateStages.WithState, UpdateStages.WithStorageEndpoint, - UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithAuditActionsAndGroups, + UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithRetentionDays, + UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled { /** * Executes the update request. @@ -599,6 +600,20 @@ interface WithStorageAccountAccessKey { Update withStorageAccountAccessKey(String storageAccountAccessKey); } + /** + * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify retentionDays. + */ + interface WithRetentionDays { + /** + * Specifies the retentionDays property: Specifies the number of days to keep in the audit logs in the + * storage account.. + * + * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account. + * @return the next definition stage. + */ + Update withRetentionDays(Integer retentionDays); + } + /** * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify auditActionsAndGroups. */ @@ -742,6 +757,19 @@ interface WithAuditActionsAndGroups { Update withAuditActionsAndGroups(List auditActionsAndGroups); } + /** + * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify storageAccountSubscriptionId. + */ + interface WithStorageAccountSubscriptionId { + /** + * Specifies the storageAccountSubscriptionId property: Specifies the blob storage subscription Id.. + * + * @param storageAccountSubscriptionId Specifies the blob storage subscription Id. + * @return the next definition stage. + */ + Update withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId); + } + /** * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMetadataSyncConfigs.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMetadataSyncConfigs.java index 6f2ba456c7a5..91be32f86c14 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMetadataSyncConfigs.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMetadataSyncConfigs.java @@ -23,8 +23,6 @@ public interface SqlPoolMetadataSyncConfigs { * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ @@ -41,8 +39,6 @@ Response getWithResponse(String resourceGroupName, String wo * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool. */ @@ -60,8 +56,6 @@ Response getWithResponse(String resourceGroupName, String wo * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response}. */ @@ -79,8 +73,6 @@ Response createWithResponse(String resourceGroupName, String * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on - * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperationResults.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperationResults.java index 918d03862ae9..1968bbe9f1bb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperationResults.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperationResults.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.synapse.models; +import com.azure.core.http.rest.Response; import com.azure.core.util.Context; /** @@ -19,13 +20,14 @@ public interface SqlPoolOperationResults { * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param operationId Operation ID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of a SQL pool operation. + * @return the status of a SQL pool operation along with {@link Response}. */ - SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, - String operationId); + Response getLocationHeaderResultWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String operationId, Context context); /** * Get SQL pool operation status @@ -36,12 +38,11 @@ SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param operationId Operation ID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of a SQL pool operation. */ - SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, - String operationId, Context context); + Object getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java index 0989efa0b2a6..f4a0270ad1a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java @@ -240,6 +240,20 @@ public String status() { return this.innerProperties() == null ? null : this.innerProperties().status(); } + /** + * Set the status property: Resource status. + * + * @param status the status value to set. + * @return the SqlPoolPatchInfo object itself. + */ + public SqlPoolPatchInfo withStatus(String status) { + if (this.innerProperties() == null) { + this.innerProperties = new SqlPoolResourceProperties(); + } + this.innerProperties().withStatus(status); + return this; + } + /** * Get the restorePointInTime property: Snapshot time to restore. * @@ -320,48 +334,39 @@ public OffsetDateTime creationDate() { } /** - * Get the storageAccountType property: The storage account type used to store backups for this sql pool. + * Set the creationDate property: Date the SQL pool was created. * - * @return the storageAccountType value. - */ - public StorageAccountType storageAccountType() { - return this.innerProperties() == null ? null : this.innerProperties().storageAccountType(); - } - - /** - * Set the storageAccountType property: The storage account type used to store backups for this sql pool. - * - * @param storageAccountType the storageAccountType value to set. + * @param creationDate the creationDate value to set. * @return the SqlPoolPatchInfo object itself. */ - public SqlPoolPatchInfo withStorageAccountType(StorageAccountType storageAccountType) { + public SqlPoolPatchInfo withCreationDate(OffsetDateTime creationDate) { if (this.innerProperties() == null) { this.innerProperties = new SqlPoolResourceProperties(); } - this.innerProperties().withStorageAccountType(storageAccountType); + this.innerProperties().withCreationDate(creationDate); return this; } /** - * Get the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. + * Get the storageAccountType property: The storage account type used to store backups for this sql pool. * - * @return the sourceDatabaseDeletionDate value. + * @return the storageAccountType value. */ - public OffsetDateTime sourceDatabaseDeletionDate() { - return this.innerProperties() == null ? null : this.innerProperties().sourceDatabaseDeletionDate(); + public StorageAccountType storageAccountType() { + return this.innerProperties() == null ? null : this.innerProperties().storageAccountType(); } /** - * Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. + * Set the storageAccountType property: The storage account type used to store backups for this sql pool. * - * @param sourceDatabaseDeletionDate the sourceDatabaseDeletionDate value to set. + * @param storageAccountType the storageAccountType value to set. * @return the SqlPoolPatchInfo object itself. */ - public SqlPoolPatchInfo withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate) { + public SqlPoolPatchInfo withStorageAccountType(StorageAccountType storageAccountType) { if (this.innerProperties() == null) { this.innerProperties = new SqlPoolResourceProperties(); } - this.innerProperties().withSourceDatabaseDeletionDate(sourceDatabaseDeletionDate); + this.innerProperties().withStorageAccountType(storageAccountType); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicy.java index 0152ed1eb1ef..732f09fdb1f0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicy.java @@ -277,8 +277,9 @@ interface WithRetentionDays { /** * The template for SqlPoolSecurityAlertPolicy update. */ - interface Update extends UpdateStages.WithState, UpdateStages.WithEmailAccountAdmins, - UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithRetentionDays { + interface Update extends UpdateStages.WithState, UpdateStages.WithDisabledAlerts, UpdateStages.WithEmailAddresses, + UpdateStages.WithEmailAccountAdmins, UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, + UpdateStages.WithRetentionDays { /** * Executes the update request. * @@ -314,6 +315,35 @@ interface WithState { Update withState(SecurityAlertPolicyState state); } + /** + * The stage of the SqlPoolSecurityAlertPolicy update allowing to specify disabledAlerts. + */ + interface WithDisabledAlerts { + /** + * Specifies the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values + * are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. + * + * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. + * @return the next definition stage. + */ + Update withDisabledAlerts(List disabledAlerts); + } + + /** + * The stage of the SqlPoolSecurityAlertPolicy update allowing to specify emailAddresses. + */ + interface WithEmailAddresses { + /** + * Specifies the emailAddresses property: Specifies an array of e-mail addresses to which the alert is + * sent.. + * + * @param emailAddresses Specifies an array of e-mail addresses to which the alert is sent. + * @return the next definition stage. + */ + Update withEmailAddresses(List emailAddresses); + } + /** * The stage of the SqlPoolSecurityAlertPolicy update allowing to specify emailAccountAdmins. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java index 0446c5f97077..860ce49a59a3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java @@ -55,9 +55,9 @@ Response getWithResponse(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool delete(String resourceGroupName, String workspaceName, String sqlPoolName); + Object delete(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Delete SQL pool @@ -71,9 +71,9 @@ Response getWithResponse(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Object delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * List SQL pools @@ -115,9 +115,9 @@ Response getWithResponse(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool pause(String resourceGroupName, String workspaceName, String sqlPoolName); + Object pause(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Pause SQL pool @@ -131,9 +131,9 @@ Response getWithResponse(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Object pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * Resume SQL pool @@ -146,9 +146,9 @@ Response getWithResponse(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool resume(String resourceGroupName, String workspaceName, String sqlPoolName); + Object resume(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Resume SQL pool @@ -162,9 +162,9 @@ Response getWithResponse(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Object resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * Get SQL pool @@ -202,9 +202,9 @@ Response getWithResponse(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool deleteById(String id); + Object deleteById(String id); /** * Delete SQL pool @@ -216,9 +216,9 @@ Response getWithResponse(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool. + * @return any object. */ - SqlPool deleteByIdWithResponse(String id, Context context); + Object deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new SqlPool resource. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/State.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/State.java deleted file mode 100644 index cf5003ffc115..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/State.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The state of the resource. - */ -public final class State extends ExpandableStringEnum { - /** - * Static value Creating for State. - */ - public static final State CREATING = fromString("Creating"); - - /** - * Static value Unavailable for State. - */ - public static final State UNAVAILABLE = fromString("Unavailable"); - - /** - * Static value Running for State. - */ - public static final State RUNNING = fromString("Running"); - - /** - * Static value Deleting for State. - */ - public static final State DELETING = fromString("Deleting"); - - /** - * Static value Deleted for State. - */ - public static final State DELETED = fromString("Deleted"); - - /** - * Static value Stopping for State. - */ - public static final State STOPPING = fromString("Stopping"); - - /** - * Static value Stopped for State. - */ - public static final State STOPPED = fromString("Stopped"); - - /** - * Static value Starting for State. - */ - public static final State STARTING = fromString("Starting"); - - /** - * Static value Updating for State. - */ - public static final State UPDATING = fromString("Updating"); - - /** - * Creates a new instance of State value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public State() { - } - - /** - * Creates or finds a State from its string representation. - * - * @param name a name to look for. - * @return the corresponding State. - */ - public static State fromString(String name) { - return fromString(name, State.class); - } - - /** - * Gets known State values. - * - * @return known State values. - */ - public static Collection values() { - return values(State.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StateValue.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StateValue.java deleted file mode 100644 index 4599f5258e6b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StateValue.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * property configuration state. - */ -public final class StateValue extends ExpandableStringEnum { - /** - * Static value Consistent for StateValue. - */ - public static final StateValue CONSISTENT = fromString("Consistent"); - - /** - * Static value InConsistent for StateValue. - */ - public static final StateValue IN_CONSISTENT = fromString("InConsistent"); - - /** - * Static value Updating for StateValue. - */ - public static final StateValue UPDATING = fromString("Updating"); - - /** - * Creates a new instance of StateValue value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public StateValue() { - } - - /** - * Creates or finds a StateValue from its string representation. - * - * @param name a name to look for. - * @return the corresponding StateValue. - */ - public static StateValue fromString(String name) { - return fromString(name, StateValue.class); - } - - /** - * Gets known StateValue values. - * - * @return known StateValue values. - */ - public static Collection values() { - return values(StateValue.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java index 18b6e7dc91e5..fedf678d6e80 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java @@ -21,6 +21,11 @@ public final class StorageAccountType extends ExpandableStringEnum { - /* - * List of tables to include in the follower database - */ - private List tablesToInclude; - - /* - * List of tables to exclude from the follower database - */ - private List tablesToExclude; - - /* - * List of external tables to include in the follower database - */ - private List externalTablesToInclude; - - /* - * List of external tables exclude from the follower database - */ - private List externalTablesToExclude; - - /* - * List of materialized views to include in the follower database - */ - private List materializedViewsToInclude; - - /* - * List of materialized views exclude from the follower database - */ - private List materializedViewsToExclude; - - /** - * Creates an instance of TableLevelSharingProperties class. - */ - public TableLevelSharingProperties() { - } - - /** - * Get the tablesToInclude property: List of tables to include in the follower database. - * - * @return the tablesToInclude value. - */ - public List tablesToInclude() { - return this.tablesToInclude; - } - - /** - * Set the tablesToInclude property: List of tables to include in the follower database. - * - * @param tablesToInclude the tablesToInclude value to set. - * @return the TableLevelSharingProperties object itself. - */ - public TableLevelSharingProperties withTablesToInclude(List tablesToInclude) { - this.tablesToInclude = tablesToInclude; - return this; - } - - /** - * Get the tablesToExclude property: List of tables to exclude from the follower database. - * - * @return the tablesToExclude value. - */ - public List tablesToExclude() { - return this.tablesToExclude; - } - - /** - * Set the tablesToExclude property: List of tables to exclude from the follower database. - * - * @param tablesToExclude the tablesToExclude value to set. - * @return the TableLevelSharingProperties object itself. - */ - public TableLevelSharingProperties withTablesToExclude(List tablesToExclude) { - this.tablesToExclude = tablesToExclude; - return this; - } - - /** - * Get the externalTablesToInclude property: List of external tables to include in the follower database. - * - * @return the externalTablesToInclude value. - */ - public List externalTablesToInclude() { - return this.externalTablesToInclude; - } - - /** - * Set the externalTablesToInclude property: List of external tables to include in the follower database. - * - * @param externalTablesToInclude the externalTablesToInclude value to set. - * @return the TableLevelSharingProperties object itself. - */ - public TableLevelSharingProperties withExternalTablesToInclude(List externalTablesToInclude) { - this.externalTablesToInclude = externalTablesToInclude; - return this; - } - - /** - * Get the externalTablesToExclude property: List of external tables exclude from the follower database. - * - * @return the externalTablesToExclude value. - */ - public List externalTablesToExclude() { - return this.externalTablesToExclude; - } - - /** - * Set the externalTablesToExclude property: List of external tables exclude from the follower database. - * - * @param externalTablesToExclude the externalTablesToExclude value to set. - * @return the TableLevelSharingProperties object itself. - */ - public TableLevelSharingProperties withExternalTablesToExclude(List externalTablesToExclude) { - this.externalTablesToExclude = externalTablesToExclude; - return this; - } - - /** - * Get the materializedViewsToInclude property: List of materialized views to include in the follower database. - * - * @return the materializedViewsToInclude value. - */ - public List materializedViewsToInclude() { - return this.materializedViewsToInclude; - } - - /** - * Set the materializedViewsToInclude property: List of materialized views to include in the follower database. - * - * @param materializedViewsToInclude the materializedViewsToInclude value to set. - * @return the TableLevelSharingProperties object itself. - */ - public TableLevelSharingProperties withMaterializedViewsToInclude(List materializedViewsToInclude) { - this.materializedViewsToInclude = materializedViewsToInclude; - return this; - } - - /** - * Get the materializedViewsToExclude property: List of materialized views exclude from the follower database. - * - * @return the materializedViewsToExclude value. - */ - public List materializedViewsToExclude() { - return this.materializedViewsToExclude; - } - - /** - * Set the materializedViewsToExclude property: List of materialized views exclude from the follower database. - * - * @param materializedViewsToExclude the materializedViewsToExclude value to set. - * @return the TableLevelSharingProperties object itself. - */ - public TableLevelSharingProperties withMaterializedViewsToExclude(List materializedViewsToExclude) { - this.materializedViewsToExclude = materializedViewsToExclude; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("tablesToInclude", this.tablesToInclude, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("tablesToExclude", this.tablesToExclude, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("externalTablesToInclude", this.externalTablesToInclude, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("externalTablesToExclude", this.externalTablesToExclude, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("materializedViewsToInclude", this.materializedViewsToInclude, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("materializedViewsToExclude", this.materializedViewsToExclude, - (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of TableLevelSharingProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of TableLevelSharingProperties if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the TableLevelSharingProperties. - */ - public static TableLevelSharingProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - TableLevelSharingProperties deserializedTableLevelSharingProperties = new TableLevelSharingProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tablesToInclude".equals(fieldName)) { - List tablesToInclude = reader.readArray(reader1 -> reader1.getString()); - deserializedTableLevelSharingProperties.tablesToInclude = tablesToInclude; - } else if ("tablesToExclude".equals(fieldName)) { - List tablesToExclude = reader.readArray(reader1 -> reader1.getString()); - deserializedTableLevelSharingProperties.tablesToExclude = tablesToExclude; - } else if ("externalTablesToInclude".equals(fieldName)) { - List externalTablesToInclude = reader.readArray(reader1 -> reader1.getString()); - deserializedTableLevelSharingProperties.externalTablesToInclude = externalTablesToInclude; - } else if ("externalTablesToExclude".equals(fieldName)) { - List externalTablesToExclude = reader.readArray(reader1 -> reader1.getString()); - deserializedTableLevelSharingProperties.externalTablesToExclude = externalTablesToExclude; - } else if ("materializedViewsToInclude".equals(fieldName)) { - List materializedViewsToInclude = reader.readArray(reader1 -> reader1.getString()); - deserializedTableLevelSharingProperties.materializedViewsToInclude = materializedViewsToInclude; - } else if ("materializedViewsToExclude".equals(fieldName)) { - List materializedViewsToExclude = reader.readArray(reader1 -> reader1.getString()); - deserializedTableLevelSharingProperties.materializedViewsToExclude = materializedViewsToExclude; - } else { - reader.skipChildren(); - } - } - - return deserializedTableLevelSharingProperties; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Type.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Type.java deleted file mode 100644 index 2859da80341e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Type.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -/** - * The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. - */ -public enum Type { - /** - * Enum value Microsoft.Synapse/workspaces/kustoPools/databases. - */ - MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES("Microsoft.Synapse/workspaces/kustoPools/databases"), - - /** - * Enum value Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations. - */ - MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS( - "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations"); - - /** - * The actual serialized value for a Type instance. - */ - private final String value; - - Type(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a Type instance. - * - * @param value the serialized value to parse. - * @return the parsed Type object, or null if unable to parse. - */ - public static Type fromString(String value) { - if (value == null) { - return null; - } - Type[] items = Type.values(); - for (Type item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - /** - * {@inheritDoc} - */ - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java deleted file mode 100644 index e495d9b3692d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.UUID; - -/** - * User Assigned Managed Identity. - */ -@Immutable -public final class UserAssignedManagedIdentity implements JsonSerializable { - /* - * The client ID. - */ - private UUID clientId; - - /* - * The principal ID. - */ - private UUID principalId; - - /** - * Creates an instance of UserAssignedManagedIdentity class. - */ - public UserAssignedManagedIdentity() { - } - - /** - * Get the clientId property: The client ID. - * - * @return the clientId value. - */ - public UUID clientId() { - return this.clientId; - } - - /** - * Get the principalId property: The principal ID. - * - * @return the principalId value. - */ - public UUID principalId() { - return this.principalId; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of UserAssignedManagedIdentity from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of UserAssignedManagedIdentity if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the UserAssignedManagedIdentity. - */ - public static UserAssignedManagedIdentity fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - UserAssignedManagedIdentity deserializedUserAssignedManagedIdentity = new UserAssignedManagedIdentity(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("clientId".equals(fieldName)) { - deserializedUserAssignedManagedIdentity.clientId - = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); - } else if ("principalId".equals(fieldName)) { - deserializedUserAssignedManagedIdentity.principalId - = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); - } else { - reader.skipChildren(); - } - } - - return deserializedUserAssignedManagedIdentity; - }); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspace.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspace.java index 5a6ba9f80701..271121771997 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspace.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspace.java @@ -144,7 +144,7 @@ public interface Workspace { * * @return the extraProperties value. */ - Object extraProperties(); + Map extraProperties(); /** * Gets the managedVirtualNetworkSettings property: Managed Virtual Network Settings. @@ -181,35 +181,6 @@ public interface Workspace { */ WorkspacePublicNetworkAccess publicNetworkAccess(); - /** - * Gets the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * - * @return the cspWorkspaceAdminProperties value. - */ - CspWorkspaceAdminProperties cspWorkspaceAdminProperties(); - - /** - * Gets the settings property: Workspace settings. - * - * @return the settings value. - */ - Map settings(); - - /** - * Gets the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace - * subresource. - * - * @return the azureADOnlyAuthentication value. - */ - Boolean azureADOnlyAuthentication(); - - /** - * Gets the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * - * @return the trustedServiceBypassEnabled value. - */ - Boolean trustedServiceBypassEnabled(); - /** * Gets the region of the resource. * @@ -296,12 +267,11 @@ interface WithResourceGroup { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithDefaultDataLakeStorage, DefinitionStages.WithSqlAdministratorLoginPassword, DefinitionStages.WithManagedResourceGroupName, DefinitionStages.WithSqlAdministratorLogin, - DefinitionStages.WithVirtualNetworkProfile, DefinitionStages.WithManagedVirtualNetwork, - DefinitionStages.WithPrivateEndpointConnections, DefinitionStages.WithEncryption, - DefinitionStages.WithManagedVirtualNetworkSettings, DefinitionStages.WithWorkspaceRepositoryConfiguration, - DefinitionStages.WithPurviewConfiguration, DefinitionStages.WithPublicNetworkAccess, - DefinitionStages.WithCspWorkspaceAdminProperties, DefinitionStages.WithAzureADOnlyAuthentication, - DefinitionStages.WithTrustedServiceBypassEnabled { + DefinitionStages.WithVirtualNetworkProfile, DefinitionStages.WithConnectivityEndpoints, + DefinitionStages.WithManagedVirtualNetwork, DefinitionStages.WithPrivateEndpointConnections, + DefinitionStages.WithEncryption, DefinitionStages.WithManagedVirtualNetworkSettings, + DefinitionStages.WithWorkspaceRepositoryConfiguration, DefinitionStages.WithPurviewConfiguration, + DefinitionStages.WithPublicNetworkAccess { /** * Executes the create request. * @@ -415,6 +385,19 @@ interface WithVirtualNetworkProfile { WithCreate withVirtualNetworkProfile(VirtualNetworkProfile virtualNetworkProfile); } + /** + * The stage of the Workspace definition allowing to specify connectivityEndpoints. + */ + interface WithConnectivityEndpoints { + /** + * Specifies the connectivityEndpoints property: Connectivity endpoints. + * + * @param connectivityEndpoints Connectivity endpoints. + * @return the next definition stage. + */ + WithCreate withConnectivityEndpoints(Map connectivityEndpoints); + } + /** * The stage of the Workspace definition allowing to specify managedVirtualNetwork. */ @@ -508,48 +491,6 @@ interface WithPublicNetworkAccess { */ WithCreate withPublicNetworkAccess(WorkspacePublicNetworkAccess publicNetworkAccess); } - - /** - * The stage of the Workspace definition allowing to specify cspWorkspaceAdminProperties. - */ - interface WithCspWorkspaceAdminProperties { - /** - * Specifies the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP - * subscription. - * - * @param cspWorkspaceAdminProperties Initial workspace AAD admin properties for a CSP subscription. - * @return the next definition stage. - */ - WithCreate withCspWorkspaceAdminProperties(CspWorkspaceAdminProperties cspWorkspaceAdminProperties); - } - - /** - * The stage of the Workspace definition allowing to specify azureADOnlyAuthentication. - */ - interface WithAzureADOnlyAuthentication { - /** - * Specifies the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All - * Workspace subresource. - * - * @param azureADOnlyAuthentication Enable or Disable AzureADOnlyAuthentication on All Workspace - * subresource. - * @return the next definition stage. - */ - WithCreate withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication); - } - - /** - * The stage of the Workspace definition allowing to specify trustedServiceBypassEnabled. - */ - interface WithTrustedServiceBypassEnabled { - /** - * Specifies the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * - * @param trustedServiceBypassEnabled Is trustedServiceBypassEnabled for the workspace. - * @return the next definition stage. - */ - WithCreate withTrustedServiceBypassEnabled(Boolean trustedServiceBypassEnabled); - } } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java deleted file mode 100644 index 26eb73f9a8bb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; - -/** - * Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. - */ -public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings { - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info. - */ - DedicatedSQLminimalTlsSettings update(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters); - - /** - * Update server's tls settings. - * - * Update workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param parameters minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info. - */ - DedicatedSQLminimalTlsSettings update(String resourceGroupName, String workspaceName, - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, Context context); - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName, Context context); - - /** - * Get server's minimal tls settings. - * - * Get workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's minimal tls settings. - */ - DedicatedSQLminimalTlsSettings get(String resourceGroupName, String workspaceName, - String dedicatedSQLminimalTlsSettingsName); - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String workspaceName); - - /** - * List workspace server's minimal tls settings. - * - * List workspace managed sql server's minimal tls settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String workspaceName, Context context); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceStatus.java deleted file mode 100644 index 151cfe1ec11b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceStatus.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * status of Start Integrationruntimes. - */ -public final class WorkspaceStatus extends ExpandableStringEnum { - /** - * Static value InProgress for WorkspaceStatus. - */ - public static final WorkspaceStatus IN_PROGRESS = fromString("InProgress"); - - /** - * Static value Succeeded for WorkspaceStatus. - */ - public static final WorkspaceStatus SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for WorkspaceStatus. - */ - public static final WorkspaceStatus FAILED = fromString("Failed"); - - /** - * Creates a new instance of WorkspaceStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public WorkspaceStatus() { - } - - /** - * Creates or finds a WorkspaceStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding WorkspaceStatus. - */ - public static WorkspaceStatus fromString(String name) { - return fromString(name, WorkspaceStatus.class); - } - - /** - * Gets known WorkspaceStatus values. - * - * @return known WorkspaceStatus values. - */ - public static Collection values() { - return values(WorkspaceStatus.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java index b2fc96f2b1a1..a25fec2667a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java @@ -68,9 +68,9 @@ public interface Workspaces { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace. + * @return any object. */ - Workspace deleteByResourceGroup(String resourceGroupName, String workspaceName); + Object deleteByResourceGroup(String resourceGroupName, String workspaceName); /** * Deletes a workspace. @@ -81,9 +81,9 @@ public interface Workspaces { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace. + * @return any object. */ - Workspace delete(String resourceGroupName, String workspaceName, Context context); + Object delete(String resourceGroupName, String workspaceName, Context context); /** * Returns a list of workspaces in a subscription. @@ -135,9 +135,9 @@ public interface Workspaces { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace. + * @return any object. */ - Workspace deleteById(String id); + Object deleteById(String id); /** * Deletes a workspace. @@ -147,9 +147,9 @@ public interface Workspaces { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace. + * @return any object. */ - Workspace deleteByIdWithResponse(String id, Context context); + Object deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new Workspace resource. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/proxy-config.json b/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/proxy-config.json index f59b4a721c98..fb79cc29de93 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/proxy-config.json +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.synapse.implementation.AzureADOnlyAuthenticationsClientImpl$AzureADOnlyAuthenticationsService"],["com.azure.resourcemanager.synapse.implementation.BigDataPoolsClientImpl$BigDataPoolsService"],["com.azure.resourcemanager.synapse.implementation.DataMaskingPoliciesClientImpl$DataMaskingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.DataMaskingRulesClientImpl$DataMaskingRulesService"],["com.azure.resourcemanager.synapse.implementation.ExtendedSqlPoolBlobAuditingPoliciesClientImpl$ExtendedSqlPoolBlobAuditingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.GetsClientImpl$GetsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeAuthKeysOperationsClientImpl$IntegrationRuntimeAuthKeysOperationsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeConnectionInfosClientImpl$IntegrationRuntimeConnectionInfosService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeCredentialsClientImpl$IntegrationRuntimeCredentialsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeMonitoringDatasClientImpl$IntegrationRuntimeMonitoringDatasService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeNodeIpAddressOperationsClientImpl$IntegrationRuntimeNodeIpAddressOperationsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeNodesClientImpl$IntegrationRuntimeNodesService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeObjectMetadatasClientImpl$IntegrationRuntimeObjectMetadatasService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeStatusOperationsClientImpl$IntegrationRuntimeStatusOperationsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimesClientImpl$IntegrationRuntimesService"],["com.azure.resourcemanager.synapse.implementation.IpFirewallRulesClientImpl$IpFirewallRulesService"],["com.azure.resourcemanager.synapse.implementation.KeysClientImpl$KeysService"],["com.azure.resourcemanager.synapse.implementation.KustoOperationsClientImpl$KustoOperationsService"],["com.azure.resourcemanager.synapse.implementation.KustoPoolAttachedDatabaseConfigurationsClientImpl$KustoPoolAttachedDatabaseConfigurationsService"],["com.azure.resourcemanager.synapse.implementation.KustoPoolChildResourcesClientImpl$KustoPoolChildResourcesService"],["com.azure.resourcemanager.synapse.implementation.KustoPoolDataConnectionsClientImpl$KustoPoolDataConnectionsService"],["com.azure.resourcemanager.synapse.implementation.KustoPoolDatabasePrincipalAssignmentsClientImpl$KustoPoolDatabasePrincipalAssignmentsService"],["com.azure.resourcemanager.synapse.implementation.KustoPoolDatabasesClientImpl$KustoPoolDatabasesService"],["com.azure.resourcemanager.synapse.implementation.KustoPoolPrincipalAssignmentsClientImpl$KustoPoolPrincipalAssignmentsService"],["com.azure.resourcemanager.synapse.implementation.KustoPoolPrivateLinkResourcesOperationsClientImpl$KustoPoolPrivateLinkResourcesOperationsService"],["com.azure.resourcemanager.synapse.implementation.KustoPoolsClientImpl$KustoPoolsService"],["com.azure.resourcemanager.synapse.implementation.LibrariesClientImpl$LibrariesService"],["com.azure.resourcemanager.synapse.implementation.LibrariesOperationsClientImpl$LibrariesOperationsService"],["com.azure.resourcemanager.synapse.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.synapse.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.synapse.implementation.PrivateEndpointConnectionsPrivateLinkHubsClientImpl$PrivateEndpointConnectionsPrivateLinkHubsService"],["com.azure.resourcemanager.synapse.implementation.PrivateLinkHubPrivateLinkResourcesClientImpl$PrivateLinkHubPrivateLinkResourcesService"],["com.azure.resourcemanager.synapse.implementation.PrivateLinkHubsClientImpl$PrivateLinkHubsService"],["com.azure.resourcemanager.synapse.implementation.PrivateLinkResourcesOperationsClientImpl$PrivateLinkResourcesOperationsService"],["com.azure.resourcemanager.synapse.implementation.RestorableDroppedSqlPoolsClientImpl$RestorableDroppedSqlPoolsService"],["com.azure.resourcemanager.synapse.implementation.SparkConfigurationsClientImpl$SparkConfigurationsService"],["com.azure.resourcemanager.synapse.implementation.SparkConfigurationsOperationsClientImpl$SparkConfigurationsOperationsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolBlobAuditingPoliciesClientImpl$SqlPoolBlobAuditingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolColumnsClientImpl$SqlPoolColumnsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolConnectionPoliciesClientImpl$SqlPoolConnectionPoliciesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolDataWarehouseUserActivitiesClientImpl$SqlPoolDataWarehouseUserActivitiesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolGeoBackupPoliciesClientImpl$SqlPoolGeoBackupPoliciesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolMaintenanceWindowOptionsClientImpl$SqlPoolMaintenanceWindowOptionsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolMaintenanceWindowsClientImpl$SqlPoolMaintenanceWindowsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolMetadataSyncConfigsClientImpl$SqlPoolMetadataSyncConfigsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolOperationResultsClientImpl$SqlPoolOperationResultsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolOperationsClientImpl$SqlPoolOperationsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolRecommendedSensitivityLabelsClientImpl$SqlPoolRecommendedSensitivityLabelsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolReplicationLinksClientImpl$SqlPoolReplicationLinksService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolRestorePointsClientImpl$SqlPoolRestorePointsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolSchemasClientImpl$SqlPoolSchemasService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolSecurityAlertPoliciesClientImpl$SqlPoolSecurityAlertPoliciesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolSensitivityLabelsClientImpl$SqlPoolSensitivityLabelsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolTableColumnsClientImpl$SqlPoolTableColumnsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolTablesClientImpl$SqlPoolTablesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolTransparentDataEncryptionsClientImpl$SqlPoolTransparentDataEncryptionsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolUsagesClientImpl$SqlPoolUsagesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl$SqlPoolVulnerabilityAssessmentRuleBaselinesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentScansClientImpl$SqlPoolVulnerabilityAssessmentScansService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentsClientImpl$SqlPoolVulnerabilityAssessmentsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolWorkloadClassifiersClientImpl$SqlPoolWorkloadClassifiersService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolWorkloadGroupsClientImpl$SqlPoolWorkloadGroupsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolsClientImpl$SqlPoolsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceAadAdminsClientImpl$WorkspaceAadAdminsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedIdentitySqlControlSettingsClientImpl$WorkspaceManagedIdentitySqlControlSettingsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl$WorkspaceManagedSqlServerBlobAuditingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl$WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerEncryptionProtectorsClientImpl$WorkspaceManagedSqlServerEncryptionProtectorsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl$WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl$WorkspaceManagedSqlServerRecoverableSqlPoolsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl$WorkspaceManagedSqlServerSecurityAlertPoliciesService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerUsagesClientImpl$WorkspaceManagedSqlServerUsagesService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl$WorkspaceManagedSqlServerVulnerabilityAssessmentsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceSqlAadAdminsClientImpl$WorkspaceSqlAadAdminsService"],["com.azure.resourcemanager.synapse.implementation.WorkspacesClientImpl$WorkspacesService"]] \ No newline at end of file +[["com.azure.resourcemanager.synapse.implementation.BigDataPoolsClientImpl$BigDataPoolsService"],["com.azure.resourcemanager.synapse.implementation.DataMaskingPoliciesClientImpl$DataMaskingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.DataMaskingRulesClientImpl$DataMaskingRulesService"],["com.azure.resourcemanager.synapse.implementation.ExtendedSqlPoolBlobAuditingPoliciesClientImpl$ExtendedSqlPoolBlobAuditingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeAuthKeysOperationsClientImpl$IntegrationRuntimeAuthKeysOperationsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeConnectionInfosClientImpl$IntegrationRuntimeConnectionInfosService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeCredentialsClientImpl$IntegrationRuntimeCredentialsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeMonitoringDatasClientImpl$IntegrationRuntimeMonitoringDatasService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeNodeIpAddressOperationsClientImpl$IntegrationRuntimeNodeIpAddressOperationsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeNodesClientImpl$IntegrationRuntimeNodesService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeObjectMetadatasClientImpl$IntegrationRuntimeObjectMetadatasService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeStatusOperationsClientImpl$IntegrationRuntimeStatusOperationsService"],["com.azure.resourcemanager.synapse.implementation.IntegrationRuntimesClientImpl$IntegrationRuntimesService"],["com.azure.resourcemanager.synapse.implementation.IpFirewallRulesClientImpl$IpFirewallRulesService"],["com.azure.resourcemanager.synapse.implementation.KeysClientImpl$KeysService"],["com.azure.resourcemanager.synapse.implementation.LibrariesClientImpl$LibrariesService"],["com.azure.resourcemanager.synapse.implementation.LibrariesOperationsClientImpl$LibrariesOperationsService"],["com.azure.resourcemanager.synapse.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.synapse.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.synapse.implementation.PrivateEndpointConnectionsPrivateLinkHubsClientImpl$PrivateEndpointConnectionsPrivateLinkHubsService"],["com.azure.resourcemanager.synapse.implementation.PrivateLinkHubPrivateLinkResourcesClientImpl$PrivateLinkHubPrivateLinkResourcesService"],["com.azure.resourcemanager.synapse.implementation.PrivateLinkHubsClientImpl$PrivateLinkHubsService"],["com.azure.resourcemanager.synapse.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.synapse.implementation.RestorableDroppedSqlPoolsClientImpl$RestorableDroppedSqlPoolsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolBlobAuditingPoliciesClientImpl$SqlPoolBlobAuditingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolColumnsClientImpl$SqlPoolColumnsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolConnectionPoliciesClientImpl$SqlPoolConnectionPoliciesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolDataWarehouseUserActivitiesClientImpl$SqlPoolDataWarehouseUserActivitiesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolGeoBackupPoliciesClientImpl$SqlPoolGeoBackupPoliciesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolMaintenanceWindowOptionsClientImpl$SqlPoolMaintenanceWindowOptionsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolMaintenanceWindowsClientImpl$SqlPoolMaintenanceWindowsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolMetadataSyncConfigsClientImpl$SqlPoolMetadataSyncConfigsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolOperationResultsClientImpl$SqlPoolOperationResultsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolOperationsClientImpl$SqlPoolOperationsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolRecommendedSensitivityLabelsClientImpl$SqlPoolRecommendedSensitivityLabelsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolReplicationLinksClientImpl$SqlPoolReplicationLinksService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolRestorePointsClientImpl$SqlPoolRestorePointsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolSchemasClientImpl$SqlPoolSchemasService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolSecurityAlertPoliciesClientImpl$SqlPoolSecurityAlertPoliciesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolSensitivityLabelsClientImpl$SqlPoolSensitivityLabelsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolTableColumnsClientImpl$SqlPoolTableColumnsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolTablesClientImpl$SqlPoolTablesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolTransparentDataEncryptionsClientImpl$SqlPoolTransparentDataEncryptionsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolUsagesClientImpl$SqlPoolUsagesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl$SqlPoolVulnerabilityAssessmentRuleBaselinesService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentScansClientImpl$SqlPoolVulnerabilityAssessmentScansService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentsClientImpl$SqlPoolVulnerabilityAssessmentsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolWorkloadClassifiersClientImpl$SqlPoolWorkloadClassifiersService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolWorkloadGroupsClientImpl$SqlPoolWorkloadGroupsService"],["com.azure.resourcemanager.synapse.implementation.SqlPoolsClientImpl$SqlPoolsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceAadAdminsClientImpl$WorkspaceAadAdminsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedIdentitySqlControlSettingsClientImpl$WorkspaceManagedIdentitySqlControlSettingsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl$WorkspaceManagedSqlServerBlobAuditingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerEncryptionProtectorsClientImpl$WorkspaceManagedSqlServerEncryptionProtectorsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl$WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl$WorkspaceManagedSqlServerRecoverableSqlPoolsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl$WorkspaceManagedSqlServerSecurityAlertPoliciesService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerUsagesClientImpl$WorkspaceManagedSqlServerUsagesService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl$WorkspaceManagedSqlServerVulnerabilityAssessmentsService"],["com.azure.resourcemanager.synapse.implementation.WorkspaceSqlAadAdminsClientImpl$WorkspaceSqlAadAdminsService"],["com.azure.resourcemanager.synapse.implementation.WorkspacesClientImpl$WorkspacesService"]] \ No newline at end of file diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateSamples.java deleted file mode 100644 index 736cf0f84df4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; - -/** - * Samples for AzureADOnlyAuthentications Create. - */ -public final class AzureADOnlyAuthenticationsCreateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * CreateOrUpdateAzureADOnlyAuthentication.json - */ - /** - * Sample code: Create or Update Azure Active Directory Only Authentication property. - * - * @param manager Entry point to SynapseManager. - */ - public static void createOrUpdateAzureActiveDirectoryOnlyAuthenticationProperty( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.azureADOnlyAuthentications() - .define(AzureADOnlyAuthenticationName.DEFAULT) - .withExistingWorkspace("workspace-6852", "workspace-2080") - .withAzureADOnlyAuthentication(true) - .create(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetSamples.java deleted file mode 100644 index 9809e0ff284e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; - -/** - * Samples for AzureADOnlyAuthentications Get. - */ -public final class AzureADOnlyAuthenticationsGetSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureADOnlyAuthentication. - * json - */ - /** - * Sample code: Get Azure Active Directory Only Authentication property. - * - * @param manager Entry point to SynapseManager. - */ - public static void - getAzureActiveDirectoryOnlyAuthenticationProperty(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.azureADOnlyAuthentications() - .getWithResponse("workspace-6852", "workspace-2080", AzureADOnlyAuthenticationName.DEFAULT, - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java deleted file mode 100644 index 155e5a1de1e8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for AzureADOnlyAuthentications List. - */ -public final class AzureADOnlyAuthenticationsListSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListAzureADOnlyAuthentication - * .json - */ - /** - * Sample code: Get a list of Azure Active Directory Only Authentication property. - * - * @param manager Entry point to SynapseManager. - */ - public static void getAListOfAzureActiveDirectoryOnlyAuthenticationProperty( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.azureADOnlyAuthentications().list("workspace-6852", "workspace-2080", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateSamples.java index 8af58de07f81..121e018f48f9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateSamples.java @@ -17,8 +17,9 @@ */ public final class BigDataPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * CreateOrUpdateBigDataPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateOrUpdateBigDataPool. + * json */ /** * Sample code: Create or update a Big Data pool. @@ -33,7 +34,6 @@ public static void createOrUpdateABigDataPool(com.azure.resourcemanager.synapse. .withTags(mapOf("key", "fakeTokenPlaceholder")) .withAutoScale(new AutoScaleProperties().withMinNodeCount(3).withEnabled(true).withMaxNodeCount(50)) .withAutoPause(new AutoPauseProperties().withDelayInMinutes(15).withEnabled(true)) - .withIsAutotuneEnabled(false) .withSparkEventsFolder("/events") .withNodeCount(4) .withLibraryRequirements(new LibraryRequirements().withContent("").withFilename("requirements.txt")) diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteSamples.java index b3a67d5ac465..d7565cb35333 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteSamples.java @@ -10,8 +10,7 @@ public final class BigDataPoolsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/DeleteBigDataPool. - * json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteBigDataPool.json */ /** * Sample code: Delete a Big Data pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetSamples.java index 121ac496060f..3ca58f492a73 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetSamples.java @@ -10,7 +10,7 @@ public final class BigDataPoolsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetBigDataPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetBigDataPool.json */ /** * Sample code: Get a Big Data pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceSamples.java index 22325e5f23fc..a9b346f746e3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceSamples.java @@ -9,8 +9,9 @@ */ public final class BigDataPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * ListBigDataPoolsInWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListBigDataPoolsInWorkspace. + * json */ /** * Sample code: List Big Data pools in a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsUpdateSamples.java index 2cdfce288a20..dce65df1ebfe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsUpdateSamples.java @@ -14,8 +14,7 @@ public final class BigDataPoolsUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/UpdateBigDataPool. - * json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/UpdateBigDataPool.json */ /** * Sample code: Update a Big Data pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateSamples.java index 99100611869a..036b8ae76dcc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class DataMaskingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingPolicyCreateOrUpdateMin.json */ /** @@ -28,7 +28,7 @@ public static void createOrUpdateDataMaskingPolicyMin(com.azure.resourcemanager. } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingPolicyCreateOrUpdateMax.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java index 028020fc4f71..141cfe35c17e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java @@ -10,7 +10,7 @@ public final class DataMaskingPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DataMaskingPolicyGet.json */ /** * Sample code: Get data masking policy. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateSamples.java index ea11a2839b1f..5b14239703b9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class DataMaskingRulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingRuleCreateOrUpdateDefaultMin.json */ /** @@ -33,7 +33,7 @@ public final class DataMaskingRulesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingRuleCreateOrUpdateDefaultMax.json */ /** @@ -56,7 +56,7 @@ public final class DataMaskingRulesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingRuleCreateOrUpdateText.json */ /** @@ -79,7 +79,7 @@ public static void createUpdateDataMaskingRuleForText(com.azure.resourcemanager. } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DataMaskingRuleCreateOrUpdateNumber.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetSamples.java index 35dde145a273..e1c00080ec56 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetSamples.java @@ -10,7 +10,7 @@ public final class DataMaskingRulesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DataMaskingRuleGet.json */ /** * Sample code: Get data masking rule. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolSamples.java index 4600495de1b9..b424bda743bc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolSamples.java @@ -10,7 +10,7 @@ public final class DataMaskingRulesListBySqlPoolSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleList.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DataMaskingRuleList.json */ /** * Sample code: List data masking rules. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java index ee7b73a836ec..462e46cf657c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExtendedSqlPoolBlobAuditingCreateMax.json */ /** @@ -41,7 +41,7 @@ public static void createOrUpdateAnExtendedSqlPoolSBlobAuditingPolicyWithAllPara } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExtendedSqlPoolAzureMonitorAuditingCreateMin.json */ /** @@ -60,7 +60,7 @@ public static void createOrUpdateAnExtendedSQLPoolSAzureMonitorAuditingPolicyWit } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExtendedSqlPoolBlobAuditingCreateMin.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesGetSamples.java index 87a90052b644..c68e2f1474a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ExtendedSqlPoolBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExtendedSqlPoolBlobAuditingGet.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java index 99d518cca2fa..6ed7e55dd8da 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java @@ -9,7 +9,7 @@ */ public final class ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolExtendedAuditingSettingsList.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeEnableInteractivequerySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeEnableInteractivequerySamples.java deleted file mode 100644 index 2ddbf7770cb8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeEnableInteractivequerySamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for Get IntegrationRuntimeEnableInteractivequery. - */ -public final class GetIntegrationRuntimeEnableInteractivequerySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * EnableInteractivequery_IntegrationRuntimes.json - */ - /** - * Sample code: Get integration runtime operation status. - * - * @param manager Entry point to SynapseManager. - */ - public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.gets() - .integrationRuntimeEnableInteractivequeryWithResponse("drage-felles-prod-rg", - "felles-prod-synapse-workspace", "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStartSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStartSamples.java deleted file mode 100644 index eaf7138fe9c2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStartSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for Get IntegrationRuntimeStart. - */ -public final class GetIntegrationRuntimeStartSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Start_OperationStatus.json - */ - /** - * Sample code: Get integration runtime operation status. - * - * @param manager Entry point to SynapseManager. - */ - public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.gets() - .integrationRuntimeStartWithResponse("drage-felles-prod-rg", "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStopSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStopSamples.java deleted file mode 100644 index 2a2d50a6b351..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStopSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for Get IntegrationRuntimeStop. - */ -public final class GetIntegrationRuntimeStopSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Stop_OperationStatus.json - */ - /** - * Sample code: Get integration runtime operation status. - * - * @param manager Entry point to SynapseManager. - */ - public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.gets() - .integrationRuntimeStopWithResponse("drage-felles-prod-rg", "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationListSamples.java index 2c23b2c115c9..f26f21d52dcd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationListSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimeAuthKeysOperationListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_ListAuthKeys.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationRegenerateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationRegenerateSamples.java index f5aec0acc4ec..4c5521d24368 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationRegenerateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationRegenerateSamples.java @@ -12,7 +12,7 @@ */ public final class IntegrationRuntimeAuthKeysOperationRegenerateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_RegenerateAuthKey.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeConnectionInfosGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeConnectionInfosGetSamples.java index c087fb5e9ac0..456ae4a79475 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeConnectionInfosGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeConnectionInfosGetSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimeConnectionInfosGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_GetConnectionInfo.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncSamples.java index f532b3a0d427..8799c2a65e92 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimeCredentialsSyncSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_SyncCredentials.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataListSamples.java index 4fd62fb178e7..6aaac0b873e5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataListSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimeMonitoringDataListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeMonitoringData_List.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationGetSamples.java index 1fb0c5fd0062..0569fdce3040 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationGetSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimeNodeIpAddressOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeNodes_GetIpAddress.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteSamples.java index 991bd3087320..9a4b5eaa2129 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimeNodesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeNodes_Delete.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetSamples.java index 38589ba76a75..69abf55b343f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetSamples.java @@ -9,8 +9,9 @@ */ public final class IntegrationRuntimeNodesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimeNodes_Get.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimeNodes_Get. + * json */ /** * Sample code: Get integration runtime node. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateSamples.java index 8f77c0facf9d..934ce6669743 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class IntegrationRuntimeNodesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeNodes_Update.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataListSamples.java index 24904f0174b5..ca86cc328cc5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataListSamples.java @@ -11,7 +11,7 @@ */ public final class IntegrationRuntimeObjectMetadataListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeObjectMetadata_List.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java index 5e948a8a7d90..78181a264a28 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimeObjectMetadataRefreshSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimeObjectMetadata_Refresh.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationGetSamples.java index 8a1d11611a14..c9a2ed108e5c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationGetSamples.java @@ -9,8 +9,9 @@ */ public final class IntegrationRuntimeStatusOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_GetStatus.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_GetStatus + * .json */ /** * Sample code: Get status. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateSamples.java index 5db9fdfeb628..79ac12d5697d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateSamples.java @@ -11,8 +11,9 @@ */ public final class IntegrationRuntimesCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Create.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Create. + * json */ /** * Sample code: Create integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteSamples.java index 432175786470..0eac7cb4389f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteSamples.java @@ -9,8 +9,9 @@ */ public final class IntegrationRuntimesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Delete.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Delete. + * json */ /** * Sample code: Delete integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQuerySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQuerySamples.java index 9f8d79ba0f7b..eb7e9dc69913 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQuerySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQuerySamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimesDisableInteractiveQuerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_DisableInteractiveQuery.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQuerySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQuerySamples.java index 4840609a06a9..73941c97906a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQuerySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQuerySamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimesEnableInteractiveQuerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_EnableInteractiveQuery.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetSamples.java index 1f3e1dd342de..1765d7b4b6c4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetSamples.java @@ -9,8 +9,8 @@ */ public final class IntegrationRuntimesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Get.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Get.json */ /** * Sample code: Get integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceSamples.java index a0e79c062df6..d2f68a1cd2ba 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_ListByWorkspace.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java index 011c02525604..7be9e3479a1c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java @@ -9,7 +9,7 @@ */ public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartSamples.java index d502529e9e5a..e0f3f2564b4a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartSamples.java @@ -9,8 +9,9 @@ */ public final class IntegrationRuntimesStartSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Start.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Start. + * json */ /** * Sample code: Start integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopSamples.java index 4f0eb9e488a9..f9fa0afba344 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopSamples.java @@ -9,8 +9,8 @@ */ public final class IntegrationRuntimesStopSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Stop.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Stop.json */ /** * Sample code: Stop integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpdateSamples.java index 88971d083028..1c46b9231e1b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpdateSamples.java @@ -12,8 +12,9 @@ */ public final class IntegrationRuntimesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Update.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Update. + * json */ /** * Sample code: Update integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeSamples.java index 7dc17e8b3234..e6c813c927f6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeSamples.java @@ -9,8 +9,9 @@ */ public final class IntegrationRuntimesUpgradeSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * IntegrationRuntimes_Upgrade.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/IntegrationRuntimes_Upgrade. + * json */ /** * Sample code: Upgrade integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateSamples.java index 89eae922f461..d58a62187536 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ public final class IpFirewallRulesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateIpFirewallRule.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateIpFirewallRule.json */ /** * Sample code: Create an IP firewall rule. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteSamples.java index 9eafa7578cd2..8e9724d72296 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteSamples.java @@ -10,7 +10,7 @@ public final class IpFirewallRulesDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteIpFirewallRule.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteIpFirewallRule.json */ /** * Sample code: Delete an IP firewall rule from a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetSamples.java index 6eda05fd868b..665fca639453 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetSamples.java @@ -10,14 +10,14 @@ public final class IpFirewallRulesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetIpFirewallRule.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetIpFirewallRule.json */ /** - * Sample code: Get IP firewall rule. + * Sample code: Create an IP firewall rule. * * @param manager Entry point to SynapseManager. */ - public static void getIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { + public static void createAnIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { manager.ipFirewallRules() .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", com.azure.core.util.Context.NONE); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceSamples.java index 60dd7cfb0576..cb0d99a3fde9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceSamples.java @@ -10,7 +10,7 @@ public final class IpFirewallRulesListByWorkspaceSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListIpFirewallRules.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListIpFirewallRules.json */ /** * Sample code: List IP firewall rules in a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllSamples.java index 7957fbc44e3f..867a605b45cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllSamples.java @@ -15,7 +15,7 @@ public final class IpFirewallRulesReplaceAllSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ReplaceAllIpFirewallRules. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ReplaceAllIpFirewallRules. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysCreateOrUpdateSamples.java index f05b6e7120dd..86edfdc2643f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ public final class KeysCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateKey.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateOrUpdateKey.json */ /** * Sample code: Create or update a workspace key. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysDeleteSamples.java index eba3b76011e3..56c71e0fd1fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysDeleteSamples.java @@ -10,7 +10,7 @@ public final class KeysDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteKey.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteKey.json */ /** * Sample code: Delete a workspace key. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysGetSamples.java index ab99aafb09e0..102d6d00238f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysGetSamples.java @@ -10,7 +10,7 @@ public final class KeysGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetKey.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetKey.json */ /** * Sample code: Get a workspace key. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysListByWorkspaceSamples.java index e461a3171c6c..98333ec6b607 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysListByWorkspaceSamples.java @@ -10,7 +10,7 @@ public final class KeysListByWorkspaceSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListKeysInWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListKeysInWorkspace.json */ /** * Sample code: List keys in workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListSamples.java deleted file mode 100644 index d0e902a388c9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoOperations List. - */ -public final class KustoOperationsListSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoOperationsList. - * json - */ - /** - * Sample code: KustoOperationsList. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoOperationsList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoOperations().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples.java deleted file mode 100644 index 9714d0ac2c5b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; - -/** - * Samples for KustoPoolAttachedDatabaseConfigurations CreateOrUpdate. - */ -public final class KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolAttachedDatabaseConfigurationsCreateOrUpdate( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolAttachedDatabaseConfigurations() - .define("attachedDatabaseConfigurations1") - .withExistingKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest") - .withRegion("westus") - .withDatabaseName("kustodatabase") - .withKustoPoolResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) - .withTableLevelSharingProperties( - new TableLevelSharingProperties().withTablesToInclude(Arrays.asList("Table1")) - .withTablesToExclude(Arrays.asList("Table2")) - .withExternalTablesToInclude(Arrays.asList("ExternalTable1")) - .withExternalTablesToExclude(Arrays.asList("ExternalTable2")) - .withMaterializedViewsToInclude(Arrays.asList("MaterializedViewTable1")) - .withMaterializedViewsToExclude(Arrays.asList("MaterializedViewTable2"))) - .create(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteSamples.java deleted file mode 100644 index 61b188c038bb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolAttachedDatabaseConfigurations Delete. - */ -public final class KustoPoolAttachedDatabaseConfigurationsDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationsDelete.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolAttachedDatabaseConfigurationsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolAttachedDatabaseConfigurations() - .delete("kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetSamples.java deleted file mode 100644 index c70404c9ee8e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolAttachedDatabaseConfigurations Get. - */ -public final class KustoPoolAttachedDatabaseConfigurationsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationsGet.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolAttachedDatabaseConfigurationsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolAttachedDatabaseConfigurations() - .getWithResponse("kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples.java deleted file mode 100644 index f252cee4df75..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolAttachedDatabaseConfigurations ListByKustoPool. - */ -public final class KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationsListByKustoPool.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationsListByKustoPool. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolAttachedDatabaseConfigurationsListByKustoPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolAttachedDatabaseConfigurations() - .listByKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourceCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourceCheckNameAvailabilitySamples.java deleted file mode 100644 index 62fde7bf553d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourceCheckNameAvailabilitySamples.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Type; - -/** - * Samples for KustoPoolChildResource CheckNameAvailability. - */ -public final class KustoPoolChildResourceCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolAttachedDatabaseConfigurationCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolAttachedDatabaseConfigurationCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolAttachedDatabaseConfigurationCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolChildResources() - .checkNameAvailabilityWithResponse("kustorptest", "kustoclusterrptest4", "kustorptest", - new DatabaseCheckNameRequest().withName("adc1") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS), - com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolDatabasesCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasesCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolChildResources() - .checkNameAvailabilityWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", - new DatabaseCheckNameRequest().withName("database1") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilitySamples.java deleted file mode 100644 index 525eba9d4f0d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilitySamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; - -/** - * Samples for KustoPoolDataConnections CheckNameAvailability. - */ -public final class KustoPoolDataConnectionsCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolDataConnectionsCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDataConnectionsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .checkNameAvailabilityWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", - "Kustodatabase8", new DataConnectionCheckNameRequest().withName("DataConnections8"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateSamples.java deleted file mode 100644 index a61912e9c915..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateSamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; - -/** - * Samples for KustoPoolDataConnections CreateOrUpdate. - */ -public final class KustoPoolDataConnectionsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolDataConnectionsCreateOrUpdate.json. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDataConnectionsCreateOrUpdateJson(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .createOrUpdate("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - "DataConnections8", - new EventHubDataConnection().withLocation("westus") - .withEventHubResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") - .withConsumerGroup("testConsumerGroup1"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationSamples.java deleted file mode 100644 index 0b080973263d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; - -/** - * Samples for KustoPoolDataConnections DataConnectionValidation. - */ -public final class KustoPoolDataConnectionsDataConnectionValidationSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionValidation.json - */ - /** - * Sample code: KustoPoolDataConnectionValidation. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDataConnectionValidation(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .dataConnectionValidation("kustorptest", "kustorptest", "kustoclusterrptest4", "KustoDatabase8", - new DataConnectionValidationInner().withDataConnectionName("DataConnections8") - .withProperties(new EventHubDataConnection()), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteSamples.java deleted file mode 100644 index 00ca7580c428..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDataConnections Delete. - */ -public final class KustoPoolDataConnectionsDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsDelete.json - */ - /** - * Sample code: KustoPoolDataConnectionsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDataConnectionsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .delete("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - "kustoeventhubconnection1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetSamples.java deleted file mode 100644 index 5fccc9f45121..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDataConnections Get. - */ -public final class KustoPoolDataConnectionsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsGet.json - */ - /** - * Sample code: KustoPoolDataConnectionsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDataConnectionsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .getWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - "DataConnections8", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseSamples.java deleted file mode 100644 index 15e764326769..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDataConnections ListByDatabase. - */ -public final class KustoPoolDataConnectionsListByDatabaseSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsListByDatabase.json - */ - /** - * Sample code: KustoPoolDataConnectionsListByDatabase. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDataConnectionsListByDatabase(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .listByDatabase("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateSamples.java deleted file mode 100644 index 7eadfde48409..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; - -/** - * Samples for KustoPoolDataConnections Update. - */ -public final class KustoPoolDataConnectionsUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDataConnectionsUpdate.json - */ - /** - * Sample code: KustoPoolDataConnectionsUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDataConnectionsUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDataConnections() - .update("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", "DataConnections8", - new EventHubDataConnection().withLocation("westus") - .withEventHubResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") - .withConsumerGroup("testConsumerGroup1"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples.java deleted file mode 100644 index 415c020431be..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; - -/** - * Samples for KustoPoolDatabasePrincipalAssignments CheckNameAvailability. - */ -public final class KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasePrincipalAssignmentsCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .checkNameAvailabilityWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", - "kustorptest", new DatabasePrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples.java deleted file mode 100644 index bd737ddfc169..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; - -/** - * Samples for KustoPoolDatabasePrincipalAssignments CreateOrUpdate. - */ -public final class KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasePrincipalAssignmentsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .define("kustoprincipal1") - .withExistingDatabase("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustorptest") - .withPrincipalId("87654321-1234-1234-1234-123456789123") - .withRole(DatabasePrincipalRole.ADMIN) - .withTenantId("12345678-1234-1234-1234-123456789123") - .withPrincipalType(PrincipalType.APP) - .create(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteSamples.java deleted file mode 100644 index d42c9e18c689..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDatabasePrincipalAssignments Delete. - */ -public final class KustoPoolDatabasePrincipalAssignmentsDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsDelete.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasePrincipalAssignmentsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .delete("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetSamples.java deleted file mode 100644 index 58a77515a38d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDatabasePrincipalAssignments Get. - */ -public final class KustoPoolDatabasePrincipalAssignmentsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsGet.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasePrincipalAssignmentsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", - "kustorptest", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListSamples.java deleted file mode 100644 index fe3bd651c578..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDatabasePrincipalAssignments List. - */ -public final class KustoPoolDatabasePrincipalAssignmentsListSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasePrincipalAssignmentsList.json - */ - /** - * Sample code: KustoPoolDatabasePrincipalAssignmentsList. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolDatabasePrincipalAssignmentsList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabasePrincipalAssignments() - .list("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateSamples.java deleted file mode 100644 index f3857458ae0f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; -import java.time.Duration; - -/** - * Samples for KustoPoolDatabases CreateOrUpdate. - */ -public final class KustoPoolDatabasesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolDatabasesCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasesCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .createOrUpdate("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - new ReadWriteDatabase().withLocation("westus").withSoftDeletePeriod(Duration.parse("P1D")), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteSamples.java deleted file mode 100644 index d7297d5ec649..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDatabases Delete. - */ -public final class KustoPoolDatabasesDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesDelete.json - */ - /** - * Sample code: KustoPoolDatabasesDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasesDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .delete("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetSamples.java deleted file mode 100644 index 219e3c1e5680..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDatabases Get. - */ -public final class KustoPoolDatabasesGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesGet.json - */ - /** - * Sample code: KustoPoolDatabasesGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasesGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .getWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolSamples.java deleted file mode 100644 index 05a052ca4a26..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolDatabases ListByKustoPool. - */ -public final class KustoPoolDatabasesListByKustoPoolSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoDatabasesListByKustoPool.json - */ - /** - * Sample code: KustoDatabasesListByKustoPool. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoDatabasesListByKustoPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .listByKustoPool("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateSamples.java deleted file mode 100644 index 5404c6fc845d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateSamples.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; -import java.time.Duration; - -/** - * Samples for KustoPoolDatabases Update. - */ -public final class KustoPoolDatabasesUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolDatabasesUpdate.json - */ - /** - * Sample code: KustoPoolDatabasesUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDatabasesUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolDatabases() - .update("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", - new ReadWriteDatabase().withSoftDeletePeriod(Duration.parse("P1D")), com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples.java deleted file mode 100644 index ede0e9cb61b8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; - -/** - * Samples for KustoPoolPrincipalAssignments CheckNameAvailability. - */ -public final class KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolPrincipalAssignmentsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .checkNameAvailabilityWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", - new ClusterPrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateSamples.java deleted file mode 100644 index 683e131d6390..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; - -/** - * Samples for KustoPoolPrincipalAssignments CreateOrUpdate. - */ -public final class KustoPoolPrincipalAssignmentsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsCreateOrUpdate.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void - kustoPoolPrincipalAssignmentsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .define("kustoprincipal1") - .withExistingKustoPool("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest") - .withPrincipalId("87654321-1234-1234-1234-123456789123") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("12345678-1234-1234-1234-123456789123") - .withPrincipalType(PrincipalType.APP) - .create(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteSamples.java deleted file mode 100644 index ec0bbbb45e4f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolPrincipalAssignments Delete. - */ -public final class KustoPoolPrincipalAssignmentsDeleteSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsDelete.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolPrincipalAssignmentsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .delete("synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetSamples.java deleted file mode 100644 index 8f5bab1eaf80..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolPrincipalAssignments Get. - */ -public final class KustoPoolPrincipalAssignmentsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsGet.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolPrincipalAssignmentsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListSamples.java deleted file mode 100644 index 7febaa0e93a6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolPrincipalAssignments List. - */ -public final class KustoPoolPrincipalAssignmentsListSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrincipalAssignmentsList.json - */ - /** - * Sample code: KustoPoolPrincipalAssignmentsList. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolPrincipalAssignmentsList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrincipalAssignments() - .list("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java deleted file mode 100644 index 0f8b96bc3776..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPoolPrivateLinkResourcesOperation List. - */ -public final class KustoPoolPrivateLinkResourcesOperationListSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolPrivateLinkResourcesList.json - */ - /** - * Sample code: KustoPoolPrivateLinkResourcesList. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolPrivateLinkResourcesList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPoolPrivateLinkResourcesOperations() - .list("DP-900", "synapse-ws-ebi-data", "dataexplorerpool900", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsSamples.java deleted file mode 100644 index 9fd304bc3a12..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsSamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.util.Arrays; - -/** - * Samples for KustoPools AddLanguageExtensions. - */ -public final class KustoPoolsAddLanguageExtensionsSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolLanguageExtensionsAdd.json - */ - /** - * Sample code: KustoPoolAddLanguageExtensions. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolAddLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .addLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", - new LanguageExtensionsList().withValue( - Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilitySamples.java deleted file mode 100644 index 6195823bc904..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilitySamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; - -/** - * Samples for KustoPools CheckNameAvailability. - */ -public final class KustoPoolsCheckNameAvailabilitySamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolsCheckNameAvailability.json - */ - /** - * Sample code: KustoPoolsCheckNameAvailability. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .checkNameAvailabilityWithResponse("westus", - new KustoPoolCheckNameRequest().withName("kustoclusterrptest4"), com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateSamples.java deleted file mode 100644 index ce2c35992922..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; - -/** - * Samples for KustoPools CreateOrUpdate. - */ -public final class KustoPoolsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolsCreateOrUpdate.json - */ - /** - * Sample code: kustoPoolsCreateOrUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .define("kustoclusterrptest4") - .withRegion("westus") - .withExistingWorkspace("synapseWorkspaceName", "kustorptest") - .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(2).withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .withWorkspaceUid("11111111-2222-3333-444444444444") - .create(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteSamples.java deleted file mode 100644 index e098a7c4abcf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools Delete. - */ -public final class KustoPoolsDeleteSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsDelete. - * json - */ - /** - * Sample code: kustoPoolsDelete. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .delete("kustorptest", "kustorptest", "kustoclusterrptest4", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesSamples.java deleted file mode 100644 index 1379c8f3d890..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; - -/** - * Samples for KustoPools DetachFollowerDatabases. - */ -public final class KustoPoolsDetachFollowerDatabasesSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolFollowerDatabasesDetach.json - */ - /** - * Sample code: KustoPoolDetachFollowerDatabases. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolDetachFollowerDatabases(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .detachFollowerDatabases("kustorptest", "kustoclusterrptest4", "kustorptest", - new FollowerDatabaseDefinitionInner().withKustoPoolResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/leader4") - .withAttachedDatabaseConfigurationName("myAttachedDatabaseConfiguration"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetSamples.java deleted file mode 100644 index 4ae43317c11d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools Get. - */ -public final class KustoPoolsGetSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsGet.json - */ - /** - * Sample code: kustoPoolsGet. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceSamples.java deleted file mode 100644 index 8fdb54270ffc..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools ListByWorkspace. - */ -public final class KustoPoolsListByWorkspaceSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolsListByWorkspace.json - */ - /** - * Sample code: List Kusto pools in a workspace. - * - * @param manager Entry point to SynapseManager. - */ - public static void listKustoPoolsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .listByWorkspaceWithResponse("kustorptest", "kustorptest", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesSamples.java deleted file mode 100644 index 620613bdde62..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools ListFollowerDatabases. - */ -public final class KustoPoolsListFollowerDatabasesSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolFollowerDatabasesList.json - */ - /** - * Sample code: KustoPoolListFollowerDatabases. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolListFollowerDatabases(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .listFollowerDatabases("kustorptest", "kustoclusterrptest4", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsSamples.java deleted file mode 100644 index 86e08caa162e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools ListLanguageExtensions. - */ -public final class KustoPoolsListLanguageExtensionsSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolLanguageExtensionsList.json - */ - /** - * Sample code: KustoPoolListLanguageExtensions. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolListLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .listLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSamples.java deleted file mode 100644 index 176373064152..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools List. - */ -public final class KustoPoolsListSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListSkus. - * json - */ - /** - * Sample code: KustoPoolsListSkus. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsListSkus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceSamples.java deleted file mode 100644 index 18adfdec78b3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools ListSkusByResource. - */ -public final class KustoPoolsListSkusByResourceSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolsListResourceSkus.json - */ - /** - * Sample code: KustoPoolsListResourceSkus. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsListResourceSkus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .listSkusByResource("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsSamples.java deleted file mode 100644 index 3f02bd7937c5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsSamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.util.Arrays; - -/** - * Samples for KustoPools RemoveLanguageExtensions. - */ -public final class KustoPoolsRemoveLanguageExtensionsSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * KustoPoolLanguageExtensionsRemove.json - */ - /** - * Sample code: KustoPoolRemoveLanguageExtensions. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolRemoveLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .removeLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", - new LanguageExtensionsList().withValue( - Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartSamples.java deleted file mode 100644 index c6df83b55d7d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools Start. - */ -public final class KustoPoolsStartSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStart.json - */ - /** - * Sample code: kustoPoolsStop. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsStop(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .start("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopSamples.java deleted file mode 100644 index c1efb2f57f0f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for KustoPools Stop. - */ -public final class KustoPoolsStopSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStop.json - */ - /** - * Sample code: kustoPoolsStop. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsStop(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.kustoPools() - .stop("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsUpdateSamples.java deleted file mode 100644 index 390a51b923ee..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsUpdateSamples.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; - -/** - * Samples for KustoPools Update. - */ -public final class KustoPoolsUpdateSamples { - /* - * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsUpdate. - * json - */ - /** - * Sample code: kustoPoolsUpdate. - * - * @param manager Entry point to SynapseManager. - */ - public static void kustoPoolsUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - KustoPool resource = manager.kustoPools() - .getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(2).withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .apply(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationListByWorkspaceSamples.java index 0754e46da2d2..3df54f6570d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationListByWorkspaceSamples.java @@ -9,8 +9,9 @@ */ public final class LibrariesOperationListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * Libraries_ListByWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/Libraries_ListByWorkspace. + * json */ /** * Sample code: List libraries in a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibraryGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibraryGetSamples.java index 899913517e25..3e265bb9e1a9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibraryGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibraryGetSamples.java @@ -10,7 +10,7 @@ public final class LibraryGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Library_Get.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/Library_Get.json */ /** * Sample code: Get Library by name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilitySamples.java index 068380d4b2a9..fa2106c56e5a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilitySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class OperationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CheckNameAvailabilityWorkspaceAlreadyExists.json */ /** @@ -28,7 +28,7 @@ public final class OperationsCheckNameAvailabilitySamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CheckNameAvailabilityWorkspaceAvailable.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultSamples.java index c87924e85b1e..0e9aefbbec5d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultSamples.java @@ -10,7 +10,7 @@ public final class OperationsGetAzureAsyncHeaderResultSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureAsyncOperationHeader. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetAzureAsyncOperationHeader. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultSamples.java index c67735355c73..ddd76c53d791 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultSamples.java @@ -10,7 +10,7 @@ public final class OperationsGetLocationHeaderResultSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeader.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetLocationHeader.json */ /** * Sample code: Get location header result. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsListSamples.java index 1ceff6c68022..97565c7ca85e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAvailableOperations.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetAvailableOperations.json */ /** * Sample code: Get available operations. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateSamples.java index 5e6dc14c071b..a7868d6bb056 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateSamples.java @@ -11,7 +11,7 @@ */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ApprovePrivateEndpointConnection.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteSamples.java index 6b031b00f397..bc2bb0bc2fc3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeletePrivateEndpointConnection.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetSamples.java index c4b3e1834543..3228fd33a62c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateEndpointConnection. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetPrivateEndpointConnection. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListSamples.java index 294fc46406c1..03777a86a0cb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListPrivateEndpointConnections.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubGetSamples.java deleted file mode 100644 index 6d75455fa039..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for PrivateEndpointConnectionsPrivateLinkHub Get. - */ -public final class PrivateEndpointConnectionsPrivateLinkHubGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * PrivateEndpointConnectionsPrivateLinkHub_Get.json - */ - /** - * Sample code: Get a privateLinkHub. - * - * @param manager Entry point to SynapseManager. - */ - public static void getAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateEndpointConnectionsPrivateLinkHubs() - .getWithResponse("gh-res-grp", "pe0", "pe0-f3ed30f5-338c-4855-a542-24a403694ad2", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubListSamples.java index af5a4be36cd6..ca709088a56a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsPrivateLinkHubListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * PrivateEndpointConnectionsPrivateLinkHub_List.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetSamples.java index 8a9c234c09b3..1aaf110d632f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkHubPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetPrivateLinkHubPrivateLinkResource.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListSamples.java index a92042628b75..dc78c1bc0dee 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkHubPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListPrivateLinkHubPrivateLinkResources.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateSamples.java index b7c1286a67cf..82fdb63e5979 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ public final class PrivateLinkHubsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdatePrivateLinkHub. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateOrUpdatePrivateLinkHub. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteSamples.java index 2bb005ceebba..02c42f3c2b89 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteSamples.java @@ -10,7 +10,7 @@ public final class PrivateLinkHubsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateLinkHub.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeletePrivateLinkHub.json */ /** * Sample code: Delete a privateLinkHub. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupSamples.java index f13cdbc94c89..e90b676386c3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class PrivateLinkHubsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHub.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetPrivateLinkHub.json */ /** * Sample code: Get a privateLinkHub. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupSamples.java index 8e91bbb937af..99e004e7ffab 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkHubsListByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListPrivateLinkHubsInResourceGroup.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListSamples.java index 4b5c06df0871..6220ea009522 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkHubsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListPrivateLinkHubsInSubscription.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsUpdateSamples.java index d3fd4ba97b23..70aa98d18795 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsUpdateSamples.java @@ -14,7 +14,7 @@ public final class PrivateLinkHubsUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdatePrivateLinkHub.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/UpdatePrivateLinkHub.json */ /** * Sample code: Update a privateLinkHub. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetSamples.java similarity index 76% rename from sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java rename to sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetSamples.java index b30818c61f56..e2ab736f6fd9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetSamples.java @@ -5,12 +5,12 @@ package com.azure.resourcemanager.synapse.generated; /** - * Samples for PrivateLinkResourcesOperation Get. + * Samples for PrivateLinkResources Get. */ -public final class PrivateLinkResourcesOperationGetSamples { +public final class PrivateLinkResourcesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetPrivateLinkResource.json */ /** * Sample code: Get private link resources for workspace. @@ -18,7 +18,7 @@ public final class PrivateLinkResourcesOperationGetSamples { * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateLinkResourcesOperations() + manager.privateLinkResources() .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListSamples.java similarity index 75% rename from sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java rename to sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListSamples.java index bde1f69fceae..cc67691c9052 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListSamples.java @@ -5,12 +5,12 @@ package com.azure.resourcemanager.synapse.generated; /** - * Samples for PrivateLinkResourcesOperation List. + * Samples for PrivateLinkResources List. */ -public final class PrivateLinkResourcesOperationListSamples { +public final class PrivateLinkResourcesListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListPrivateLinkResources.json */ /** * Sample code: Get private link resources for workspace. @@ -18,7 +18,7 @@ public final class PrivateLinkResourcesOperationListSamples { * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateLinkResourcesOperations() + manager.privateLinkResources() .list("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetSamples.java index eae0f7fd1ba6..3bf978ca0e36 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetSamples.java @@ -10,7 +10,7 @@ public final class RestorableDroppedSqlPoolsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlPoolGet. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/RestorableDroppedSqlPoolGet. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceSamples.java index ee82870cd1c1..c409bce9e924 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceSamples.java @@ -10,7 +10,7 @@ public final class RestorableDroppedSqlPoolsListByWorkspaceSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlpoolList. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/RestorableDroppedSqlpoolList. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationGetSamples.java deleted file mode 100644 index a5f59df1d7c5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for SparkConfiguration Get. - */ -public final class SparkConfigurationGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * SparkConfiguration_Get.json - */ - /** - * Sample code: Get SparkConfiguration by name. - * - * @param manager Entry point to SynapseManager. - */ - public static void getSparkConfigurationByName(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.sparkConfigurations() - .getWithResponse("exampleResourceGroup", "exampleSparkConfigurationName", "exampleWorkspace", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationListByWorkspaceSamples.java deleted file mode 100644 index bd0eae786ae9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationListByWorkspaceSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for SparkConfigurationsOperation ListByWorkspace. - */ -public final class SparkConfigurationsOperationListByWorkspaceSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ - * SparkConfigurations_ListByWorkspace.json - */ - /** - * Sample code: List sparkConfigurations in a workspace. - * - * @param manager Entry point to SynapseManager. - */ - public static void listSparkConfigurationsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.sparkConfigurationsOperations() - .listByWorkspace("exampleResourceGroup", "exampleWorkspace", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java index e69ea2b151a1..e16b1a789ea0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolBlobAuditingWithAllParameters.json */ /** @@ -40,7 +40,7 @@ public static void createOrUpdateADatabaseSBlobAuditingPolicyWithAllParameters( } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolBlobAuditingWithMinParameters.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesGetSamples.java index 45e809da20ea..d09a01c29635 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolBlobAuditingPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolBlobAuditing.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolBlobAuditing.json */ /** * Sample code: Get blob auditing policy of a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java index 9cd54b4a1add..d7a2af1109ca 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolBlobAuditingPoliciesListBySqlPoolSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolAuditingSettingsList. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolAuditingSettingsList. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetSamples.java index 6cbe62c056c5..536f777f9216 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolColumnsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolColumnGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolColumnGet.json */ /** * Sample code: Get database column. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetSamples.java index a4dde2d031ce..367a945ec840 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetSamples.java @@ -12,7 +12,7 @@ public final class SqlPoolConnectionPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolConnectionPolicy. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolConnectionPolicy. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetSamples.java index 7fa2ebad1180..76d8ec3f0be4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetSamples.java @@ -12,7 +12,7 @@ public final class SqlPoolDataWarehouseUserActivitiesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolUserActivity.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolUserActivity.json */ /** * Sample code: Get a SQL Analytics pool user activity. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateSamples.java index 7e7146b75685..956d975fe238 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class SqlPoolGeoBackupPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateGeoBackupPolicies.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetSamples.java index 50b766a6eff5..6917b1cc4e0a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetSamples.java @@ -12,7 +12,7 @@ public final class SqlPoolGeoBackupPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolGeoBackupPolicy. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolGeoBackupPolicy. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListSamples.java index d1bb6a059f30..100b5ddc2e81 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolGeoBackupPoliciesListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolGeoBackupPolicies_List + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolGeoBackupPolicies_List * .json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetSamples.java index ccd0a025825c..e72190b188fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolMaintenanceWindowOptionsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindowOptions. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetMaintenanceWindowOptions. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateSamples.java index 6055a06f971f..00c21d065e20 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class SqlPoolMaintenanceWindowsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateMaintenanceWindows.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetSamples.java index 3f5d1f2b5583..0faa34fe9fee 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolMaintenanceWindowsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindows.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetMaintenanceWindows.json */ /** * Sample code: Gets maintenance window settings for a selected SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateSamples.java index 652c0d4f976a..60ae8c53d0e8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolMetadataSyncConfigsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateSqlPoolMetadataSyncConfig.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetSamples.java index 9336d36ede4c..ea28ef08e091 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolMetadataSyncConfigsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolMetadataSyncConfig. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolMetadataSyncConfig. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultSamples.java index e01edf26842a..3e8e9a07cb88 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetLocationHeaderResultWithSqlPool.json */ /** @@ -20,7 +20,7 @@ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { public static void getTheResultOfAnOperationOnASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { manager.sqlPoolOperationResults() - .getLocationHeaderResult("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", + .getLocationHeaderResultWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", "fedcba98-7654-4210-fedc-ba9876543210", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationsListSamples.java index 94fe5049d198..dfacf228553c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationsListSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolOperationsListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolOperations.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolOperations.json */ /** * Sample code: List the Sql Analytics pool management operations. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateSamples.java index 1f63b8939377..d1687975c64f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class SqlPoolRecommendedSensitivityLabelsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SensitivityLabelsRecommendedUpdate.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameSamples.java index 023c111164ce..d309154b2e76 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolReplicationLinksGetByNameSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolReplicationLinks_GetByName.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListSamples.java index d2d4fcfb5528..64cba7a82c08 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolReplicationLinksListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolReplicationLinks. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolReplicationLinks. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateSamples.java index 68453de4f31b..df5d823c881f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateSamples.java @@ -12,7 +12,7 @@ public final class SqlPoolRestorePointsCreateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolRestorePoints. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateSqlPoolRestorePoints. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteSamples.java index 41ee3e1bcbdc..c17d0c31c809 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolRestorePointsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsDelete. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolRestorePointsDelete. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetSamples.java index d7c448fbd624..58644e839046 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolRestorePointsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolRestorePointsGet.json */ /** * Sample code: Gets a Sql pool restore point. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListSamples.java index ce2b440d1768..f5691b289962 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolRestorePointsListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolRestorePoints.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolRestorePoints.json */ /** * Sample code: Get a list of restore points of a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetSamples.java index 9bdef7f3c43e..02acf102b323 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolSchemasGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSchemaGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolSchemaGet.json */ /** * Sample code: Get database schema. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListSamples.java index ae469a7e1f9f..00cbacacd61b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolSchemasListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSchema.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolSchema.json */ /** * Sample code: List the schema in a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples.java index 4e5479d787b8..4c58fd057ba5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples.java @@ -7,13 +7,14 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; import com.azure.resourcemanager.synapse.models.SqlPoolSecurityAlertPolicy; +import java.util.Arrays; /** * Samples for SqlPoolSecurityAlertPolicies CreateOrUpdate. */ public final class SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolSecurityAlertWithAllParameters.json */ /** @@ -29,6 +30,8 @@ public static void updateASqlPoolSThreatDetectionPolicyWithAllParameters( .getValue(); resource.update() .withState(SecurityAlertPolicyState.ENABLED) + .withDisabledAlerts(Arrays.asList("Sql_Injection", "Usage_Anomaly")) + .withEmailAddresses(Arrays.asList("test@microsoft.com", "user@microsoft.com")) .withEmailAccountAdmins(true) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( @@ -38,7 +41,7 @@ public static void updateASqlPoolSThreatDetectionPolicyWithAllParameters( } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolSecurityAlertWithMinParameters.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesGetSamples.java index 565acc2ffdc3..9b24883a82e8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesGetSamples.java @@ -12,7 +12,7 @@ public final class SqlPoolSecurityAlertPoliciesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolSecurityAlert.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolSecurityAlert.json */ /** * Sample code: Get a security alert of a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesListSamples.java index 9217d7349a07..387cbc2bc3f2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolSecurityAlertPoliciesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolSecurityAlertPolicies_List.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteSamples.java index a4e61781127b..931cf6960a76 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolSensitivityLabelsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteSqlPoolColumnSensitivityLabel.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationSamples.java index 9f722eca71ca..5b62593480c5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolSensitivityLabelsDisableRecommendationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * RecommendedColumnSensitivityLabelDisable.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationSamples.java index 4aa60511cfe4..7f8f6fe56114 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolSensitivityLabelsEnableRecommendationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * RecommendedColumnSensitivityLabelEnable.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetSamples.java index f92f52ada401..0a6b083d5a55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolSensitivityLabelsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolColumnSensitivityLabelGet.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentSamples.java index 07ca34aed506..1889eb3564b2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolSensitivityLabelsListCurrentSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolsSensitivityLabelsWithSourceCurrent.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedSamples.java index fc9acda0dcf9..58a492dd450f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolSensitivityLabelsListRecommendedSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolSensitivityLabelsWithSourceRecommended.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateSamples.java index 596fedd1597f..1d66b91c5bcb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class SqlPoolSensitivityLabelsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SensitivityLabelsCurrentUpdate.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameSamples.java index f251061e149b..d0512f6dfc1f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolTableColumnsListByTableNameSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolColumns.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolColumns.json */ /** * Sample code: List the columns in a table of a given schema in a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetSamples.java index 59ba85ebb5fd..6038b7b13da3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolTablesGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolTableGet.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolTableGet.json */ /** * Sample code: Get database table. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaSamples.java index bdf2b3d142a0..6b6a8b709c07 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolTablesListBySchemaSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolTables.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolTables.json */ /** * Sample code: List the tables of a given schema in a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples.java index 4dd35507fb4b..4509304d3e67 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolTransparentDataEncryption.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetSamples.java index dab973470381..2a3595f87377 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolTransparentDataEncryptionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolTransparentDataEncryption.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListSamples.java index fa476e09b547..68bb97f341f1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolTransparentDataEncryptionsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolTransparentDataEncryptionList.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListSamples.java index 2d9446afdf7f..86ce16c2ebcc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolUsagesListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolUsageMetricsList.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/SqlPoolUsageMetricsList.json */ /** * Sample code: List the usages of a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples.java index aea8af75048e..d55028cd32eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolVulnerabilityAssessmentRuleBaseline.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples.java index 2c459d7c049d..bdafd71eb165 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples.java @@ -12,7 +12,7 @@ */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteSqlPoolVulnerabilityAssessmentRuleBaseline.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples.java index 4e13e03c4141..6819e9689422 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples.java @@ -12,7 +12,7 @@ */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolVulnerabilityAssessmentRuleBaselineGet.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportSamples.java index d86b0ef1a36e..6bed34ac674b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolVulnerabilityAssessmentScansExportSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExportSqlPoolVulnerabilityAssessmentScan.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetSamples.java index 707d50687479..419cfa6ad8c7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolVulnerabilityAssessmentScansGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * SqlPoolVulnerabilityAssessmentScanRecordsGet.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanSamples.java index ca945d1a6439..aa9270cdb4d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolVulnerabilityAssessmentScansInitiateScanSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ExecuteSqlPoolVulnerabilityAssessmentScans.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListSamples.java index c981eca970a0..7981ff261927 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolVulnerabilityAssessmentScansListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolVulnerabilityAssessmentScanRecords.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples.java index 2cea8bc6ba0f..308869ca176e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolVulnerabilityAssessmentWithContainerSasKeyAndMinParameters.json */ /** @@ -34,7 +34,7 @@ public final class SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolVulnerabilityAssessmentWithAllParameters.json */ /** @@ -57,7 +57,7 @@ public static void createADatabaseSVulnerabilityAssessmentWithAllParameters( } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateVulnerabilityAssessmentWithStorageAccessKeyAndMinParameters.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteSamples.java index cc355fc5bf37..97efc6381919 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolVulnerabilityAssessmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteSqlPoolVulnerabilityAssessment.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsGetSamples.java index 2d04ef3d0e9c..ecb17eb74a4a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsGetSamples.java @@ -11,7 +11,7 @@ */ public final class SqlPoolVulnerabilityAssessmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolVulnerabilityAssessment.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsListSamples.java index 2df1ac569d3f..376efe725971 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsListSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolVulnerabilityAssessmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolVulnerabilityAssessments.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierCreateOrUpdateSamples.java index 1b3e1142a422..5c36585300d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolWorkloadClassifierCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolWorkloadClassifierMin.json */ /** @@ -27,7 +27,7 @@ public static void createAWorkloadClassifierWithTheRequiredPropertiesSpecified( } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolWorkloadClassifierMax.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierDeleteSamples.java index 57adaeaae61f..cca0bd94fe5a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolWorkloadClassifierDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteSqlPoolWorkloadGroupWorkloadClassifer.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierGetSamples.java index 0de857b523d4..ab1e0f7f925f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierGetSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolWorkloadClassifierGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolWorkloadGroupWorkloadClassifier.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierListSamples.java index 59678034f365..83ce03861b7a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierListSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolWorkloadClassifierListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetSqlPoolWorkloadGroupWorkloadClassifierList.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupCreateOrUpdateSamples.java index d94602d71652..09778a23b662 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolWorkloadGroupMin.json */ /** @@ -29,7 +29,7 @@ public static void createAWorkloadGroupWithTheRequiredPropertiesSpecified( } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateSqlPoolWorkloadGroupMax.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupDeleteSamples.java index c16f232d669a..d7fd2a95e9a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupDeleteSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolWorkloadGroupDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroup. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteSqlPoolWorkloadGroup. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupGetSamples.java index 642525ac5f2c..65da0b7460d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolWorkloadGroupGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroup.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolWorkloadGroup.json */ /** * Sample code: Get a a workload group of a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupListSamples.java index b585fbdc33d9..9e9f8eed6c08 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupListSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolWorkloadGroupListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupList. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPoolWorkloadGroupList. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateSamples.java index 8d0d80a6ae50..54e4581d37ec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateSamples.java @@ -16,7 +16,7 @@ public final class SqlPoolsCreateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateSqlPool.json */ /** * Sample code: Create a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteSamples.java index e97fc5192fd0..bfc28d83638d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteSqlPool.json */ /** * Sample code: Delete a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetSamples.java index 05659308a982..8f9d58c92c84 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetSqlPool.json */ /** * Sample code: Get a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceSamples.java index 76c8c57efa76..4f126bbcffc4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceSamples.java @@ -9,7 +9,7 @@ */ public final class SqlPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListSqlPoolsInWorkspaceWithFilter.json */ /** @@ -24,7 +24,7 @@ public final class SqlPoolsListByWorkspaceSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListSqlPoolsInWorkspace.json */ /** * Sample code: List SQL Analytics pools in a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseSamples.java index 86a1def423f3..67d9e9b2c4c7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolsPauseSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PauseSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/PauseSqlPool.json */ /** * Sample code: Pause a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeSamples.java index 46f22ba2a32b..84b878c55738 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeSamples.java @@ -10,7 +10,7 @@ public final class SqlPoolsResumeSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ResumeSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ResumeSqlPool.json */ /** * Sample code: Resume a SQL Analytics pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsUpdateSamples.java index ac8f0eedd929..3e2edece1673 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsUpdateSamples.java @@ -4,8 +4,10 @@ package com.azure.resourcemanager.synapse.generated; +import com.azure.resourcemanager.synapse.models.CreateMode; import com.azure.resourcemanager.synapse.models.Sku; import com.azure.resourcemanager.synapse.models.SqlPool; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -15,7 +17,7 @@ public final class SqlPoolsUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateSqlPool.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/UpdateSqlPool.json */ /** * Sample code: Update a SQL Analytics pool. @@ -27,7 +29,17 @@ public static void updateASQLAnalyticsPool(com.azure.resourcemanager.synapse.Syn .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withTags(mapOf()).withSku(new Sku().withTier("").withName("")).withMaxSizeBytes(0L).apply(); + resource.update() + .withTags(mapOf()) + .withSku(new Sku().withTier("").withName("")) + .withMaxSizeBytes(0L) + .withCollation("") + .withSourceDatabaseId("") + .withRecoverableDatabaseId("") + .withRestorePointInTime(OffsetDateTime.parse("1970-01-01T00:00:00.000Z")) + .withCreateMode(CreateMode.fromString("")) + .withCreationDate(OffsetDateTime.parse("1970-01-01T00:00:00.000Z")) + .apply(); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateSamples.java index 773e15bd9c9d..cdb1ba8673e4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceAadAdminsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateWorkspaceAadAdmin.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteSamples.java index 02d34c93fec7..eed7c3dfaf02 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteSamples.java @@ -10,7 +10,7 @@ public final class WorkspaceAadAdminsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteWorkspaceAadAdmin.json */ /** * Sample code: Delete workspace active directory admin. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetSamples.java index 66e700ab49ac..f991399f7015 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetSamples.java @@ -10,7 +10,7 @@ public final class WorkspaceAadAdminsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetWorkspaceAadAdmin.json */ /** * Sample code: Get workspace active directory admin. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples.java index e617c95c2525..cb48fcf9d82f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples.java @@ -5,15 +5,15 @@ package com.azure.resourcemanager.synapse.generated; import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; /** * Samples for WorkspaceManagedIdentitySqlControlSettings CreateOrUpdate. */ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateManagedIdentitySqlControlSettings.json */ /** @@ -27,7 +27,8 @@ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSampl .createOrUpdate("resourceGroup1", "workspace1", new ManagedIdentitySqlControlSettingsModelInner().withGrantSqlControlToManagedIdentity( new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED)), + .withDesiredState( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED)), com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetSamples.java index 9f2936e04424..f27b20d7b7aa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedIdentitySqlControlSettingsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetManagedIdentitySqlControlSettings.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples.java index bdfb7d63e99a..551b5612bd5f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithAllParameters.json */ /** @@ -42,7 +42,7 @@ public static void createOrUpdateBlobAuditingPolicyOfWorkspaceSQLServerWithAllPa } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithMinParameters.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples.java index 26e93e46fac0..f3630d7547de 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerBlobAuditingSettings.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples.java index ac089bb61371..ffa7b90ee5ea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerBlobAuditingSettings.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java deleted file mode 100644 index 7f9cf39a6d08..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Get. - */ -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json - */ - /** - * Sample code: Get workspace managed sql server dedicated sql minimal tls settings. - * - * @param manager Entry point to SynapseManager. - */ - public static void getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .getWithResponse("workspace-6852", "workspace-2080", "default", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java deleted file mode 100644 index 653d138a9a68..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -/** - * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings List. - */ -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json - */ - /** - * Sample code: List dedicated sql minimal tls settings of the workspace managed sql server. - * - * @param manager Entry point to SynapseManager. - */ - public static void listDedicatedSqlMinimalTlsSettingsOfTheWorkspaceManagedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .list("workspace-6852", "workspace-2080", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java deleted file mode 100644 index 142ce2f29b71..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; - -/** - * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Update. - */ -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ - * UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json - */ - /** - * Sample code: Update tls version of the workspace managed sql server. - * - * @param manager Entry point to SynapseManager. - */ - public static void - updateTlsVersionOfTheWorkspaceManagedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .update("workspace-6852", "workspace-2080", DedicatedSqlMinimalTlsSettingsName.DEFAULT, - new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples.java index 7e4c35b9d5d7..18b285b78ef9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateKeyVault.json */ /** @@ -34,7 +34,7 @@ public final class WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSam } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateServiceManaged.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorGetSamples.java index 1736b92c9c66..3c592cd0b0b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorGetSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceManagedSqlServerEncryptionProtectorGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerEncryptionProtector.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorListSamples.java index 4404dd18a1ce..d0166e78dca8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorListSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedSqlServerEncryptionProtectorListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerEncryptionProtectorList.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples.java index 59dcfdf00435..80e608ab574e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerEncryptionProtectorRevalidate.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples.java index d22b4a64be39..b68ad2607652 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateWorkspaceManagedSqlServerExtendedBlobAuditingSettingsWithAllParameters.json */ /** @@ -43,7 +43,7 @@ public static void createOrUpdateWorkspaceManagedSqlServerSExtendedBlobAuditingP } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateWorkspaceManagedSqlServerExetendedBlobAuditingSettingsWithMinParameters.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java index b1abca5fea32..fff977223ebf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlExtendedServerBlobAuditingSettings.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples.java index 5066ae3f5c7c..293d34f6176a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerExtendedBlobAuditingSettings.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples.java index 609884fa668c..5e00884a1ca2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerRecoverableSqlPool.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples.java index 0bda1b77a4e9..b1598d3a6212 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerRecoverableSqlPool.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples.java index 9090967e5fe2..de822f116847 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples.java @@ -7,13 +7,14 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGenerated; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; import com.azure.resourcemanager.synapse.models.ServerSecurityAlertPolicy; +import java.util.Arrays; /** * Samples for WorkspaceManagedSqlServerSecurityAlertPolicy CreateOrUpdate. */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerSecurityAlertWithAllParameters.json */ /** @@ -29,13 +30,18 @@ public static void updateAWorkspaceManagedSqlServerSThreatDetectionPolicyWithAll .getValue(); resource.update() .withState(SecurityAlertPolicyState.ENABLED) + .withDisabledAlerts(Arrays.asList("Access_Anomaly", "Usage_Anomaly")) + .withEmailAddresses(Arrays.asList("testSecurityAlert@microsoft.com")) + .withEmailAccountAdmins(true) + .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") + .withRetentionDays(5) .apply(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * WorkspaceManagedSqlServerSecurityAlertCreateWithMinParameters.json */ /** @@ -51,6 +57,8 @@ public static void updateAWorkspaceManagedSqlServerSThreatDetectionPolicyWithMin .getValue(); resource.update() .withState(SecurityAlertPolicyState.DISABLED) + .withEmailAccountAdmins(true) + .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .apply(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples.java index b808292916dd..bd2c58c3b4cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerSecurityAlertPolicy.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyListSamples.java index bb66656ec6ff..8804de6fb353 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyListSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerSecurityAlertPolicies.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListSamples.java index 753f758a270a..49a8fb7895d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedSqlServerUsagesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerUsages.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples.java index 97fd00c23e1b..0c76f8a4dd6b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateContainerSasKeyMin.json */ /** @@ -34,7 +34,7 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpda } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateStorageAccessKeyMin.json */ /** @@ -55,7 +55,7 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpda } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * PutWorkspaceManagedSqlServerVulnerabilityAssessmentWithAllParameters.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples.java index 077f43329bf2..0cfabbb1bc57 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * DeleteWorkspaceManagedSqlServerVulnerabilityAssessment.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples.java index 676ebc9211c6..218448cea388 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * GetWorkspaceManagedSqlServerVulnerabilityAssessment.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples.java index 324e1b99e8f4..3e65d38047e4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples.java @@ -9,7 +9,7 @@ */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * ListWorkspaceManagedSqlServerVulnerabilityAssessmentPolicies.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateSamples.java index 1366bea7d7e5..973b14aebfec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class WorkspaceSqlAadAdminsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ * CreateOrUpdateWorkspaceAadAdmin.json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteSamples.java index bc1610081cb4..f51e982cb9a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteSamples.java @@ -10,7 +10,7 @@ public final class WorkspaceSqlAadAdminsDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteWorkspaceAadAdmin.json */ /** * Sample code: Delete workspace active directory admin. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetSamples.java index e943ddde38ab..3a9740a2f7b6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetSamples.java @@ -10,7 +10,7 @@ public final class WorkspaceSqlAadAdminsGetSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetWorkspaceAadAdmin.json */ /** * Sample code: Get workspace active directory admin. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesCreateOrUpdateSamples.java index 1fb1376364a9..300206fcbf7d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesCreateOrUpdateSamples.java @@ -4,16 +4,13 @@ package com.azure.resourcemanager.synapse.generated; -import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; import com.azure.resourcemanager.synapse.models.CustomerManagedKeyDetails; import com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails; import com.azure.resourcemanager.synapse.models.EncryptionDetails; -import com.azure.resourcemanager.synapse.models.KekIdentityProperties; import com.azure.resourcemanager.synapse.models.ManagedIdentity; import com.azure.resourcemanager.synapse.models.ManagedVirtualNetworkSettings; import com.azure.resourcemanager.synapse.models.PurviewConfiguration; import com.azure.resourcemanager.synapse.models.ResourceIdentityType; -import com.azure.resourcemanager.synapse.models.UserAssignedManagedIdentity; import com.azure.resourcemanager.synapse.models.WorkspaceKeyDetails; import com.azure.resourcemanager.synapse.models.WorkspacePublicNetworkAccess; import com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration; @@ -27,7 +24,7 @@ public final class WorkspacesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/CreateOrUpdateWorkspace.json */ /** * Sample code: Create or update a workspace. @@ -40,10 +37,7 @@ public static void createOrUpdateAWorkspace(com.azure.resourcemanager.synapse.Sy .withRegion("East US") .withExistingResourceGroup("resourceGroup1") .withTags(mapOf("key", "fakeTokenPlaceholder")) - .withIdentity(new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1", - new UserAssignedManagedIdentity()))) + .withIdentity(new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) .withDefaultDataLakeStorage( new DataLakeStorageAccountDetails().withAccountUrl("https://accountname.dfs.core.windows.net") .withFilesystem("default")) @@ -52,10 +46,7 @@ public static void createOrUpdateAWorkspace(com.azure.resourcemanager.synapse.Sy .withSqlAdministratorLogin("login") .withManagedVirtualNetwork("default") .withEncryption(new EncryptionDetails().withCmk(new CustomerManagedKeyDetails() - .withKey(new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")) - .withKekIdentity(new KekIdentityProperties().withUserAssignedIdentity( - "/subscriptions/b64d7b94-73e7-4d36-94b2-7764ea3fd74a/resourcegroups/SynapseCI/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1") - .withUseSystemAssignedIdentity(false)))) + .withKey(new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")))) .withManagedVirtualNetworkSettings(new ManagedVirtualNetworkSettings().withPreventDataExfiltration(false) .withLinkedAccessCheckOnTargetResource(false) .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) @@ -70,8 +61,6 @@ public static void createOrUpdateAWorkspace(com.azure.resourcemanager.synapse.Sy .withPurviewConfiguration(new PurviewConfiguration().withPurviewResourceId( "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) .withPublicNetworkAccess(WorkspacePublicNetworkAccess.ENABLED) - .withCspWorkspaceAdminProperties(new CspWorkspaceAdminProperties() - .withInitialWorkspaceAdminObjectId("6c20646f-8050-49ec-b3b1-80a0e58e454d")) .create(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteSamples.java index 2b32c865c6ef..af271fcc7b89 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteSamples.java @@ -10,7 +10,7 @@ public final class WorkspacesDeleteSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/DeleteWorkspace.json */ /** * Sample code: Delete a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesGetByResourceGroupSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesGetByResourceGroupSamples.java index 3fba0c6f8868..4f5a44585828 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesGetByResourceGroupSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class WorkspacesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/GetWorkspace.json */ /** * Sample code: Get a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListByResourceGroupSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListByResourceGroupSamples.java index 51c9ac3dcb3b..66b5d9b764f4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListByResourceGroupSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class WorkspacesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInResourceGroup + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListWorkspacesInResourceGroup * .json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListSamples.java index b19e8f9495d3..d466414fa4a8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListSamples.java @@ -10,7 +10,7 @@ public final class WorkspacesListSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInSubscription. + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/ListWorkspacesInSubscription. * json */ /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesUpdateSamples.java index c65050500815..aca246d98dfa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesUpdateSamples.java @@ -24,7 +24,7 @@ public final class WorkspacesUpdateSamples { /* * x-ms-original-file: - * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspace.json + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/examples/UpdateWorkspace.json */ /** * Sample code: Update a workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AadAdminPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AadAdminPropertiesTests.java index 2b4573e01a79..d5fa825c6c12 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AadAdminPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AadAdminPropertiesTests.java @@ -12,24 +12,24 @@ public final class AadAdminPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AadAdminProperties model = BinaryData.fromString( - "{\"tenantId\":\"pteecjme\",\"login\":\"ls\",\"administratorType\":\"asylwx\",\"sid\":\"aumweoohguufu\"}") + "{\"tenantId\":\"uytxzvtznapxban\",\"login\":\"vvoxczytprwnw\",\"administratorType\":\"oevytlyokr\",\"sid\":\"o\"}") .toObject(AadAdminProperties.class); - Assertions.assertEquals("pteecjme", model.tenantId()); - Assertions.assertEquals("ls", model.login()); - Assertions.assertEquals("asylwx", model.administratorType()); - Assertions.assertEquals("aumweoohguufu", model.sid()); + Assertions.assertEquals("uytxzvtznapxban", model.tenantId()); + Assertions.assertEquals("vvoxczytprwnw", model.login()); + Assertions.assertEquals("oevytlyokr", model.administratorType()); + Assertions.assertEquals("o", model.sid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AadAdminProperties model = new AadAdminProperties().withTenantId("pteecjme") - .withLogin("ls") - .withAdministratorType("asylwx") - .withSid("aumweoohguufu"); + AadAdminProperties model = new AadAdminProperties().withTenantId("uytxzvtznapxban") + .withLogin("vvoxczytprwnw") + .withAdministratorType("oevytlyokr") + .withSid("o"); model = BinaryData.fromObject(model).toObject(AadAdminProperties.class); - Assertions.assertEquals("pteecjme", model.tenantId()); - Assertions.assertEquals("ls", model.login()); - Assertions.assertEquals("asylwx", model.administratorType()); - Assertions.assertEquals("aumweoohguufu", model.sid()); + Assertions.assertEquals("uytxzvtznapxban", model.tenantId()); + Assertions.assertEquals("vvoxczytprwnw", model.login()); + Assertions.assertEquals("oevytlyokr", model.administratorType()); + Assertions.assertEquals("o", model.sid()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationInnerTests.java deleted file mode 100644 index b55334c51d6b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationInnerTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AttachedDatabaseConfigurationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AttachedDatabaseConfigurationInner model = BinaryData.fromString( - "{\"location\":\"uwxeoiojfizf\",\"properties\":{\"provisioningState\":\"Deleting\",\"databaseName\":\"zwfbcyaykmmfzs\",\"clusterResourceId\":\"fwxrzxmdew\",\"attachedDatabaseNames\":[\"xkrplbjaz\",\"jwwviy\"],\"defaultPrincipalsModificationKind\":\"Replace\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"hbrnnhjx\",\"qwjhqkbiwetpozyc\",\"qiqyhgfsetzlexbs\"],\"tablesToExclude\":[\"dynojpziuwfb\"],\"externalTablesToInclude\":[\"dtn\",\"qsyclj\",\"elpkpbafvafhlbyl\"],\"externalTablesToExclude\":[\"evxrhyz\",\"fwrsofpltdbmair\",\"hvhfnracw\"],\"materializedViewsToInclude\":[\"igtuu\",\"wouhdawsi\",\"rb\",\"bxsjybvitvqkj\"],\"materializedViewsToExclude\":[\"nu\",\"tggmuwdchozfnkfe\",\"lv\",\"noakiz\"]}},\"id\":\"aikn\",\"name\":\"q\",\"type\":\"nuwiguyxlykwph\"}") - .toObject(AttachedDatabaseConfigurationInner.class); - Assertions.assertEquals("uwxeoiojfizf", model.location()); - Assertions.assertEquals("zwfbcyaykmmfzs", model.databaseName()); - Assertions.assertEquals("fwxrzxmdew", model.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, model.defaultPrincipalsModificationKind()); - Assertions.assertEquals("hbrnnhjx", model.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("dynojpziuwfb", model.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("dtn", model.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("evxrhyz", model.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("igtuu", model.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("nu", model.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AttachedDatabaseConfigurationInner model = new AttachedDatabaseConfigurationInner().withLocation("uwxeoiojfizf") - .withDatabaseName("zwfbcyaykmmfzs") - .withKustoPoolResourceId("fwxrzxmdew") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.REPLACE) - .withTableLevelSharingProperties(new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("hbrnnhjx", "qwjhqkbiwetpozyc", "qiqyhgfsetzlexbs")) - .withTablesToExclude(Arrays.asList("dynojpziuwfb")) - .withExternalTablesToInclude(Arrays.asList("dtn", "qsyclj", "elpkpbafvafhlbyl")) - .withExternalTablesToExclude(Arrays.asList("evxrhyz", "fwrsofpltdbmair", "hvhfnracw")) - .withMaterializedViewsToInclude(Arrays.asList("igtuu", "wouhdawsi", "rb", "bxsjybvitvqkj")) - .withMaterializedViewsToExclude(Arrays.asList("nu", "tggmuwdchozfnkfe", "lv", "noakiz"))); - model = BinaryData.fromObject(model).toObject(AttachedDatabaseConfigurationInner.class); - Assertions.assertEquals("uwxeoiojfizf", model.location()); - Assertions.assertEquals("zwfbcyaykmmfzs", model.databaseName()); - Assertions.assertEquals("fwxrzxmdew", model.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, model.defaultPrincipalsModificationKind()); - Assertions.assertEquals("hbrnnhjx", model.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("dynojpziuwfb", model.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("dtn", model.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("evxrhyz", model.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("igtuu", model.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("nu", model.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationListResultTests.java deleted file mode 100644 index 1ae474a0608b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationListResultTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfigurationListResult; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AttachedDatabaseConfigurationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AttachedDatabaseConfigurationListResult model = BinaryData.fromString( - "{\"value\":[{\"location\":\"aqnvzoqgyipemchg\",\"properties\":{\"provisioningState\":\"Failed\",\"databaseName\":\"zuejd\",\"clusterResourceId\":\"xptlghwzho\",\"attachedDatabaseNames\":[\"jjstliuhqawmo\",\"ia\",\"cz\"],\"defaultPrincipalsModificationKind\":\"Replace\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"rslbl\",\"ydkxr\",\"vvbxiwkgfbqljnq\"],\"tablesToExclude\":[\"chocokulehur\",\"lrqff\",\"weyurkphyjd\"],\"externalTablesToInclude\":[\"vjuqdbrxmrgchb\"],\"externalTablesToExclude\":[\"kiyfjjkbajbusc\"],\"materializedViewsToInclude\":[\"u\",\"ioycbl\",\"vpmclujyxkyxlz\"],\"materializedViewsToExclude\":[\"gkzz\"]}},\"id\":\"afhbzf\",\"name\":\"ovwmbjlzqsczpgvd\",\"type\":\"napfdqwowftpt\"},{\"location\":\"wjtkschgcgqyhl\",\"properties\":{\"provisioningState\":\"Running\",\"databaseName\":\"q\",\"clusterResourceId\":\"hvyeldotj\",\"attachedDatabaseNames\":[\"wiswskukjtasbvw\",\"spkxkdt\",\"fkndl\",\"vtwknvgmmbugt\"],\"defaultPrincipalsModificationKind\":\"Replace\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"qaqkuea\",\"groeshoyg\",\"cbyfqxkf\",\"oytehqpuvjm\"],\"tablesToExclude\":[\"tdwckygr\",\"ejnndljdju\"],\"externalTablesToInclude\":[\"rreqynkceysfaqe\"],\"externalTablesToExclude\":[\"wryshwd\",\"kvb\",\"gkqu\",\"ybwptda\"],\"materializedViewsToInclude\":[\"vvlfntymtp\"],\"materializedViewsToExclude\":[\"enazerohzrsqals\",\"kdnwqapfgsdpcve\"]}},\"id\":\"mzhhkuuipldqqc\",\"name\":\"ekvalblhtjq\",\"type\":\"qyv\"},{\"location\":\"hta\",\"properties\":{\"provisioningState\":\"Canceled\",\"databaseName\":\"zzy\",\"clusterResourceId\":\"ev\",\"attachedDatabaseNames\":[\"ivzrrryveimipsk\",\"yzatvfuzkaft\"],\"defaultPrincipalsModificationKind\":\"Union\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"xwigsye\",\"pq\",\"smjtgrqgdg\",\"kileplkcsmknhwtb\"],\"tablesToExclude\":[\"dorvvmqfloy\",\"bdgwumgxdgd\"],\"externalTablesToInclude\":[\"bgd\",\"xjd\"],\"externalTablesToExclude\":[\"saq\",\"otmmw\",\"lcol\",\"rsxaptefh\"],\"materializedViewsToInclude\":[\"gjokjljnhvlqjbek\",\"eeksnbksdqhjvyk\",\"xeslkhhustcpoqm\",\"vnwqjwgo\"],\"materializedViewsToExclude\":[\"ejjjkxybwfdb\",\"jbzten\"]}},\"id\":\"kzykjtjk\",\"name\":\"sxfwushcdp\",\"type\":\"upnqrmgjfb\"}]}") - .toObject(AttachedDatabaseConfigurationListResult.class); - Assertions.assertEquals("aqnvzoqgyipemchg", model.value().get(0).location()); - Assertions.assertEquals("zuejd", model.value().get(0).databaseName()); - Assertions.assertEquals("xptlghwzho", model.value().get(0).kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, - model.value().get(0).defaultPrincipalsModificationKind()); - Assertions.assertEquals("rslbl", model.value().get(0).tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("chocokulehur", - model.value().get(0).tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("vjuqdbrxmrgchb", - model.value().get(0).tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("kiyfjjkbajbusc", - model.value().get(0).tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("u", - model.value().get(0).tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("gkzz", - model.value().get(0).tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AttachedDatabaseConfigurationListResult model - = new AttachedDatabaseConfigurationListResult().withValue(Arrays.asList( - new AttachedDatabaseConfigurationInner().withLocation("aqnvzoqgyipemchg") - .withDatabaseName("zuejd") - .withKustoPoolResourceId("xptlghwzho") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.REPLACE) - .withTableLevelSharingProperties(new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("rslbl", "ydkxr", "vvbxiwkgfbqljnq")) - .withTablesToExclude(Arrays.asList("chocokulehur", "lrqff", "weyurkphyjd")) - .withExternalTablesToInclude(Arrays.asList("vjuqdbrxmrgchb")) - .withExternalTablesToExclude(Arrays.asList("kiyfjjkbajbusc")) - .withMaterializedViewsToInclude(Arrays.asList("u", "ioycbl", "vpmclujyxkyxlz")) - .withMaterializedViewsToExclude(Arrays.asList("gkzz"))), - new AttachedDatabaseConfigurationInner().withLocation("wjtkschgcgqyhl") - .withDatabaseName("q") - .withKustoPoolResourceId("hvyeldotj") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.REPLACE) - .withTableLevelSharingProperties(new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("qaqkuea", "groeshoyg", "cbyfqxkf", "oytehqpuvjm")) - .withTablesToExclude(Arrays.asList("tdwckygr", "ejnndljdju")) - .withExternalTablesToInclude(Arrays.asList("rreqynkceysfaqe")) - .withExternalTablesToExclude(Arrays.asList("wryshwd", "kvb", "gkqu", "ybwptda")) - .withMaterializedViewsToInclude(Arrays.asList("vvlfntymtp")) - .withMaterializedViewsToExclude(Arrays.asList("enazerohzrsqals", "kdnwqapfgsdpcve"))), - new AttachedDatabaseConfigurationInner().withLocation("hta") - .withDatabaseName("zzy") - .withKustoPoolResourceId("ev") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) - .withTableLevelSharingProperties(new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("xwigsye", "pq", "smjtgrqgdg", "kileplkcsmknhwtb")) - .withTablesToExclude(Arrays.asList("dorvvmqfloy", "bdgwumgxdgd")) - .withExternalTablesToInclude(Arrays.asList("bgd", "xjd")) - .withExternalTablesToExclude(Arrays.asList("saq", "otmmw", "lcol", "rsxaptefh")) - .withMaterializedViewsToInclude( - Arrays.asList("gjokjljnhvlqjbek", "eeksnbksdqhjvyk", "xeslkhhustcpoqm", "vnwqjwgo")) - .withMaterializedViewsToExclude(Arrays.asList("ejjjkxybwfdb", "jbzten"))))); - model = BinaryData.fromObject(model).toObject(AttachedDatabaseConfigurationListResult.class); - Assertions.assertEquals("aqnvzoqgyipemchg", model.value().get(0).location()); - Assertions.assertEquals("zuejd", model.value().get(0).databaseName()); - Assertions.assertEquals("xptlghwzho", model.value().get(0).kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, - model.value().get(0).defaultPrincipalsModificationKind()); - Assertions.assertEquals("rslbl", model.value().get(0).tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("chocokulehur", - model.value().get(0).tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("vjuqdbrxmrgchb", - model.value().get(0).tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("kiyfjjkbajbusc", - model.value().get(0).tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("u", - model.value().get(0).tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("gkzz", - model.value().get(0).tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationPropertiesTests.java deleted file mode 100644 index 722c4f9faeba..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationPropertiesTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationProperties; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AttachedDatabaseConfigurationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AttachedDatabaseConfigurationProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Deleting\",\"databaseName\":\"cwxhmpej\",\"clusterResourceId\":\"lkexaonwivkcqh\",\"attachedDatabaseNames\":[\"xk\",\"lccrmmkyupi\",\"ubyqj\",\"kakfqfr\"],\"defaultPrincipalsModificationKind\":\"Union\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"ldudxjascowv\"],\"tablesToExclude\":[\"kpdxphlk\",\"snmgzvyfi\",\"dkz\",\"qnwsithuqolyah\"],\"externalTablesToInclude\":[\"wqulsutrjbhxykf\",\"y\"],\"externalTablesToExclude\":[\"vqqugdrftbcv\",\"xreuquowtlj\",\"fwhreagkhyxv\",\"qtvbczsu\"],\"materializedViewsToInclude\":[\"gglmepjpfsey\",\"g\",\"angpszngafpgyl\"],\"materializedViewsToExclude\":[\"cj\",\"jcngoadyed\"]}}") - .toObject(AttachedDatabaseConfigurationProperties.class); - Assertions.assertEquals("cwxhmpej", model.databaseName()); - Assertions.assertEquals("lkexaonwivkcqh", model.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.UNION, model.defaultPrincipalsModificationKind()); - Assertions.assertEquals("ldudxjascowv", model.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("kpdxphlk", model.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("wqulsutrjbhxykf", - model.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("vqqugdrftbcv", model.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("gglmepjpfsey", - model.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("cj", model.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AttachedDatabaseConfigurationProperties model = new AttachedDatabaseConfigurationProperties() - .withDatabaseName("cwxhmpej") - .withKustoPoolResourceId("lkexaonwivkcqh") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) - .withTableLevelSharingProperties(new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("ldudxjascowv")) - .withTablesToExclude(Arrays.asList("kpdxphlk", "snmgzvyfi", "dkz", "qnwsithuqolyah")) - .withExternalTablesToInclude(Arrays.asList("wqulsutrjbhxykf", "y")) - .withExternalTablesToExclude(Arrays.asList("vqqugdrftbcv", "xreuquowtlj", "fwhreagkhyxv", "qtvbczsu")) - .withMaterializedViewsToInclude(Arrays.asList("gglmepjpfsey", "g", "angpszngafpgyl")) - .withMaterializedViewsToExclude(Arrays.asList("cj", "jcngoadyed"))); - model = BinaryData.fromObject(model).toObject(AttachedDatabaseConfigurationProperties.class); - Assertions.assertEquals("cwxhmpej", model.databaseName()); - Assertions.assertEquals("lkexaonwivkcqh", model.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.UNION, model.defaultPrincipalsModificationKind()); - Assertions.assertEquals("ldudxjascowv", model.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("kpdxphlk", model.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("wqulsutrjbhxykf", - model.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("vqqugdrftbcv", model.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("gglmepjpfsey", - model.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("cj", model.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoPausePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoPausePropertiesTests.java index a11a77e7a98b..396fea5e05d4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoPausePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoPausePropertiesTests.java @@ -11,17 +11,17 @@ public final class AutoPausePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AutoPauseProperties model = BinaryData.fromString("{\"delayInMinutes\":965991558,\"enabled\":false}") + AutoPauseProperties model = BinaryData.fromString("{\"delayInMinutes\":861239752,\"enabled\":false}") .toObject(AutoPauseProperties.class); - Assertions.assertEquals(965991558, model.delayInMinutes()); + Assertions.assertEquals(861239752, model.delayInMinutes()); Assertions.assertEquals(false, model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AutoPauseProperties model = new AutoPauseProperties().withDelayInMinutes(965991558).withEnabled(false); + AutoPauseProperties model = new AutoPauseProperties().withDelayInMinutes(861239752).withEnabled(false); model = BinaryData.fromObject(model).toObject(AutoPauseProperties.class); - Assertions.assertEquals(965991558, model.delayInMinutes()); + Assertions.assertEquals(861239752, model.delayInMinutes()); Assertions.assertEquals(false, model.enabled()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoScalePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoScalePropertiesTests.java index e94e1db97ca8..c7337a94e3b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoScalePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoScalePropertiesTests.java @@ -12,20 +12,20 @@ public final class AutoScalePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutoScaleProperties model - = BinaryData.fromString("{\"minNodeCount\":178808534,\"enabled\":false,\"maxNodeCount\":1862913589}") + = BinaryData.fromString("{\"minNodeCount\":507207264,\"enabled\":true,\"maxNodeCount\":1257825373}") .toObject(AutoScaleProperties.class); - Assertions.assertEquals(178808534, model.minNodeCount()); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals(1862913589, model.maxNodeCount()); + Assertions.assertEquals(507207264, model.minNodeCount()); + Assertions.assertEquals(true, model.enabled()); + Assertions.assertEquals(1257825373, model.maxNodeCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AutoScaleProperties model - = new AutoScaleProperties().withMinNodeCount(178808534).withEnabled(false).withMaxNodeCount(1862913589); + = new AutoScaleProperties().withMinNodeCount(507207264).withEnabled(true).withMaxNodeCount(1257825373); model = BinaryData.fromObject(model).toObject(AutoScaleProperties.class); - Assertions.assertEquals(178808534, model.minNodeCount()); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals(1862913589, model.maxNodeCount()); + Assertions.assertEquals(507207264, model.minNodeCount()); + Assertions.assertEquals(true, model.enabled()); + Assertions.assertEquals(1257825373, model.maxNodeCount()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationDisplayInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationDisplayInfoTests.java index fb0944a4f3ad..715021dbe8bb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationDisplayInfoTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationDisplayInfoTests.java @@ -12,24 +12,24 @@ public final class AvailableRpOperationDisplayInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AvailableRpOperationDisplayInfo model = BinaryData.fromString( - "{\"description\":\"datqxhocdgeabl\",\"resource\":\"huticndvkao\",\"provider\":\"yiftyhxhuro\",\"operation\":\"tyxolniwpwc\"}") + "{\"description\":\"vasrruvwb\",\"resource\":\"qfsubcgjbirx\",\"provider\":\"ybsrfbjfdtwss\",\"operation\":\"ftpvjzbexil\"}") .toObject(AvailableRpOperationDisplayInfo.class); - Assertions.assertEquals("datqxhocdgeabl", model.description()); - Assertions.assertEquals("huticndvkao", model.resource()); - Assertions.assertEquals("yiftyhxhuro", model.provider()); - Assertions.assertEquals("tyxolniwpwc", model.operation()); + Assertions.assertEquals("vasrruvwb", model.description()); + Assertions.assertEquals("qfsubcgjbirx", model.resource()); + Assertions.assertEquals("ybsrfbjfdtwss", model.provider()); + Assertions.assertEquals("ftpvjzbexil", model.operation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AvailableRpOperationDisplayInfo model = new AvailableRpOperationDisplayInfo().withDescription("datqxhocdgeabl") - .withResource("huticndvkao") - .withProvider("yiftyhxhuro") - .withOperation("tyxolniwpwc"); + AvailableRpOperationDisplayInfo model = new AvailableRpOperationDisplayInfo().withDescription("vasrruvwb") + .withResource("qfsubcgjbirx") + .withProvider("ybsrfbjfdtwss") + .withOperation("ftpvjzbexil"); model = BinaryData.fromObject(model).toObject(AvailableRpOperationDisplayInfo.class); - Assertions.assertEquals("datqxhocdgeabl", model.description()); - Assertions.assertEquals("huticndvkao", model.resource()); - Assertions.assertEquals("yiftyhxhuro", model.provider()); - Assertions.assertEquals("tyxolniwpwc", model.operation()); + Assertions.assertEquals("vasrruvwb", model.description()); + Assertions.assertEquals("qfsubcgjbirx", model.resource()); + Assertions.assertEquals("ybsrfbjfdtwss", model.provider()); + Assertions.assertEquals("ftpvjzbexil", model.operation()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationInnerTests.java index 345e430ce65c..3e4f34eb9c37 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationInnerTests.java @@ -18,124 +18,114 @@ public final class AvailableRpOperationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AvailableRpOperationInner model = BinaryData.fromString( - "{\"display\":{\"description\":\"z\",\"resource\":\"chgejspodm\",\"provider\":\"lzydehojwyahux\",\"operation\":\"pmqnja\"},\"isDataAction\":\"ixjsprozvcputeg\",\"name\":\"wmfdatscmdvpjhul\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"sourceMdmNamespace\":\"jozkrwfndiod\",\"displayName\":\"slwejdpvw\",\"name\":\"oqpsoa\",\"aggregationType\":\"tazak\",\"displayDescription\":\"lahbcryff\",\"sourceMdmAccount\":\"dosyg\",\"enableRegionalMdmAccount\":true,\"unit\":\"ojakhmsbzjhcrze\",\"dimensions\":[{},{}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"aolthqtrg\"},{\"sourceMdmNamespace\":\"bpf\",\"displayName\":\"s\",\"name\":\"zgvfcjrwz\",\"aggregationType\":\"xjtfelluwfzit\",\"displayDescription\":\"peqfpjkjl\",\"sourceMdmAccount\":\"fpdvhpfxxypi\",\"enableRegionalMdmAccount\":true,\"unit\":\"ayhuy\",\"dimensions\":[{},{}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"epoo\"},{\"sourceMdmNamespace\":\"nuvamiheogna\",\"displayName\":\"zxtheotusivyevcc\",\"name\":\"ihnhun\",\"aggregationType\":\"wjzrnfygxgisp\",\"displayDescription\":\"vtz\",\"sourceMdmAccount\":\"ufubl\",\"enableRegionalMdmAccount\":false,\"unit\":\"qeof\",\"dimensions\":[{}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"qjbasvms\"}],\"logSpecifications\":[{\"displayName\":\"lngsntnbybkzgcwr\",\"blobDuration\":\"lxxwrljdouskc\",\"name\":\"kocrcjdkwtnhx\"},{\"displayName\":\"jbiksqrglssai\",\"blobDuration\":\"p\",\"name\":\"nzl\"},{\"displayName\":\"fmppe\",\"blobDuration\":\"vmgxsab\",\"name\":\"qduujitcjczdz\"},{\"displayName\":\"ndhkrw\",\"blobDuration\":\"appd\",\"name\":\"dkvwrwjfe\"}]}},\"origin\":\"nhutjeltmrldhugj\"}") + "{\"display\":{\"description\":\"yofd\",\"resource\":\"uusdttouwa\",\"provider\":\"ekqvkeln\",\"operation\":\"vbxwyjsflhh\"},\"isDataAction\":\"aln\",\"name\":\"xisxyawjoyaqcsl\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"sourceMdmNamespace\":\"dzyexznelixh\",\"displayName\":\"ztfolhbnxk\",\"name\":\"laulppg\",\"aggregationType\":\"tpnapnyiropuhpig\",\"displayDescription\":\"gylgqgitxmedjvcs\",\"sourceMdmAccount\":\"n\",\"enableRegionalMdmAccount\":true,\"unit\":\"cwzzhxgktr\",\"dimensions\":[{},{},{},{}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"pkteo\"},{\"sourceMdmNamespace\":\"lwptfdy\",\"displayName\":\"fqbuaceopzf\",\"name\":\"hhuao\",\"aggregationType\":\"pcqeqx\",\"displayDescription\":\"z\",\"sourceMdmAccount\":\"hzxct\",\"enableRegionalMdmAccount\":true,\"unit\":\"kdmoi\",\"dimensions\":[{},{}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"grcfb\"},{\"sourceMdmNamespace\":\"rmfqjhhkxbpvj\",\"displayName\":\"jhxxjyn\",\"name\":\"divkrt\",\"aggregationType\":\"bxqz\",\"displayDescription\":\"zjf\",\"sourceMdmAccount\":\"vjfdx\",\"enableRegionalMdmAccount\":false,\"unit\":\"tvtc\",\"dimensions\":[{}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"qmcbxvwvxyslqbhs\"}],\"logSpecifications\":[{\"displayName\":\"lyt\",\"blobDuration\":\"lmpewwwfbkr\",\"name\":\"nsvs\"}]}},\"origin\":\"johxcrsb\"}") .toObject(AvailableRpOperationInner.class); - Assertions.assertEquals("z", model.display().description()); - Assertions.assertEquals("chgejspodm", model.display().resource()); - Assertions.assertEquals("lzydehojwyahux", model.display().provider()); - Assertions.assertEquals("pmqnja", model.display().operation()); - Assertions.assertEquals("ixjsprozvcputeg", model.isDataAction()); - Assertions.assertEquals("wmfdatscmdvpjhul", model.name()); - Assertions.assertEquals("nhutjeltmrldhugj", model.origin()); - Assertions.assertEquals("jozkrwfndiod", + Assertions.assertEquals("yofd", model.display().description()); + Assertions.assertEquals("uusdttouwa", model.display().resource()); + Assertions.assertEquals("ekqvkeln", model.display().provider()); + Assertions.assertEquals("vbxwyjsflhh", model.display().operation()); + Assertions.assertEquals("aln", model.isDataAction()); + Assertions.assertEquals("xisxyawjoyaqcsl", model.name()); + Assertions.assertEquals("johxcrsb", model.origin()); + Assertions.assertEquals("dzyexznelixh", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("slwejdpvw", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("oqpsoa", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("tazak", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("lahbcryff", + Assertions.assertEquals("ztfolhbnxk", model.serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("laulppg", model.serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("tpnapnyiropuhpig", + model.serviceSpecification().metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("gylgqgitxmedjvcs", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("dosyg", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); + Assertions.assertEquals("n", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("ojakhmsbzjhcrze", model.serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("cwzzhxgktr", model.serviceSpecification().metricSpecifications().get(0).unit()); Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions.assertEquals("aolthqtrg", + Assertions.assertEquals("pkteo", model.serviceSpecification().metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("lngsntnbybkzgcwr", - model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("lxxwrljdouskc", - model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("kocrcjdkwtnhx", model.serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("lyt", model.serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("lmpewwwfbkr", model.serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("nsvs", model.serviceSpecification().logSpecifications().get(0).name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AvailableRpOperationInner model = new AvailableRpOperationInner() - .withDisplay(new AvailableRpOperationDisplayInfo().withDescription("z") - .withResource("chgejspodm") - .withProvider("lzydehojwyahux") - .withOperation("pmqnja")) - .withIsDataAction("ixjsprozvcputeg") - .withName("wmfdatscmdvpjhul") - .withOrigin("nhutjeltmrldhugj") + .withDisplay(new AvailableRpOperationDisplayInfo().withDescription("yofd") + .withResource("uusdttouwa") + .withProvider("ekqvkeln") + .withOperation("vbxwyjsflhh")) + .withIsDataAction("aln") + .withName("xisxyawjoyaqcsl") + .withOrigin("johxcrsb") .withServiceSpecification(new OperationMetaServiceSpecification() .withMetricSpecifications(Arrays.asList( - new OperationMetaMetricSpecification().withSourceMdmNamespace("jozkrwfndiod") - .withDisplayName("slwejdpvw") - .withName("oqpsoa") - .withAggregationType("tazak") - .withDisplayDescription("lahbcryff") - .withSourceMdmAccount("dosyg") + new OperationMetaMetricSpecification().withSourceMdmNamespace("dzyexznelixh") + .withDisplayName("ztfolhbnxk") + .withName("laulppg") + .withAggregationType("tpnapnyiropuhpig") + .withDisplayDescription("gylgqgitxmedjvcs") + .withSourceMdmAccount("n") .withEnableRegionalMdmAccount(true) - .withUnit("ojakhmsbzjhcrze") + .withUnit("cwzzhxgktr") .withDimensions(Arrays.asList(new OperationMetaMetricDimensionSpecification(), + new OperationMetaMetricDimensionSpecification(), + new OperationMetaMetricDimensionSpecification(), new OperationMetaMetricDimensionSpecification())) .withSupportsInstanceLevelAggregation(true) - .withMetricFilterPattern("aolthqtrg"), - new OperationMetaMetricSpecification().withSourceMdmNamespace("bpf") - .withDisplayName("s") - .withName("zgvfcjrwz") - .withAggregationType("xjtfelluwfzit") - .withDisplayDescription("peqfpjkjl") - .withSourceMdmAccount("fpdvhpfxxypi") + .withMetricFilterPattern("pkteo"), + new OperationMetaMetricSpecification().withSourceMdmNamespace("lwptfdy") + .withDisplayName("fqbuaceopzf") + .withName("hhuao") + .withAggregationType("pcqeqx") + .withDisplayDescription("z") + .withSourceMdmAccount("hzxct") .withEnableRegionalMdmAccount(true) - .withUnit("ayhuy") + .withUnit("kdmoi") .withDimensions(Arrays.asList(new OperationMetaMetricDimensionSpecification(), new OperationMetaMetricDimensionSpecification())) .withSupportsInstanceLevelAggregation(true) - .withMetricFilterPattern("epoo"), - new OperationMetaMetricSpecification().withSourceMdmNamespace("nuvamiheogna") - .withDisplayName("zxtheotusivyevcc") - .withName("ihnhun") - .withAggregationType("wjzrnfygxgisp") - .withDisplayDescription("vtz") - .withSourceMdmAccount("ufubl") + .withMetricFilterPattern("grcfb"), + new OperationMetaMetricSpecification().withSourceMdmNamespace("rmfqjhhkxbpvj") + .withDisplayName("jhxxjyn") + .withName("divkrt") + .withAggregationType("bxqz") + .withDisplayDescription("zjf") + .withSourceMdmAccount("vjfdx") .withEnableRegionalMdmAccount(false) - .withUnit("qeof") + .withUnit("tvtc") .withDimensions(Arrays.asList(new OperationMetaMetricDimensionSpecification())) .withSupportsInstanceLevelAggregation(true) - .withMetricFilterPattern("qjbasvms"))) - .withLogSpecifications(Arrays.asList( - new OperationMetaLogSpecification().withDisplayName("lngsntnbybkzgcwr") - .withBlobDuration("lxxwrljdouskc") - .withName("kocrcjdkwtnhx"), - new OperationMetaLogSpecification().withDisplayName("jbiksqrglssai") - .withBlobDuration("p") - .withName("nzl"), - new OperationMetaLogSpecification().withDisplayName("fmppe") - .withBlobDuration("vmgxsab") - .withName("qduujitcjczdz"), - new OperationMetaLogSpecification().withDisplayName("ndhkrw") - .withBlobDuration("appd") - .withName("dkvwrwjfe")))); + .withMetricFilterPattern("qmcbxvwvxyslqbhs"))) + .withLogSpecifications(Arrays.asList(new OperationMetaLogSpecification().withDisplayName("lyt") + .withBlobDuration("lmpewwwfbkr") + .withName("nsvs")))); model = BinaryData.fromObject(model).toObject(AvailableRpOperationInner.class); - Assertions.assertEquals("z", model.display().description()); - Assertions.assertEquals("chgejspodm", model.display().resource()); - Assertions.assertEquals("lzydehojwyahux", model.display().provider()); - Assertions.assertEquals("pmqnja", model.display().operation()); - Assertions.assertEquals("ixjsprozvcputeg", model.isDataAction()); - Assertions.assertEquals("wmfdatscmdvpjhul", model.name()); - Assertions.assertEquals("nhutjeltmrldhugj", model.origin()); - Assertions.assertEquals("jozkrwfndiod", + Assertions.assertEquals("yofd", model.display().description()); + Assertions.assertEquals("uusdttouwa", model.display().resource()); + Assertions.assertEquals("ekqvkeln", model.display().provider()); + Assertions.assertEquals("vbxwyjsflhh", model.display().operation()); + Assertions.assertEquals("aln", model.isDataAction()); + Assertions.assertEquals("xisxyawjoyaqcsl", model.name()); + Assertions.assertEquals("johxcrsb", model.origin()); + Assertions.assertEquals("dzyexznelixh", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("slwejdpvw", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("oqpsoa", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("tazak", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("lahbcryff", + Assertions.assertEquals("ztfolhbnxk", model.serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("laulppg", model.serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("tpnapnyiropuhpig", + model.serviceSpecification().metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("gylgqgitxmedjvcs", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("dosyg", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); + Assertions.assertEquals("n", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("ojakhmsbzjhcrze", model.serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("cwzzhxgktr", model.serviceSpecification().metricSpecifications().get(0).unit()); Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions.assertEquals("aolthqtrg", + Assertions.assertEquals("pkteo", model.serviceSpecification().metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("lngsntnbybkzgcwr", - model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("lxxwrljdouskc", - model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("kocrcjdkwtnhx", model.serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("lyt", model.serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("lmpewwwfbkr", model.serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("nsvs", model.serviceSpecification().logSpecifications().get(0).name()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationInnerTests.java deleted file mode 100644 index 950b602ef8b6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import org.junit.jupiter.api.Assertions; - -public final class AzureADOnlyAuthenticationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureADOnlyAuthenticationInner model = BinaryData.fromString( - "{\"properties\":{\"azureADOnlyAuthentication\":true,\"state\":\"InConsistent\",\"creationDate\":\"2021-07-30T08:26:42Z\"},\"id\":\"gjxpybczmehmt\",\"name\":\"opb\",\"type\":\"phrupidgsybbejhp\"}") - .toObject(AzureADOnlyAuthenticationInner.class); - Assertions.assertEquals(true, model.azureADOnlyAuthentication()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureADOnlyAuthenticationInner model = new AzureADOnlyAuthenticationInner().withAzureADOnlyAuthentication(true); - model = BinaryData.fromObject(model).toObject(AzureADOnlyAuthenticationInner.class); - Assertions.assertEquals(true, model.azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationListResultTests.java deleted file mode 100644 index d063e608da00..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationListResult; - -public final class AzureADOnlyAuthenticationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureADOnlyAuthenticationListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"azureADOnlyAuthentication\":false,\"state\":\"Consistent\",\"creationDate\":\"2021-03-23T13:19:49Z\"},\"id\":\"mtqio\",\"name\":\"jzehtb\",\"type\":\"ufpo\"}],\"nextLink\":\"oizh\"}") - .toObject(AzureADOnlyAuthenticationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureADOnlyAuthenticationListResult model = new AzureADOnlyAuthenticationListResult(); - model = BinaryData.fromObject(model).toObject(AzureADOnlyAuthenticationListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationPropertiesTests.java deleted file mode 100644 index 3beedb791963..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationProperties; -import org.junit.jupiter.api.Assertions; - -public final class AzureADOnlyAuthenticationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureADOnlyAuthenticationProperties model = BinaryData.fromString( - "{\"azureADOnlyAuthentication\":true,\"state\":\"InConsistent\",\"creationDate\":\"2021-08-10T00:52:22Z\"}") - .toObject(AzureADOnlyAuthenticationProperties.class); - Assertions.assertEquals(true, model.azureADOnlyAuthentication()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureADOnlyAuthenticationProperties model - = new AzureADOnlyAuthenticationProperties().withAzureADOnlyAuthentication(true); - model = BinaryData.fromObject(model).toObject(AzureADOnlyAuthenticationProperties.class); - Assertions.assertEquals(true, model.azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateMockTests.java deleted file mode 100644 index 25c616cea1e3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AzureADOnlyAuthenticationsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"azureADOnlyAuthentication\":true,\"state\":\"Consistent\",\"creationDate\":\"2021-08-23T10:33:26Z\"},\"id\":\"mndcov\",\"name\":\"wzqauxzanhmkvf\",\"type\":\"uwkudrbcp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AzureADOnlyAuthentication response = manager.azureADOnlyAuthentications() - .define(AzureADOnlyAuthenticationName.DEFAULT) - .withExistingWorkspace("pew", "c") - .withAzureADOnlyAuthentication(false) - .create(); - - Assertions.assertEquals(true, response.azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetWithResponseMockTests.java deleted file mode 100644 index 7a77112d8fee..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetWithResponseMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AzureADOnlyAuthenticationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"azureADOnlyAuthentication\":true,\"state\":\"Updating\",\"creationDate\":\"2021-02-20T02:37:38Z\"},\"id\":\"jtfrnquktrfn\",\"name\":\"lnlrxsmy\",\"type\":\"trwntfmtbgw\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AzureADOnlyAuthentication response = manager.azureADOnlyAuthentications() - .getWithResponse("ehdpboujstkfvvds", "xcdedsu", AzureADOnlyAuthenticationName.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListMockTests.java deleted file mode 100644 index 58c2dd366dbf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AzureADOnlyAuthenticationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"azureADOnlyAuthentication\":false,\"state\":\"Updating\",\"creationDate\":\"2021-03-07T01:31:57Z\"},\"id\":\"wjwzzqseuzuukykc\",\"name\":\"qhyqqzzdcykey\",\"type\":\"tewfopazdazgbsq\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.azureADOnlyAuthentications().list("dxwnazkurrd", "eyz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(false, response.iterator().next().azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureCapacityTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureCapacityTests.java deleted file mode 100644 index a7cc1d64b212..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureCapacityTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureCapacity; -import com.azure.resourcemanager.synapse.models.AzureScaleType; -import org.junit.jupiter.api.Assertions; - -public final class AzureCapacityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureCapacity model = BinaryData - .fromString("{\"scaleType\":\"none\",\"minimum\":1561715583,\"maximum\":1355647832,\"default\":727713302}") - .toObject(AzureCapacity.class); - Assertions.assertEquals(AzureScaleType.NONE, model.scaleType()); - Assertions.assertEquals(1561715583, model.minimum()); - Assertions.assertEquals(1355647832, model.maximum()); - Assertions.assertEquals(727713302, model.defaultProperty()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureCapacity model = new AzureCapacity().withScaleType(AzureScaleType.NONE) - .withMinimum(1561715583) - .withMaximum(1355647832) - .withDefaultProperty(727713302); - model = BinaryData.fromObject(model).toObject(AzureCapacity.class); - Assertions.assertEquals(AzureScaleType.NONE, model.scaleType()); - Assertions.assertEquals(1561715583, model.minimum()); - Assertions.assertEquals(1355647832, model.maximum()); - Assertions.assertEquals(727713302, model.defaultProperty()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureEntityResourceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureEntityResourceTests.java index 648879cf45ac..4aa20f68b5a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureEntityResourceTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureEntityResourceTests.java @@ -11,7 +11,7 @@ public final class AzureEntityResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureEntityResource model = BinaryData - .fromString("{\"etag\":\"wmozqvbub\",\"id\":\"ma\",\"name\":\"hsycxhxzgaz\",\"type\":\"taboidvmf\"}") + .fromString("{\"etag\":\"atkpnp\",\"id\":\"lexxbczwtru\",\"name\":\"iqzbq\",\"type\":\"vsovmyokac\"}") .toObject(AzureEntityResource.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureResourceSkuInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureResourceSkuInnerTests.java deleted file mode 100644 index 0dea7f93a072..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureResourceSkuInnerTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.azure.resourcemanager.synapse.models.AzureCapacity; -import com.azure.resourcemanager.synapse.models.AzureScaleType; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import org.junit.jupiter.api.Assertions; - -public final class AzureResourceSkuInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureResourceSkuInner model = BinaryData.fromString( - "{\"resourceType\":\"bb\",\"sku\":{\"name\":\"Storage optimized\",\"capacity\":777012378,\"size\":\"Small\"},\"capacity\":{\"scaleType\":\"none\",\"minimum\":751843719,\"maximum\":1857938371,\"default\":1172909819}}") - .toObject(AzureResourceSkuInner.class); - Assertions.assertEquals("bb", model.resourceType()); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(777012378, model.sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.sku().size()); - Assertions.assertEquals(AzureScaleType.NONE, model.capacity().scaleType()); - Assertions.assertEquals(751843719, model.capacity().minimum()); - Assertions.assertEquals(1857938371, model.capacity().maximum()); - Assertions.assertEquals(1172909819, model.capacity().defaultProperty()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureResourceSkuInner model = new AzureResourceSkuInner().withResourceType("bb") - .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(777012378).withSize(SkuSize.SMALL)) - .withCapacity(new AzureCapacity().withScaleType(AzureScaleType.NONE) - .withMinimum(751843719) - .withMaximum(1857938371) - .withDefaultProperty(1172909819)); - model = BinaryData.fromObject(model).toObject(AzureResourceSkuInner.class); - Assertions.assertEquals("bb", model.resourceType()); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(777012378, model.sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.sku().size()); - Assertions.assertEquals(AzureScaleType.NONE, model.capacity().scaleType()); - Assertions.assertEquals(751843719, model.capacity().minimum()); - Assertions.assertEquals(1857938371, model.capacity().maximum()); - Assertions.assertEquals(1172909819, model.capacity().defaultProperty()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureSkuTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureSkuTests.java deleted file mode 100644 index 23e56e2f219d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureSkuTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import org.junit.jupiter.api.Assertions; - -public final class AzureSkuTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSku model - = BinaryData.fromString("{\"name\":\"Compute optimized\",\"capacity\":1006468867,\"size\":\"Small\"}") - .toObject(AzureSku.class); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.name()); - Assertions.assertEquals(1006468867, model.capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSku model - = new AzureSku().withName(SkuName.COMPUTE_OPTIMIZED).withCapacity(1006468867).withSize(SkuSize.SMALL); - model = BinaryData.fromObject(model).toObject(AzureSku.class); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.name()); - Assertions.assertEquals(1006468867, model.capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.size()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolPatchInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolPatchInfoTests.java index db8324d22b94..7d1e9f7bbb6d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolPatchInfoTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolPatchInfoTests.java @@ -13,18 +13,16 @@ public final class BigDataPoolPatchInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BigDataPoolPatchInfo model = BinaryData.fromString( - "{\"tags\":{\"xlhslnel\":\"znmmaxrizkzobgo\",\"wcrojphslhcaw\":\"ieixynllxe\",\"i\":\"u\",\"tzh\":\"dwfmvigorqjb\"}}") - .toObject(BigDataPoolPatchInfo.class); - Assertions.assertEquals("znmmaxrizkzobgo", model.tags().get("xlhslnel")); + BigDataPoolPatchInfo model + = BinaryData.fromString("{\"tags\":{\"jqul\":\"aeqjhqjbasvms\"}}").toObject(BigDataPoolPatchInfo.class); + Assertions.assertEquals("aeqjhqjbasvms", model.tags().get("jqul")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BigDataPoolPatchInfo model = new BigDataPoolPatchInfo().withTags( - mapOf("xlhslnel", "znmmaxrizkzobgo", "wcrojphslhcaw", "ieixynllxe", "i", "u", "tzh", "dwfmvigorqjb")); + BigDataPoolPatchInfo model = new BigDataPoolPatchInfo().withTags(mapOf("jqul", "aeqjhqjbasvms")); model = BinaryData.fromObject(model).toObject(BigDataPoolPatchInfo.class); - Assertions.assertEquals("znmmaxrizkzobgo", model.tags().get("xlhslnel")); + Assertions.assertEquals("aeqjhqjbasvms", model.tags().get("jqul")); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoInnerTests.java index fda5787f6270..403508abdbfc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoInnerTests.java @@ -9,12 +9,11 @@ import com.azure.resourcemanager.synapse.fluent.models.LibraryInfo; import com.azure.resourcemanager.synapse.models.AutoPauseProperties; import com.azure.resourcemanager.synapse.models.AutoScaleProperties; -import com.azure.resourcemanager.synapse.models.ConfigurationType; import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; import com.azure.resourcemanager.synapse.models.LibraryRequirements; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; +import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -24,106 +23,92 @@ public final class BigDataPoolResourceInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BigDataPoolResourceInfoInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"gfdgugeyzi\",\"autoScale\":{\"minNodeCount\":1233581087,\"enabled\":false,\"maxNodeCount\":976674781},\"creationDate\":\"2021-02-21T09:37:08Z\",\"autoPause\":{\"delayInMinutes\":698820955,\"enabled\":false},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":782057398,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":837668712,\"maxExecutors\":1792442027},\"sparkEventsFolder\":\"zbgomfgbeg\",\"nodeCount\":1408942113,\"libraryRequirements\":{\"time\":\"2021-04-25T04:23:56Z\",\"content\":\"i\",\"filename\":\"tnluankrr\"},\"customLibraries\":[{\"name\":\"ebtijvacvbmqzbqq\",\"path\":\"aj\",\"containerName\":\"wxacevehj\",\"uploadedTimestamp\":\"2021-06-11T00:32:44Z\",\"type\":\"oafgaoql\",\"provisioningStatus\":\"aeylinm\",\"creatorId\":\"vxirpghriypo\"},{\"name\":\"yhlqhykprlpyznu\",\"path\":\"qdsmexiit\",\"containerName\":\"uxtyasiibmi\",\"uploadedTimestamp\":\"2021-05-03T03:38:09Z\",\"type\":\"ustgnljhnmgixhc\",\"provisioningStatus\":\"vmqfoud\",\"creatorId\":\"hcgyyprotwyp\"},{\"name\":\"d\",\"path\":\"xhugcm\",\"containerName\":\"avlg\",\"uploadedTimestamp\":\"2021-01-22T21:55:11Z\",\"type\":\"ftpmdtzfjltfv\",\"provisioningStatus\":\"cyjtotpvop\",\"creatorId\":\"bdb\"}],\"sparkConfigProperties\":{\"time\":\"2021-01-12T17:35:30Z\",\"content\":\"ihed\",\"filename\":\"qwthmky\",\"configurationType\":\"File\"},\"sparkVersion\":\"sihsgqcwdhohsd\",\"defaultSparkLogFolder\":\"cdzsu\",\"nodeSize\":\"Small\",\"nodeSizeFamily\":\"HardwareAcceleratedFPGA\",\"lastSucceededTimestamp\":\"2021-02-20T04:00:07Z\"},\"location\":\"zlmcmuapcvhdb\",\"tags\":{\"zinkfkbgbzbowxeq\":\"qqxeyskon\",\"ygvkzqkjj\":\"clj\",\"zrxcczurt\":\"okbzef\"},\"id\":\"e\",\"name\":\"pqxbkwvzgnzvdf\",\"type\":\"zdix\"}") + "{\"properties\":{\"provisioningState\":\"hq\",\"autoScale\":{\"minNodeCount\":322749480,\"enabled\":true,\"maxNodeCount\":1515333764},\"creationDate\":\"2021-08-05T16:53:34Z\",\"autoPause\":{\"delayInMinutes\":1336465504,\"enabled\":true},\"isComputeIsolationEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":2143816909,\"dynamicExecutorAllocation\":{\"enabled\":false},\"sparkEventsFolder\":\"idgsybbe\",\"nodeCount\":318397575,\"libraryRequirements\":{\"time\":\"2021-10-06T10:20:32Z\",\"content\":\"msxaobhd\",\"filename\":\"mtqio\"},\"customLibraries\":[{\"name\":\"htbmuf\",\"path\":\"wnoi\",\"containerName\":\"wlrxyb\",\"uploadedTimestamp\":\"2021-01-09T03:58:02Z\",\"type\":\"ijgkdm\",\"provisioningStatus\":\"azlobcufpdznrbt\",\"creatorId\":\"qjnqglhqgnufoooj\"},{\"name\":\"ifsqesaagdfmg\",\"path\":\"lhjxr\",\"containerName\":\"kwm\",\"uploadedTimestamp\":\"2021-08-23T15:37:33Z\",\"type\":\"siznto\",\"provisioningStatus\":\"pa\",\"creatorId\":\"ajpsquc\"}],\"sparkConfigProperties\":{\"time\":\"2021-01-12T06:10:22Z\",\"content\":\"dkfo\",\"filename\":\"nygj\"},\"sparkVersion\":\"jddeqsrdeupewnw\",\"defaultSparkLogFolder\":\"itjz\",\"nodeSize\":\"XXLarge\",\"nodeSizeFamily\":\"MemoryOptimized\",\"lastSucceededTimestamp\":\"2021-05-22T22:11:04Z\"},\"location\":\"hmofc\",\"tags\":{\"rkdtmlxh\":\"my\"},\"id\":\"kuksjtxukcdm\",\"name\":\"arcryuanzwuxzdxt\",\"type\":\"yrlhmwhfpmrqobm\"}") .toObject(BigDataPoolResourceInfoInner.class); - Assertions.assertEquals("zlmcmuapcvhdb", model.location()); - Assertions.assertEquals("qqxeyskon", model.tags().get("zinkfkbgbzbowxeq")); - Assertions.assertEquals("gfdgugeyzi", model.provisioningState()); - Assertions.assertEquals(1233581087, model.autoScale().minNodeCount()); - Assertions.assertEquals(false, model.autoScale().enabled()); - Assertions.assertEquals(976674781, model.autoScale().maxNodeCount()); - Assertions.assertEquals(698820955, model.autoPause().delayInMinutes()); - Assertions.assertEquals(false, model.autoPause().enabled()); + Assertions.assertEquals("hmofc", model.location()); + Assertions.assertEquals("my", model.tags().get("rkdtmlxh")); + Assertions.assertEquals("hq", model.provisioningState()); + Assertions.assertEquals(322749480, model.autoScale().minNodeCount()); + Assertions.assertEquals(true, model.autoScale().enabled()); + Assertions.assertEquals(1515333764, model.autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T16:53:34Z"), model.creationDate()); + Assertions.assertEquals(1336465504, model.autoPause().delayInMinutes()); + Assertions.assertEquals(true, model.autoPause().enabled()); Assertions.assertEquals(false, model.isComputeIsolationEnabled()); - Assertions.assertEquals(false, model.isAutotuneEnabled()); - Assertions.assertEquals(false, model.sessionLevelPackagesEnabled()); - Assertions.assertEquals(782057398, model.cacheSize()); + Assertions.assertEquals(true, model.sessionLevelPackagesEnabled()); + Assertions.assertEquals(2143816909, model.cacheSize()); Assertions.assertEquals(false, model.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(837668712, model.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1792442027, model.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("zbgomfgbeg", model.sparkEventsFolder()); - Assertions.assertEquals(1408942113, model.nodeCount()); - Assertions.assertEquals("i", model.libraryRequirements().content()); - Assertions.assertEquals("tnluankrr", model.libraryRequirements().filename()); - Assertions.assertEquals("ebtijvacvbmqzbqq", model.customLibraries().get(0).name()); - Assertions.assertEquals("aj", model.customLibraries().get(0).path()); - Assertions.assertEquals("wxacevehj", model.customLibraries().get(0).containerName()); - Assertions.assertEquals("oafgaoql", model.customLibraries().get(0).type()); - Assertions.assertEquals("ihed", model.sparkConfigProperties().content()); - Assertions.assertEquals("qwthmky", model.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, model.sparkConfigProperties().configurationType()); - Assertions.assertEquals("sihsgqcwdhohsd", model.sparkVersion()); - Assertions.assertEquals("cdzsu", model.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.SMALL, model.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, model.nodeSizeFamily()); + Assertions.assertEquals("idgsybbe", model.sparkEventsFolder()); + Assertions.assertEquals(318397575, model.nodeCount()); + Assertions.assertEquals("msxaobhd", model.libraryRequirements().content()); + Assertions.assertEquals("mtqio", model.libraryRequirements().filename()); + Assertions.assertEquals("htbmuf", model.customLibraries().get(0).name()); + Assertions.assertEquals("wnoi", model.customLibraries().get(0).path()); + Assertions.assertEquals("wlrxyb", model.customLibraries().get(0).containerName()); + Assertions.assertEquals("ijgkdm", model.customLibraries().get(0).type()); + Assertions.assertEquals("dkfo", model.sparkConfigProperties().content()); + Assertions.assertEquals("nygj", model.sparkConfigProperties().filename()); + Assertions.assertEquals("jddeqsrdeupewnw", model.sparkVersion()); + Assertions.assertEquals("itjz", model.defaultSparkLogFolder()); + Assertions.assertEquals(NodeSize.XXLARGE, model.nodeSize()); + Assertions.assertEquals(NodeSizeFamily.MEMORY_OPTIMIZED, model.nodeSizeFamily()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BigDataPoolResourceInfoInner model = new BigDataPoolResourceInfoInner().withLocation("zlmcmuapcvhdb") - .withTags(mapOf("zinkfkbgbzbowxeq", "qqxeyskon", "ygvkzqkjj", "clj", "zrxcczurt", "okbzef")) - .withProvisioningState("gfdgugeyzi") + BigDataPoolResourceInfoInner model = new BigDataPoolResourceInfoInner().withLocation("hmofc") + .withTags(mapOf("rkdtmlxh", "my")) + .withProvisioningState("hq") .withAutoScale( - new AutoScaleProperties().withMinNodeCount(1233581087).withEnabled(false).withMaxNodeCount(976674781)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(698820955).withEnabled(false)) + new AutoScaleProperties().withMinNodeCount(322749480).withEnabled(true).withMaxNodeCount(1515333764)) + .withCreationDate(OffsetDateTime.parse("2021-08-05T16:53:34Z")) + .withAutoPause(new AutoPauseProperties().withDelayInMinutes(1336465504).withEnabled(true)) .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(false) - .withSessionLevelPackagesEnabled(false) - .withCacheSize(782057398) - .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(false) - .withMinExecutors(837668712) - .withMaxExecutors(1792442027)) - .withSparkEventsFolder("zbgomfgbeg") - .withNodeCount(1408942113) - .withLibraryRequirements(new LibraryRequirements().withContent("i").withFilename("tnluankrr")) + .withSessionLevelPackagesEnabled(true) + .withCacheSize(2143816909) + .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(false)) + .withSparkEventsFolder("idgsybbe") + .withNodeCount(318397575) + .withLibraryRequirements(new LibraryRequirements().withContent("msxaobhd").withFilename("mtqio")) .withCustomLibraries(Arrays.asList( - new LibraryInfo().withName("ebtijvacvbmqzbqq") - .withPath("aj") - .withContainerName("wxacevehj") - .withType("oafgaoql"), - new LibraryInfo().withName("yhlqhykprlpyznu") - .withPath("qdsmexiit") - .withContainerName("uxtyasiibmi") - .withType("ustgnljhnmgixhc"), - new LibraryInfo().withName("d").withPath("xhugcm").withContainerName("avlg").withType("ftpmdtzfjltfv"))) - .withSparkConfigProperties(new SparkConfigProperties().withContent("ihed") - .withFilename("qwthmky") - .withConfigurationType(ConfigurationType.FILE)) - .withSparkVersion("sihsgqcwdhohsd") - .withDefaultSparkLogFolder("cdzsu") - .withNodeSize(NodeSize.SMALL) - .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA); + new LibraryInfo().withName("htbmuf").withPath("wnoi").withContainerName("wlrxyb").withType("ijgkdm"), + new LibraryInfo().withName("ifsqesaagdfmg") + .withPath("lhjxr") + .withContainerName("kwm") + .withType("siznto"))) + .withSparkConfigProperties(new LibraryRequirements().withContent("dkfo").withFilename("nygj")) + .withSparkVersion("jddeqsrdeupewnw") + .withDefaultSparkLogFolder("itjz") + .withNodeSize(NodeSize.XXLARGE) + .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED); model = BinaryData.fromObject(model).toObject(BigDataPoolResourceInfoInner.class); - Assertions.assertEquals("zlmcmuapcvhdb", model.location()); - Assertions.assertEquals("qqxeyskon", model.tags().get("zinkfkbgbzbowxeq")); - Assertions.assertEquals("gfdgugeyzi", model.provisioningState()); - Assertions.assertEquals(1233581087, model.autoScale().minNodeCount()); - Assertions.assertEquals(false, model.autoScale().enabled()); - Assertions.assertEquals(976674781, model.autoScale().maxNodeCount()); - Assertions.assertEquals(698820955, model.autoPause().delayInMinutes()); - Assertions.assertEquals(false, model.autoPause().enabled()); + Assertions.assertEquals("hmofc", model.location()); + Assertions.assertEquals("my", model.tags().get("rkdtmlxh")); + Assertions.assertEquals("hq", model.provisioningState()); + Assertions.assertEquals(322749480, model.autoScale().minNodeCount()); + Assertions.assertEquals(true, model.autoScale().enabled()); + Assertions.assertEquals(1515333764, model.autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T16:53:34Z"), model.creationDate()); + Assertions.assertEquals(1336465504, model.autoPause().delayInMinutes()); + Assertions.assertEquals(true, model.autoPause().enabled()); Assertions.assertEquals(false, model.isComputeIsolationEnabled()); - Assertions.assertEquals(false, model.isAutotuneEnabled()); - Assertions.assertEquals(false, model.sessionLevelPackagesEnabled()); - Assertions.assertEquals(782057398, model.cacheSize()); + Assertions.assertEquals(true, model.sessionLevelPackagesEnabled()); + Assertions.assertEquals(2143816909, model.cacheSize()); Assertions.assertEquals(false, model.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(837668712, model.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1792442027, model.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("zbgomfgbeg", model.sparkEventsFolder()); - Assertions.assertEquals(1408942113, model.nodeCount()); - Assertions.assertEquals("i", model.libraryRequirements().content()); - Assertions.assertEquals("tnluankrr", model.libraryRequirements().filename()); - Assertions.assertEquals("ebtijvacvbmqzbqq", model.customLibraries().get(0).name()); - Assertions.assertEquals("aj", model.customLibraries().get(0).path()); - Assertions.assertEquals("wxacevehj", model.customLibraries().get(0).containerName()); - Assertions.assertEquals("oafgaoql", model.customLibraries().get(0).type()); - Assertions.assertEquals("ihed", model.sparkConfigProperties().content()); - Assertions.assertEquals("qwthmky", model.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, model.sparkConfigProperties().configurationType()); - Assertions.assertEquals("sihsgqcwdhohsd", model.sparkVersion()); - Assertions.assertEquals("cdzsu", model.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.SMALL, model.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, model.nodeSizeFamily()); + Assertions.assertEquals("idgsybbe", model.sparkEventsFolder()); + Assertions.assertEquals(318397575, model.nodeCount()); + Assertions.assertEquals("msxaobhd", model.libraryRequirements().content()); + Assertions.assertEquals("mtqio", model.libraryRequirements().filename()); + Assertions.assertEquals("htbmuf", model.customLibraries().get(0).name()); + Assertions.assertEquals("wnoi", model.customLibraries().get(0).path()); + Assertions.assertEquals("wlrxyb", model.customLibraries().get(0).containerName()); + Assertions.assertEquals("ijgkdm", model.customLibraries().get(0).type()); + Assertions.assertEquals("dkfo", model.sparkConfigProperties().content()); + Assertions.assertEquals("nygj", model.sparkConfigProperties().filename()); + Assertions.assertEquals("jddeqsrdeupewnw", model.sparkVersion()); + Assertions.assertEquals("itjz", model.defaultSparkLogFolder()); + Assertions.assertEquals(NodeSize.XXLARGE, model.nodeSize()); + Assertions.assertEquals(NodeSizeFamily.MEMORY_OPTIMIZED, model.nodeSizeFamily()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoListResultTests.java index f6508e9b7e37..be53f7309619 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoListResultTests.java @@ -10,12 +10,11 @@ import com.azure.resourcemanager.synapse.models.AutoPauseProperties; import com.azure.resourcemanager.synapse.models.AutoScaleProperties; import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfoListResult; -import com.azure.resourcemanager.synapse.models.ConfigurationType; import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; import com.azure.resourcemanager.synapse.models.LibraryRequirements; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; +import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -25,229 +24,163 @@ public final class BigDataPoolResourceInfoListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BigDataPoolResourceInfoListResult model = BinaryData.fromString( - "{\"nextLink\":\"glka\",\"value\":[{\"properties\":{\"provisioningState\":\"juj\",\"autoScale\":{\"minNodeCount\":1707444160,\"enabled\":false,\"maxNodeCount\":1969790254},\"creationDate\":\"2021-10-27T01:20:23Z\",\"autoPause\":{\"delayInMinutes\":1541228545,\"enabled\":true},\"isComputeIsolationEnabled\":true,\"isAutotuneEnabled\":true,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":130887115,\"dynamicExecutorAllocation\":{\"enabled\":true,\"minExecutors\":1626288503,\"maxExecutors\":267714014},\"sparkEventsFolder\":\"kqscazuawxtzx\",\"nodeCount\":1892972656,\"libraryRequirements\":{\"time\":\"2021-10-17T19:25:02Z\",\"content\":\"zxrvxcus\",\"filename\":\"phai\"},\"customLibraries\":[{\"name\":\"asflvg\",\"path\":\"zwywako\",\"containerName\":\"knsmjblmljhlnymz\",\"uploadedTimestamp\":\"2021-04-30T07:55:21Z\",\"type\":\"ryuzcbmqqv\",\"provisioningStatus\":\"vwf\",\"creatorId\":\"ayxonsupeujl\"},{\"name\":\"nh\",\"path\":\"sqltnzo\",\"containerName\":\"gsxgnxfyqon\",\"uploadedTimestamp\":\"2021-01-30T13:57:25Z\",\"type\":\"xwdofdb\",\"provisioningStatus\":\"qxeiiqbimhtmwwi\",\"creatorId\":\"ehfqpofvwbc\"},{\"name\":\"embnkbw\",\"path\":\"vxkdivqihebwtswb\",\"containerName\":\"wfmdurage\",\"uploadedTimestamp\":\"2021-12-08T01:55:20Z\",\"type\":\"cjfelisdjubgg\",\"provisioningStatus\":\"igkxkbsazga\",\"creatorId\":\"acy\"}],\"sparkConfigProperties\":{\"time\":\"2021-01-02T15:25:18Z\",\"content\":\"mspofapvuhryl\",\"filename\":\"ofrzgb\",\"configurationType\":\"File\"},\"sparkVersion\":\"mstk\",\"defaultSparkLogFolder\":\"l\",\"nodeSize\":\"Medium\",\"nodeSizeFamily\":\"HardwareAcceleratedGPU\",\"lastSucceededTimestamp\":\"2021-11-07T19:34:50Z\"},\"location\":\"znktwfansnv\",\"tags\":{\"z\":\"bmikost\",\"fy\":\"kiwbuqnyoph\",\"elfwy\":\"sgcrpfbcunezzce\"},\"id\":\"wl\",\"name\":\"xjwet\",\"type\":\"psihcla\"},{\"properties\":{\"provisioningState\":\"aylp\",\"autoScale\":{\"minNodeCount\":1236951545,\"enabled\":true,\"maxNodeCount\":105779102},\"creationDate\":\"2021-09-09T08:43:34Z\",\"autoPause\":{\"delayInMinutes\":1735975208,\"enabled\":true},\"isComputeIsolationEnabled\":true,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":237267065,\"dynamicExecutorAllocation\":{\"enabled\":true,\"minExecutors\":1116581331,\"maxExecutors\":365381714},\"sparkEventsFolder\":\"eqvhpsylkk\",\"nodeCount\":2045415438,\"libraryRequirements\":{\"time\":\"2021-01-17T05:47:39Z\",\"content\":\"bmxzjrgywwpg\",\"filename\":\"snptfujgicgaao\"},\"customLibraries\":[{\"name\":\"aqutdewemxswvruu\",\"path\":\"zjgehkfkim\",\"containerName\":\"ixokffqyin\",\"uploadedTimestamp\":\"2021-03-15T19:57:11Z\",\"type\":\"pqwhixmonst\",\"provisioningStatus\":\"i\",\"creatorId\":\"gvelfc\"},{\"name\":\"uccbirdsvuw\",\"path\":\"b\",\"containerName\":\"gstmninwjizciln\",\"uploadedTimestamp\":\"2021-03-04T09:32:03Z\",\"type\":\"h\",\"provisioningStatus\":\"jtbxqmuluxlx\",\"creatorId\":\"vnersbycucrw\"},{\"name\":\"mikzeb\",\"path\":\"bsmswziqgf\",\"containerName\":\"okzrus\",\"uploadedTimestamp\":\"2021-10-09T05:43:57Z\",\"type\":\"czznvfbycjsxj\",\"provisioningStatus\":\"i\",\"creatorId\":\"vumwmxqh\"}],\"sparkConfigProperties\":{\"time\":\"2021-05-20T22:40:21Z\",\"content\":\"amldseh\",\"filename\":\"hdjhhflz\",\"configurationType\":\"Artifact\"},\"sparkVersion\":\"ox\",\"defaultSparkLogFolder\":\"lnjetaglt\",\"nodeSize\":\"XXLarge\",\"nodeSizeFamily\":\"None\",\"lastSucceededTimestamp\":\"2021-03-09T01:22:13Z\"},\"location\":\"g\",\"tags\":{\"zihmipgawtxxpky\":\"pbswvefloccsrm\"},\"id\":\"cxcjxgry\",\"name\":\"fmpcycilrmca\",\"type\":\"kggnoxu\"},{\"properties\":{\"provisioningState\":\"ksxwpnd\",\"autoScale\":{\"minNodeCount\":1607373695,\"enabled\":false,\"maxNodeCount\":1488512507},\"creationDate\":\"2021-10-03T06:25:21Z\",\"autoPause\":{\"delayInMinutes\":417005856,\"enabled\":false},\"isComputeIsolationEnabled\":true,\"isAutotuneEnabled\":true,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":1851255683,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":467574810,\"maxExecutors\":1821726929},\"sparkEventsFolder\":\"smgbzahgxqdl\",\"nodeCount\":587777042,\"libraryRequirements\":{\"time\":\"2021-08-19T07:20:59Z\",\"content\":\"prltzkatbhjmz\",\"filename\":\"bsoqeqala\"},\"customLibraries\":[{\"name\":\"gunbtgfebwlnbm\",\"path\":\"reeudzqavb\",\"containerName\":\"qmjxlyyzglgouwtl\",\"uploadedTimestamp\":\"2021-03-15T04:42:49Z\",\"type\":\"uojqt\",\"provisioningStatus\":\"axkjeytunlbfjk\",\"creatorId\":\"u\"},{\"name\":\"kqbh\",\"path\":\"rqunjq\",\"containerName\":\"enx\",\"uploadedTimestamp\":\"2021-08-21T12:49:36Z\",\"type\":\"pakdkifmjnnawt\",\"provisioningStatus\":\"bpxuckpggqoweyi\",\"creatorId\":\"hlisngw\"}],\"sparkConfigProperties\":{\"time\":\"2021-06-30T03:10:24Z\",\"content\":\"pizruwnpqxpxiw\",\"filename\":\"ngjsaasi\",\"configurationType\":\"Artifact\"},\"sparkVersion\":\"kzjv\",\"defaultSparkLogFolder\":\"iirhgfgrwsd\",\"nodeSize\":\"XLarge\",\"nodeSizeFamily\":\"None\",\"lastSucceededTimestamp\":\"2021-03-02T16:22:17Z\"},\"location\":\"zb\",\"tags\":{\"ictc\":\"y\"},\"id\":\"brxkjzwr\",\"name\":\"xff\",\"type\":\"shkwfbkgozxwopd\"},{\"properties\":{\"provisioningState\":\"p\",\"autoScale\":{\"minNodeCount\":1764317108,\"enabled\":true,\"maxNodeCount\":1182183471},\"creationDate\":\"2021-06-28T08:27:45Z\",\"autoPause\":{\"delayInMinutes\":357864069,\"enabled\":false},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":true,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":1734135140,\"dynamicExecutorAllocation\":{\"enabled\":true,\"minExecutors\":305006066,\"maxExecutors\":1635201406},\"sparkEventsFolder\":\"yilflqoiquvrehmr\",\"nodeCount\":2121804794,\"libraryRequirements\":{\"time\":\"2021-11-15T07:49:24Z\",\"content\":\"ztczytq\",\"filename\":\"w\"},\"customLibraries\":[{\"name\":\"nfprnjletlxs\",\"path\":\"pddouifamowaziyn\",\"containerName\":\"lqwzdvpiwhxqsz\",\"uploadedTimestamp\":\"2021-02-04T20:55:27Z\",\"type\":\"ajquhuxylrjvmtyg\",\"provisioningStatus\":\"mzyospspshck\",\"creatorId\":\"yjpmspbpssdfppyo\"},{\"name\":\"ieyujtvc\",\"path\":\"cnyxrxmunjd\",\"containerName\":\"glnkvxlxpagl\",\"uploadedTimestamp\":\"2021-01-09T09:53:42Z\",\"type\":\"gkcvkhpzvuq\",\"provisioningStatus\":\"lvoniy\",\"creatorId\":\"pubcpzgpxtivhjk\"},{\"name\":\"dibgqjxgpnrhgov\",\"path\":\"pikqmh\",\"containerName\":\"owjrmzvuporqz\",\"uploadedTimestamp\":\"2021-01-08T19:38:21Z\",\"type\":\"dzvkfvxcnqmxq\",\"provisioningStatus\":\"wokmvkhlggd\",\"creatorId\":\"em\"},{\"name\":\"kzsz\",\"path\":\"iwtglxxhljfpg\",\"containerName\":\"crmnzhrgmqgjs\",\"uploadedTimestamp\":\"2021-08-31T09:53:45Z\",\"type\":\"cbfrm\",\"provisioningStatus\":\"dths\",\"creatorId\":\"gvriibakclac\"}],\"sparkConfigProperties\":{\"time\":\"2021-11-04T08:18:17Z\",\"content\":\"ousxauzlwvsgmw\",\"filename\":\"qf\",\"configurationType\":\"File\"},\"sparkVersion\":\"uxmmkjsvthnwp\",\"defaultSparkLogFolder\":\"ekov\",\"nodeSize\":\"XXLarge\",\"nodeSizeFamily\":\"MemoryOptimized\",\"lastSucceededTimestamp\":\"2021-07-05T22:48:38Z\"},\"location\":\"tgplucfota\",\"tags\":{\"vxwlmzqwmvtxnj\":\"fhnykzcugs\"},\"id\":\"xmcuqud\",\"name\":\"cvclxynpdk\",\"type\":\"gfabuiyjibuzphdu\"}]}") + "{\"nextLink\":\"sntnbybkzgcw\",\"value\":[{\"properties\":{\"provisioningState\":\"xwrljdouskcqvkoc\",\"autoScale\":{\"minNodeCount\":1012894603,\"enabled\":true,\"maxNodeCount\":371451274},\"creationDate\":\"2021-04-07T16:39:29Z\",\"autoPause\":{\"delayInMinutes\":1299495603,\"enabled\":false},\"isComputeIsolationEnabled\":true,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":1218196264,\"dynamicExecutorAllocation\":{\"enabled\":true},\"sparkEventsFolder\":\"nqpjwnzlljfmpp\",\"nodeCount\":2010421384,\"libraryRequirements\":{\"time\":\"2021-11-23T16:03:48Z\",\"content\":\"sabkyqduujitcjcz\",\"filename\":\"evndh\"},\"customLibraries\":[{\"name\":\"d\",\"path\":\"p\",\"containerName\":\"bdkvwrwjf\",\"uploadedTimestamp\":\"2021-08-31T02:16Z\",\"type\":\"hutje\",\"provisioningStatus\":\"mrldhu\",\"creatorId\":\"zzd\"},{\"name\":\"qxhocdgeablgphut\",\"path\":\"ndv\",\"containerName\":\"ozwyiftyhxhuro\",\"uploadedTimestamp\":\"2020-12-20T08:53:33Z\",\"type\":\"xolniwpwcukjfk\",\"provisioningStatus\":\"awxklr\",\"creatorId\":\"lwckbasyypnddhs\"},{\"name\":\"bacphejko\",\"path\":\"nqgoulzndli\",\"containerName\":\"yqkgfg\",\"uploadedTimestamp\":\"2021-12-05T16:09:15Z\",\"type\":\"dgak\",\"provisioningStatus\":\"s\",\"creatorId\":\"yb\"}],\"sparkConfigProperties\":{\"time\":\"2021-07-27T23:28:20Z\",\"content\":\"qytbciq\",\"filename\":\"uflmm\"},\"sparkVersion\":\"zsm\",\"defaultSparkLogFolder\":\"mglougpbkw\",\"nodeSize\":\"Medium\",\"nodeSizeFamily\":\"MemoryOptimized\",\"lastSucceededTimestamp\":\"2021-07-26T02:06:56Z\"},\"location\":\"ktapspwgcuertu\",\"tags\":{\"vqwhbmdgbbjfd\":\"o\",\"q\":\"gmbmbexppbh\",\"algbquxigjyjg\":\"rolfpfp\",\"lnerkujysvleju\":\"jaoyfhrtx\"},\"id\":\"fqawrlyxw\",\"name\":\"kcprbnw\",\"type\":\"xgjvtbv\"},{\"properties\":{\"provisioningState\":\"szdnr\",\"autoScale\":{\"minNodeCount\":718700797,\"enabled\":true,\"maxNodeCount\":931696713},\"creationDate\":\"2021-03-27T03:26:42Z\",\"autoPause\":{\"delayInMinutes\":1747028439,\"enabled\":true},\"isComputeIsolationEnabled\":true,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":2100303933,\"dynamicExecutorAllocation\":{\"enabled\":false},\"sparkEventsFolder\":\"uizga\",\"nodeCount\":8203543,\"libraryRequirements\":{\"time\":\"2020-12-27T04:43:40Z\",\"content\":\"ckyfih\",\"filename\":\"idf\"},\"customLibraries\":[{\"name\":\"zuhtymwisdkfthwx\",\"path\":\"t\",\"containerName\":\"waopvkmijcmmxd\",\"uploadedTimestamp\":\"2021-08-10T20:04:10Z\",\"type\":\"fsrpymzidnse\",\"provisioningStatus\":\"xtbzsgfyccsne\",\"creatorId\":\"dwzjeiach\"},{\"name\":\"osfln\",\"path\":\"sfqpteehz\",\"containerName\":\"ypyqrimzinp\",\"uploadedTimestamp\":\"2021-01-25T11:13:44Z\",\"type\":\"dkirsoodqxhcr\",\"provisioningStatus\":\"ohjtckw\",\"creatorId\":\"soifiyipjxsqw\"},{\"name\":\"rjb\",\"path\":\"orcjxvsnby\",\"containerName\":\"abnmocpcyshu\",\"uploadedTimestamp\":\"2021-10-01T07:14:45Z\",\"type\":\"bl\",\"provisioningStatus\":\"gpbtoqcjmklj\",\"creatorId\":\"bqidtqaj\"}],\"sparkConfigProperties\":{\"time\":\"2021-10-05T17:16:42Z\",\"content\":\"kudjkrlkhb\",\"filename\":\"fepgzgq\"},\"sparkVersion\":\"zloc\",\"defaultSparkLogFolder\":\"c\",\"nodeSize\":\"Large\",\"nodeSizeFamily\":\"MemoryOptimized\",\"lastSucceededTimestamp\":\"2021-06-04T19:54:17Z\"},\"location\":\"bcsglumma\",\"tags\":{\"nbdxk\":\"aodxo\"},\"id\":\"pxokajionp\",\"name\":\"mexgstxgcp\",\"type\":\"dg\"},{\"properties\":{\"provisioningState\":\"jrmvdjwzrlo\",\"autoScale\":{\"minNodeCount\":1769717852,\"enabled\":false,\"maxNodeCount\":137439916},\"creationDate\":\"2021-06-21T02:40:32Z\",\"autoPause\":{\"delayInMinutes\":1491222167,\"enabled\":true},\"isComputeIsolationEnabled\":true,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":2038129581,\"dynamicExecutorAllocation\":{\"enabled\":true},\"sparkEventsFolder\":\"bfkgukdkex\",\"nodeCount\":1041117095,\"libraryRequirements\":{\"time\":\"2021-08-26T06:38:07Z\",\"content\":\"axcfjpgddtocjjx\",\"filename\":\"pmouexhdz\"},\"customLibraries\":[{\"name\":\"eojnxqbzvddn\",\"path\":\"ndei\",\"containerName\":\"twnpzaoqvuhrhcf\",\"uploadedTimestamp\":\"2021-05-08T13:34:52Z\",\"type\":\"dglmjthjqkwp\",\"provisioningStatus\":\"icxm\",\"creatorId\":\"iwqvhkh\"}],\"sparkConfigProperties\":{\"time\":\"2021-05-06T05:08:48Z\",\"content\":\"dtopbob\",\"filename\":\"ghmewuam\"},\"sparkVersion\":\"hrzayvvtpgvdf\",\"defaultSparkLogFolder\":\"otkftutqxlngx\",\"nodeSize\":\"None\",\"nodeSizeFamily\":\"HardwareAcceleratedFPGA\",\"lastSucceededTimestamp\":\"2021-01-24T10:40:18Z\"},\"location\":\"xkrxdqmi\",\"tags\":{\"abhjybi\":\"hzrvqd\"},\"id\":\"ehoqfbowskan\",\"name\":\"ktzlcuiywg\",\"type\":\"ywgndrv\"}]}") .toObject(BigDataPoolResourceInfoListResult.class); - Assertions.assertEquals("glka", model.nextLink()); - Assertions.assertEquals("znktwfansnv", model.value().get(0).location()); - Assertions.assertEquals("bmikost", model.value().get(0).tags().get("z")); - Assertions.assertEquals("juj", model.value().get(0).provisioningState()); - Assertions.assertEquals(1707444160, model.value().get(0).autoScale().minNodeCount()); - Assertions.assertEquals(false, model.value().get(0).autoScale().enabled()); - Assertions.assertEquals(1969790254, model.value().get(0).autoScale().maxNodeCount()); - Assertions.assertEquals(1541228545, model.value().get(0).autoPause().delayInMinutes()); - Assertions.assertEquals(true, model.value().get(0).autoPause().enabled()); + Assertions.assertEquals("sntnbybkzgcw", model.nextLink()); + Assertions.assertEquals("ktapspwgcuertu", model.value().get(0).location()); + Assertions.assertEquals("o", model.value().get(0).tags().get("vqwhbmdgbbjfd")); + Assertions.assertEquals("xwrljdouskcqvkoc", model.value().get(0).provisioningState()); + Assertions.assertEquals(1012894603, model.value().get(0).autoScale().minNodeCount()); + Assertions.assertEquals(true, model.value().get(0).autoScale().enabled()); + Assertions.assertEquals(371451274, model.value().get(0).autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-07T16:39:29Z"), model.value().get(0).creationDate()); + Assertions.assertEquals(1299495603, model.value().get(0).autoPause().delayInMinutes()); + Assertions.assertEquals(false, model.value().get(0).autoPause().enabled()); Assertions.assertEquals(true, model.value().get(0).isComputeIsolationEnabled()); - Assertions.assertEquals(true, model.value().get(0).isAutotuneEnabled()); - Assertions.assertEquals(false, model.value().get(0).sessionLevelPackagesEnabled()); - Assertions.assertEquals(130887115, model.value().get(0).cacheSize()); + Assertions.assertEquals(true, model.value().get(0).sessionLevelPackagesEnabled()); + Assertions.assertEquals(1218196264, model.value().get(0).cacheSize()); Assertions.assertEquals(true, model.value().get(0).dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(1626288503, model.value().get(0).dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(267714014, model.value().get(0).dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("kqscazuawxtzx", model.value().get(0).sparkEventsFolder()); - Assertions.assertEquals(1892972656, model.value().get(0).nodeCount()); - Assertions.assertEquals("zxrvxcus", model.value().get(0).libraryRequirements().content()); - Assertions.assertEquals("phai", model.value().get(0).libraryRequirements().filename()); - Assertions.assertEquals("asflvg", model.value().get(0).customLibraries().get(0).name()); - Assertions.assertEquals("zwywako", model.value().get(0).customLibraries().get(0).path()); - Assertions.assertEquals("knsmjblmljhlnymz", model.value().get(0).customLibraries().get(0).containerName()); - Assertions.assertEquals("ryuzcbmqqv", model.value().get(0).customLibraries().get(0).type()); - Assertions.assertEquals("mspofapvuhryl", model.value().get(0).sparkConfigProperties().content()); - Assertions.assertEquals("ofrzgb", model.value().get(0).sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, - model.value().get(0).sparkConfigProperties().configurationType()); - Assertions.assertEquals("mstk", model.value().get(0).sparkVersion()); - Assertions.assertEquals("l", model.value().get(0).defaultSparkLogFolder()); + Assertions.assertEquals("nqpjwnzlljfmpp", model.value().get(0).sparkEventsFolder()); + Assertions.assertEquals(2010421384, model.value().get(0).nodeCount()); + Assertions.assertEquals("sabkyqduujitcjcz", model.value().get(0).libraryRequirements().content()); + Assertions.assertEquals("evndh", model.value().get(0).libraryRequirements().filename()); + Assertions.assertEquals("d", model.value().get(0).customLibraries().get(0).name()); + Assertions.assertEquals("p", model.value().get(0).customLibraries().get(0).path()); + Assertions.assertEquals("bdkvwrwjf", model.value().get(0).customLibraries().get(0).containerName()); + Assertions.assertEquals("hutje", model.value().get(0).customLibraries().get(0).type()); + Assertions.assertEquals("qytbciq", model.value().get(0).sparkConfigProperties().content()); + Assertions.assertEquals("uflmm", model.value().get(0).sparkConfigProperties().filename()); + Assertions.assertEquals("zsm", model.value().get(0).sparkVersion()); + Assertions.assertEquals("mglougpbkw", model.value().get(0).defaultSparkLogFolder()); Assertions.assertEquals(NodeSize.MEDIUM, model.value().get(0).nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_GPU, model.value().get(0).nodeSizeFamily()); + Assertions.assertEquals(NodeSizeFamily.MEMORY_OPTIMIZED, model.value().get(0).nodeSizeFamily()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BigDataPoolResourceInfoListResult model = new BigDataPoolResourceInfoListResult().withNextLink("glka") + BigDataPoolResourceInfoListResult model = new BigDataPoolResourceInfoListResult().withNextLink("sntnbybkzgcw") .withValue(Arrays.asList( - new BigDataPoolResourceInfoInner().withLocation("znktwfansnv") - .withTags(mapOf("z", "bmikost", "fy", "kiwbuqnyoph", "elfwy", "sgcrpfbcunezzce")) - .withProvisioningState("juj") - .withAutoScale(new AutoScaleProperties().withMinNodeCount(1707444160) - .withEnabled(false) - .withMaxNodeCount(1969790254)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(1541228545).withEnabled(true)) + new BigDataPoolResourceInfoInner().withLocation("ktapspwgcuertu") + .withTags(mapOf("vqwhbmdgbbjfd", "o", "q", "gmbmbexppbh", "algbquxigjyjg", "rolfpfp", + "lnerkujysvleju", "jaoyfhrtx")) + .withProvisioningState("xwrljdouskcqvkoc") + .withAutoScale(new AutoScaleProperties().withMinNodeCount(1012894603) + .withEnabled(true) + .withMaxNodeCount(371451274)) + .withCreationDate(OffsetDateTime.parse("2021-04-07T16:39:29Z")) + .withAutoPause(new AutoPauseProperties().withDelayInMinutes(1299495603).withEnabled(false)) .withIsComputeIsolationEnabled(true) - .withIsAutotuneEnabled(true) - .withSessionLevelPackagesEnabled(false) - .withCacheSize(130887115) - .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(true) - .withMinExecutors(1626288503) - .withMaxExecutors(267714014)) - .withSparkEventsFolder("kqscazuawxtzx") - .withNodeCount(1892972656) - .withLibraryRequirements(new LibraryRequirements().withContent("zxrvxcus").withFilename("phai")) + .withSessionLevelPackagesEnabled(true) + .withCacheSize(1218196264) + .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(true)) + .withSparkEventsFolder("nqpjwnzlljfmpp") + .withNodeCount(2010421384) + .withLibraryRequirements( + new LibraryRequirements().withContent("sabkyqduujitcjcz").withFilename("evndh")) .withCustomLibraries(Arrays.asList( - new LibraryInfo().withName("asflvg") - .withPath("zwywako") - .withContainerName("knsmjblmljhlnymz") - .withType("ryuzcbmqqv"), - new LibraryInfo().withName("nh") - .withPath("sqltnzo") - .withContainerName("gsxgnxfyqon") - .withType("xwdofdb"), - new LibraryInfo().withName("embnkbw") - .withPath("vxkdivqihebwtswb") - .withContainerName("wfmdurage") - .withType("cjfelisdjubgg"))) - .withSparkConfigProperties(new SparkConfigProperties().withContent("mspofapvuhryl") - .withFilename("ofrzgb") - .withConfigurationType(ConfigurationType.FILE)) - .withSparkVersion("mstk") - .withDefaultSparkLogFolder("l") + new LibraryInfo().withName("d").withPath("p").withContainerName("bdkvwrwjf").withType("hutje"), + new LibraryInfo().withName("qxhocdgeablgphut") + .withPath("ndv") + .withContainerName("ozwyiftyhxhuro") + .withType("xolniwpwcukjfk"), + new LibraryInfo().withName("bacphejko") + .withPath("nqgoulzndli") + .withContainerName("yqkgfg") + .withType("dgak"))) + .withSparkConfigProperties(new LibraryRequirements().withContent("qytbciq").withFilename("uflmm")) + .withSparkVersion("zsm") + .withDefaultSparkLogFolder("mglougpbkw") .withNodeSize(NodeSize.MEDIUM) - .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_GPU), - new BigDataPoolResourceInfoInner().withLocation("g") - .withTags(mapOf("zihmipgawtxxpky", "pbswvefloccsrm")) - .withProvisioningState("aylp") - .withAutoScale(new AutoScaleProperties().withMinNodeCount(1236951545) + .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED), + new BigDataPoolResourceInfoInner().withLocation("bcsglumma") + .withTags(mapOf("nbdxk", "aodxo")) + .withProvisioningState("szdnr") + .withAutoScale(new AutoScaleProperties().withMinNodeCount(718700797) .withEnabled(true) - .withMaxNodeCount(105779102)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(1735975208).withEnabled(true)) + .withMaxNodeCount(931696713)) + .withCreationDate(OffsetDateTime.parse("2021-03-27T03:26:42Z")) + .withAutoPause(new AutoPauseProperties().withDelayInMinutes(1747028439).withEnabled(true)) .withIsComputeIsolationEnabled(true) - .withIsAutotuneEnabled(false) - .withSessionLevelPackagesEnabled(false) - .withCacheSize(237267065) - .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(true) - .withMinExecutors(1116581331) - .withMaxExecutors(365381714)) - .withSparkEventsFolder("eqvhpsylkk") - .withNodeCount(2045415438) - .withLibraryRequirements( - new LibraryRequirements().withContent("bmxzjrgywwpg").withFilename("snptfujgicgaao")) + .withSessionLevelPackagesEnabled(true) + .withCacheSize(2100303933) + .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(false)) + .withSparkEventsFolder("uizga") + .withNodeCount(8203543) + .withLibraryRequirements(new LibraryRequirements().withContent("ckyfih").withFilename("idf")) .withCustomLibraries(Arrays.asList( - new LibraryInfo().withName("aqutdewemxswvruu") - .withPath("zjgehkfkim") - .withContainerName("ixokffqyin") - .withType("pqwhixmonst"), - new LibraryInfo().withName("uccbirdsvuw") - .withPath("b") - .withContainerName("gstmninwjizciln") - .withType("h"), - new LibraryInfo().withName("mikzeb") - .withPath("bsmswziqgf") - .withContainerName("okzrus") - .withType("czznvfbycjsxj"))) - .withSparkConfigProperties(new SparkConfigProperties().withContent("amldseh") - .withFilename("hdjhhflz") - .withConfigurationType(ConfigurationType.ARTIFACT)) - .withSparkVersion("ox") - .withDefaultSparkLogFolder("lnjetaglt") - .withNodeSize(NodeSize.XXLARGE) - .withNodeSizeFamily(NodeSizeFamily.NONE), - new BigDataPoolResourceInfoInner().withLocation("zb") - .withTags(mapOf("ictc", "y")) - .withProvisioningState("ksxwpnd") - .withAutoScale(new AutoScaleProperties().withMinNodeCount(1607373695) + new LibraryInfo().withName("zuhtymwisdkfthwx") + .withPath("t") + .withContainerName("waopvkmijcmmxd") + .withType("fsrpymzidnse"), + new LibraryInfo().withName("osfln") + .withPath("sfqpteehz") + .withContainerName("ypyqrimzinp") + .withType("dkirsoodqxhcr"), + new LibraryInfo().withName("rjb") + .withPath("orcjxvsnby") + .withContainerName("abnmocpcyshu") + .withType("bl"))) + .withSparkConfigProperties( + new LibraryRequirements().withContent("kudjkrlkhb").withFilename("fepgzgq")) + .withSparkVersion("zloc") + .withDefaultSparkLogFolder("c") + .withNodeSize(NodeSize.LARGE) + .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED), + new BigDataPoolResourceInfoInner().withLocation("xkrxdqmi") + .withTags(mapOf("abhjybi", "hzrvqd")) + .withProvisioningState("jrmvdjwzrlo") + .withAutoScale(new AutoScaleProperties().withMinNodeCount(1769717852) .withEnabled(false) - .withMaxNodeCount(1488512507)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(417005856).withEnabled(false)) + .withMaxNodeCount(137439916)) + .withCreationDate(OffsetDateTime.parse("2021-06-21T02:40:32Z")) + .withAutoPause(new AutoPauseProperties().withDelayInMinutes(1491222167).withEnabled(true)) .withIsComputeIsolationEnabled(true) - .withIsAutotuneEnabled(true) .withSessionLevelPackagesEnabled(false) - .withCacheSize(1851255683) - .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(false) - .withMinExecutors(467574810) - .withMaxExecutors(1821726929)) - .withSparkEventsFolder("smgbzahgxqdl") - .withNodeCount(587777042) + .withCacheSize(2038129581) + .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(true)) + .withSparkEventsFolder("bfkgukdkex") + .withNodeCount(1041117095) .withLibraryRequirements( - new LibraryRequirements().withContent("prltzkatbhjmz").withFilename("bsoqeqala")) - .withCustomLibraries(Arrays.asList( - new LibraryInfo().withName("gunbtgfebwlnbm") - .withPath("reeudzqavb") - .withContainerName("qmjxlyyzglgouwtl") - .withType("uojqt"), - new LibraryInfo().withName("kqbh") - .withPath("rqunjq") - .withContainerName("enx") - .withType("pakdkifmjnnawt"))) - .withSparkConfigProperties(new SparkConfigProperties().withContent("pizruwnpqxpxiw") - .withFilename("ngjsaasi") - .withConfigurationType(ConfigurationType.ARTIFACT)) - .withSparkVersion("kzjv") - .withDefaultSparkLogFolder("iirhgfgrwsd") - .withNodeSize(NodeSize.XLARGE) - .withNodeSizeFamily(NodeSizeFamily.NONE), - new BigDataPoolResourceInfoInner().withLocation("tgplucfota") - .withTags(mapOf("vxwlmzqwmvtxnj", "fhnykzcugs")) - .withProvisioningState("p") - .withAutoScale(new AutoScaleProperties().withMinNodeCount(1764317108) - .withEnabled(true) - .withMaxNodeCount(1182183471)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(357864069).withEnabled(false)) - .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(true) - .withSessionLevelPackagesEnabled(true) - .withCacheSize(1734135140) - .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(true) - .withMinExecutors(305006066) - .withMaxExecutors(1635201406)) - .withSparkEventsFolder("yilflqoiquvrehmr") - .withNodeCount(2121804794) - .withLibraryRequirements(new LibraryRequirements().withContent("ztczytq").withFilename("w")) - .withCustomLibraries(Arrays.asList( - new LibraryInfo().withName("nfprnjletlxs") - .withPath("pddouifamowaziyn") - .withContainerName("lqwzdvpiwhxqsz") - .withType("ajquhuxylrjvmtyg"), - new LibraryInfo().withName("ieyujtvc") - .withPath("cnyxrxmunjd") - .withContainerName("glnkvxlxpagl") - .withType("gkcvkhpzvuq"), - new LibraryInfo().withName("dibgqjxgpnrhgov") - .withPath("pikqmh") - .withContainerName("owjrmzvuporqz") - .withType("dzvkfvxcnqmxq"), - new LibraryInfo().withName("kzsz") - .withPath("iwtglxxhljfpg") - .withContainerName("crmnzhrgmqgjs") - .withType("cbfrm"))) - .withSparkConfigProperties(new SparkConfigProperties().withContent("ousxauzlwvsgmw") - .withFilename("qf") - .withConfigurationType(ConfigurationType.FILE)) - .withSparkVersion("uxmmkjsvthnwp") - .withDefaultSparkLogFolder("ekov") - .withNodeSize(NodeSize.XXLARGE) - .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED))); + new LibraryRequirements().withContent("axcfjpgddtocjjx").withFilename("pmouexhdz")) + .withCustomLibraries(Arrays.asList(new LibraryInfo().withName("eojnxqbzvddn") + .withPath("ndei") + .withContainerName("twnpzaoqvuhrhcf") + .withType("dglmjthjqkwp"))) + .withSparkConfigProperties( + new LibraryRequirements().withContent("dtopbob").withFilename("ghmewuam")) + .withSparkVersion("hrzayvvtpgvdf") + .withDefaultSparkLogFolder("otkftutqxlngx") + .withNodeSize(NodeSize.NONE) + .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA))); model = BinaryData.fromObject(model).toObject(BigDataPoolResourceInfoListResult.class); - Assertions.assertEquals("glka", model.nextLink()); - Assertions.assertEquals("znktwfansnv", model.value().get(0).location()); - Assertions.assertEquals("bmikost", model.value().get(0).tags().get("z")); - Assertions.assertEquals("juj", model.value().get(0).provisioningState()); - Assertions.assertEquals(1707444160, model.value().get(0).autoScale().minNodeCount()); - Assertions.assertEquals(false, model.value().get(0).autoScale().enabled()); - Assertions.assertEquals(1969790254, model.value().get(0).autoScale().maxNodeCount()); - Assertions.assertEquals(1541228545, model.value().get(0).autoPause().delayInMinutes()); - Assertions.assertEquals(true, model.value().get(0).autoPause().enabled()); + Assertions.assertEquals("sntnbybkzgcw", model.nextLink()); + Assertions.assertEquals("ktapspwgcuertu", model.value().get(0).location()); + Assertions.assertEquals("o", model.value().get(0).tags().get("vqwhbmdgbbjfd")); + Assertions.assertEquals("xwrljdouskcqvkoc", model.value().get(0).provisioningState()); + Assertions.assertEquals(1012894603, model.value().get(0).autoScale().minNodeCount()); + Assertions.assertEquals(true, model.value().get(0).autoScale().enabled()); + Assertions.assertEquals(371451274, model.value().get(0).autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-07T16:39:29Z"), model.value().get(0).creationDate()); + Assertions.assertEquals(1299495603, model.value().get(0).autoPause().delayInMinutes()); + Assertions.assertEquals(false, model.value().get(0).autoPause().enabled()); Assertions.assertEquals(true, model.value().get(0).isComputeIsolationEnabled()); - Assertions.assertEquals(true, model.value().get(0).isAutotuneEnabled()); - Assertions.assertEquals(false, model.value().get(0).sessionLevelPackagesEnabled()); - Assertions.assertEquals(130887115, model.value().get(0).cacheSize()); + Assertions.assertEquals(true, model.value().get(0).sessionLevelPackagesEnabled()); + Assertions.assertEquals(1218196264, model.value().get(0).cacheSize()); Assertions.assertEquals(true, model.value().get(0).dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(1626288503, model.value().get(0).dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(267714014, model.value().get(0).dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("kqscazuawxtzx", model.value().get(0).sparkEventsFolder()); - Assertions.assertEquals(1892972656, model.value().get(0).nodeCount()); - Assertions.assertEquals("zxrvxcus", model.value().get(0).libraryRequirements().content()); - Assertions.assertEquals("phai", model.value().get(0).libraryRequirements().filename()); - Assertions.assertEquals("asflvg", model.value().get(0).customLibraries().get(0).name()); - Assertions.assertEquals("zwywako", model.value().get(0).customLibraries().get(0).path()); - Assertions.assertEquals("knsmjblmljhlnymz", model.value().get(0).customLibraries().get(0).containerName()); - Assertions.assertEquals("ryuzcbmqqv", model.value().get(0).customLibraries().get(0).type()); - Assertions.assertEquals("mspofapvuhryl", model.value().get(0).sparkConfigProperties().content()); - Assertions.assertEquals("ofrzgb", model.value().get(0).sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, - model.value().get(0).sparkConfigProperties().configurationType()); - Assertions.assertEquals("mstk", model.value().get(0).sparkVersion()); - Assertions.assertEquals("l", model.value().get(0).defaultSparkLogFolder()); + Assertions.assertEquals("nqpjwnzlljfmpp", model.value().get(0).sparkEventsFolder()); + Assertions.assertEquals(2010421384, model.value().get(0).nodeCount()); + Assertions.assertEquals("sabkyqduujitcjcz", model.value().get(0).libraryRequirements().content()); + Assertions.assertEquals("evndh", model.value().get(0).libraryRequirements().filename()); + Assertions.assertEquals("d", model.value().get(0).customLibraries().get(0).name()); + Assertions.assertEquals("p", model.value().get(0).customLibraries().get(0).path()); + Assertions.assertEquals("bdkvwrwjf", model.value().get(0).customLibraries().get(0).containerName()); + Assertions.assertEquals("hutje", model.value().get(0).customLibraries().get(0).type()); + Assertions.assertEquals("qytbciq", model.value().get(0).sparkConfigProperties().content()); + Assertions.assertEquals("uflmm", model.value().get(0).sparkConfigProperties().filename()); + Assertions.assertEquals("zsm", model.value().get(0).sparkVersion()); + Assertions.assertEquals("mglougpbkw", model.value().get(0).defaultSparkLogFolder()); Assertions.assertEquals(NodeSize.MEDIUM, model.value().get(0).nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_GPU, model.value().get(0).nodeSizeFamily()); + Assertions.assertEquals(NodeSizeFamily.MEMORY_OPTIMIZED, model.value().get(0).nodeSizeFamily()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourcePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourcePropertiesTests.java index 9bc139b0a7d7..e404dcdffb97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourcePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourcePropertiesTests.java @@ -9,12 +9,11 @@ import com.azure.resourcemanager.synapse.fluent.models.LibraryInfo; import com.azure.resourcemanager.synapse.models.AutoPauseProperties; import com.azure.resourcemanager.synapse.models.AutoScaleProperties; -import com.azure.resourcemanager.synapse.models.ConfigurationType; import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; import com.azure.resourcemanager.synapse.models.LibraryRequirements; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; +import java.time.OffsetDateTime; import java.util.Arrays; import org.junit.jupiter.api.Assertions; @@ -22,93 +21,94 @@ public final class BigDataPoolResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BigDataPoolResourceProperties model = BinaryData.fromString( - "{\"provisioningState\":\"q\",\"autoScale\":{\"minNodeCount\":155937212,\"enabled\":true,\"maxNodeCount\":1001251604},\"creationDate\":\"2021-04-29T16:57Z\",\"autoPause\":{\"delayInMinutes\":762506077,\"enabled\":false},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":199675617,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":811304130,\"maxExecutors\":1951649855},\"sparkEventsFolder\":\"utmzlbiojlvfhrbb\",\"nodeCount\":1573372478,\"libraryRequirements\":{\"time\":\"2021-10-25T03:38:05Z\",\"content\":\"wyyu\",\"filename\":\"ochpprpr\"},\"customLibraries\":[{\"name\":\"k\",\"path\":\"zejnhl\",\"containerName\":\"pbzpcpiljhahz\",\"uploadedTimestamp\":\"2021-03-17T10:23:50Z\",\"type\":\"ndbnwieh\",\"provisioningStatus\":\"ewjwiuubw\",\"creatorId\":\"qsfapaqt\"}],\"sparkConfigProperties\":{\"time\":\"2021-11-03T02:23:27Z\",\"content\":\"wexjkmfxapjwogq\",\"filename\":\"o\",\"configurationType\":\"Artifact\"},\"sparkVersion\":\"cdabtqwpwya\",\"defaultSparkLogFolder\":\"zasqbucljgkyexao\",\"nodeSize\":\"Medium\",\"nodeSizeFamily\":\"None\",\"lastSucceededTimestamp\":\"2021-11-04T08:52:55Z\"}") + "{\"provisioningState\":\"kknryrtihf\",\"autoScale\":{\"minNodeCount\":1273684509,\"enabled\":true,\"maxNodeCount\":322305671},\"creationDate\":\"2021-05-13T04:37:04Z\",\"autoPause\":{\"delayInMinutes\":706884387,\"enabled\":false},\"isComputeIsolationEnabled\":true,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":1526885086,\"dynamicExecutorAllocation\":{\"enabled\":false},\"sparkEventsFolder\":\"hdbihan\",\"nodeCount\":1908195338,\"libraryRequirements\":{\"time\":\"2021-01-11T10:02:32Z\",\"content\":\"y\",\"filename\":\"git\"},\"customLibraries\":[{\"name\":\"abifpikxwczbys\",\"path\":\"pqxu\",\"containerName\":\"vyq\",\"uploadedTimestamp\":\"2021-07-08T16:34:06Z\",\"type\":\"ybrk\",\"provisioningStatus\":\"dumjgrtfwvuk\",\"creatorId\":\"audccsnhs\"},{\"name\":\"nyejhkryhtnap\",\"path\":\"wlokjyem\",\"containerName\":\"vnipjox\",\"uploadedTimestamp\":\"2020-12-27T04:20:57Z\",\"type\":\"hgejspodma\",\"provisioningStatus\":\"zyde\",\"creatorId\":\"jwyahuxinpmqnja\"},{\"name\":\"ixjsprozvcputeg\",\"path\":\"wmfdatscmdvpjhul\",\"containerName\":\"uvm\",\"uploadedTimestamp\":\"2021-08-30T14:27:09Z\",\"type\":\"k\",\"provisioningStatus\":\"f\",\"creatorId\":\"iodjp\"},{\"name\":\"w\",\"path\":\"dpvwryoqpsoaccta\",\"containerName\":\"kljla\",\"uploadedTimestamp\":\"2021-06-15T07:28:27Z\",\"type\":\"yffdfdos\",\"provisioningStatus\":\"expa\",\"creatorId\":\"akhmsbzjhcrz\"}],\"sparkConfigProperties\":{\"time\":\"2021-11-09T02:37:57Z\",\"content\":\"lxaolthqtrgqjbp\",\"filename\":\"fsinzgvfcjrwzoxx\"},\"sparkVersion\":\"felluwfzitonpe\",\"defaultSparkLogFolder\":\"pjkjlxofpdv\",\"nodeSize\":\"Small\",\"nodeSizeFamily\":\"HardwareAcceleratedGPU\",\"lastSucceededTimestamp\":\"2021-07-25T03:58:58Z\"}") .toObject(BigDataPoolResourceProperties.class); - Assertions.assertEquals("q", model.provisioningState()); - Assertions.assertEquals(155937212, model.autoScale().minNodeCount()); + Assertions.assertEquals("kknryrtihf", model.provisioningState()); + Assertions.assertEquals(1273684509, model.autoScale().minNodeCount()); Assertions.assertEquals(true, model.autoScale().enabled()); - Assertions.assertEquals(1001251604, model.autoScale().maxNodeCount()); - Assertions.assertEquals(762506077, model.autoPause().delayInMinutes()); + Assertions.assertEquals(322305671, model.autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-13T04:37:04Z"), model.creationDate()); + Assertions.assertEquals(706884387, model.autoPause().delayInMinutes()); Assertions.assertEquals(false, model.autoPause().enabled()); - Assertions.assertEquals(false, model.isComputeIsolationEnabled()); - Assertions.assertEquals(false, model.isAutotuneEnabled()); - Assertions.assertEquals(true, model.sessionLevelPackagesEnabled()); - Assertions.assertEquals(199675617, model.cacheSize()); + Assertions.assertEquals(true, model.isComputeIsolationEnabled()); + Assertions.assertEquals(false, model.sessionLevelPackagesEnabled()); + Assertions.assertEquals(1526885086, model.cacheSize()); Assertions.assertEquals(false, model.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(811304130, model.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1951649855, model.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("utmzlbiojlvfhrbb", model.sparkEventsFolder()); - Assertions.assertEquals(1573372478, model.nodeCount()); - Assertions.assertEquals("wyyu", model.libraryRequirements().content()); - Assertions.assertEquals("ochpprpr", model.libraryRequirements().filename()); - Assertions.assertEquals("k", model.customLibraries().get(0).name()); - Assertions.assertEquals("zejnhl", model.customLibraries().get(0).path()); - Assertions.assertEquals("pbzpcpiljhahz", model.customLibraries().get(0).containerName()); - Assertions.assertEquals("ndbnwieh", model.customLibraries().get(0).type()); - Assertions.assertEquals("wexjkmfxapjwogq", model.sparkConfigProperties().content()); - Assertions.assertEquals("o", model.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.sparkConfigProperties().configurationType()); - Assertions.assertEquals("cdabtqwpwya", model.sparkVersion()); - Assertions.assertEquals("zasqbucljgkyexao", model.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.MEDIUM, model.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.NONE, model.nodeSizeFamily()); + Assertions.assertEquals("hdbihan", model.sparkEventsFolder()); + Assertions.assertEquals(1908195338, model.nodeCount()); + Assertions.assertEquals("y", model.libraryRequirements().content()); + Assertions.assertEquals("git", model.libraryRequirements().filename()); + Assertions.assertEquals("abifpikxwczbys", model.customLibraries().get(0).name()); + Assertions.assertEquals("pqxu", model.customLibraries().get(0).path()); + Assertions.assertEquals("vyq", model.customLibraries().get(0).containerName()); + Assertions.assertEquals("ybrk", model.customLibraries().get(0).type()); + Assertions.assertEquals("lxaolthqtrgqjbp", model.sparkConfigProperties().content()); + Assertions.assertEquals("fsinzgvfcjrwzoxx", model.sparkConfigProperties().filename()); + Assertions.assertEquals("felluwfzitonpe", model.sparkVersion()); + Assertions.assertEquals("pjkjlxofpdv", model.defaultSparkLogFolder()); + Assertions.assertEquals(NodeSize.SMALL, model.nodeSize()); + Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_GPU, model.nodeSizeFamily()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BigDataPoolResourceProperties model = new BigDataPoolResourceProperties().withProvisioningState("q") + BigDataPoolResourceProperties model = new BigDataPoolResourceProperties().withProvisioningState("kknryrtihf") .withAutoScale( - new AutoScaleProperties().withMinNodeCount(155937212).withEnabled(true).withMaxNodeCount(1001251604)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(762506077).withEnabled(false)) - .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(false) - .withSessionLevelPackagesEnabled(true) - .withCacheSize(199675617) - .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(false) - .withMinExecutors(811304130) - .withMaxExecutors(1951649855)) - .withSparkEventsFolder("utmzlbiojlvfhrbb") - .withNodeCount(1573372478) - .withLibraryRequirements(new LibraryRequirements().withContent("wyyu").withFilename("ochpprpr")) - .withCustomLibraries(Arrays.asList(new LibraryInfo().withName("k") - .withPath("zejnhl") - .withContainerName("pbzpcpiljhahz") - .withType("ndbnwieh"))) - .withSparkConfigProperties(new SparkConfigProperties().withContent("wexjkmfxapjwogq") - .withFilename("o") - .withConfigurationType(ConfigurationType.ARTIFACT)) - .withSparkVersion("cdabtqwpwya") - .withDefaultSparkLogFolder("zasqbucljgkyexao") - .withNodeSize(NodeSize.MEDIUM) - .withNodeSizeFamily(NodeSizeFamily.NONE); + new AutoScaleProperties().withMinNodeCount(1273684509).withEnabled(true).withMaxNodeCount(322305671)) + .withCreationDate(OffsetDateTime.parse("2021-05-13T04:37:04Z")) + .withAutoPause(new AutoPauseProperties().withDelayInMinutes(706884387).withEnabled(false)) + .withIsComputeIsolationEnabled(true) + .withSessionLevelPackagesEnabled(false) + .withCacheSize(1526885086) + .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(false)) + .withSparkEventsFolder("hdbihan") + .withNodeCount(1908195338) + .withLibraryRequirements(new LibraryRequirements().withContent("y").withFilename("git")) + .withCustomLibraries(Arrays.asList( + new LibraryInfo().withName("abifpikxwczbys").withPath("pqxu").withContainerName("vyq").withType("ybrk"), + new LibraryInfo().withName("nyejhkryhtnap") + .withPath("wlokjyem") + .withContainerName("vnipjox") + .withType("hgejspodma"), + new LibraryInfo().withName("ixjsprozvcputeg") + .withPath("wmfdatscmdvpjhul") + .withContainerName("uvm") + .withType("k"), + new LibraryInfo().withName("w") + .withPath("dpvwryoqpsoaccta") + .withContainerName("kljla") + .withType("yffdfdos"))) + .withSparkConfigProperties( + new LibraryRequirements().withContent("lxaolthqtrgqjbp").withFilename("fsinzgvfcjrwzoxx")) + .withSparkVersion("felluwfzitonpe") + .withDefaultSparkLogFolder("pjkjlxofpdv") + .withNodeSize(NodeSize.SMALL) + .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_GPU); model = BinaryData.fromObject(model).toObject(BigDataPoolResourceProperties.class); - Assertions.assertEquals("q", model.provisioningState()); - Assertions.assertEquals(155937212, model.autoScale().minNodeCount()); + Assertions.assertEquals("kknryrtihf", model.provisioningState()); + Assertions.assertEquals(1273684509, model.autoScale().minNodeCount()); Assertions.assertEquals(true, model.autoScale().enabled()); - Assertions.assertEquals(1001251604, model.autoScale().maxNodeCount()); - Assertions.assertEquals(762506077, model.autoPause().delayInMinutes()); + Assertions.assertEquals(322305671, model.autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-13T04:37:04Z"), model.creationDate()); + Assertions.assertEquals(706884387, model.autoPause().delayInMinutes()); Assertions.assertEquals(false, model.autoPause().enabled()); - Assertions.assertEquals(false, model.isComputeIsolationEnabled()); - Assertions.assertEquals(false, model.isAutotuneEnabled()); - Assertions.assertEquals(true, model.sessionLevelPackagesEnabled()); - Assertions.assertEquals(199675617, model.cacheSize()); + Assertions.assertEquals(true, model.isComputeIsolationEnabled()); + Assertions.assertEquals(false, model.sessionLevelPackagesEnabled()); + Assertions.assertEquals(1526885086, model.cacheSize()); Assertions.assertEquals(false, model.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(811304130, model.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1951649855, model.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("utmzlbiojlvfhrbb", model.sparkEventsFolder()); - Assertions.assertEquals(1573372478, model.nodeCount()); - Assertions.assertEquals("wyyu", model.libraryRequirements().content()); - Assertions.assertEquals("ochpprpr", model.libraryRequirements().filename()); - Assertions.assertEquals("k", model.customLibraries().get(0).name()); - Assertions.assertEquals("zejnhl", model.customLibraries().get(0).path()); - Assertions.assertEquals("pbzpcpiljhahz", model.customLibraries().get(0).containerName()); - Assertions.assertEquals("ndbnwieh", model.customLibraries().get(0).type()); - Assertions.assertEquals("wexjkmfxapjwogq", model.sparkConfigProperties().content()); - Assertions.assertEquals("o", model.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.sparkConfigProperties().configurationType()); - Assertions.assertEquals("cdabtqwpwya", model.sparkVersion()); - Assertions.assertEquals("zasqbucljgkyexao", model.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.MEDIUM, model.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.NONE, model.nodeSizeFamily()); + Assertions.assertEquals("hdbihan", model.sparkEventsFolder()); + Assertions.assertEquals(1908195338, model.nodeCount()); + Assertions.assertEquals("y", model.libraryRequirements().content()); + Assertions.assertEquals("git", model.libraryRequirements().filename()); + Assertions.assertEquals("abifpikxwczbys", model.customLibraries().get(0).name()); + Assertions.assertEquals("pqxu", model.customLibraries().get(0).path()); + Assertions.assertEquals("vyq", model.customLibraries().get(0).containerName()); + Assertions.assertEquals("ybrk", model.customLibraries().get(0).type()); + Assertions.assertEquals("lxaolthqtrgqjbp", model.sparkConfigProperties().content()); + Assertions.assertEquals("fsinzgvfcjrwzoxx", model.sparkConfigProperties().filename()); + Assertions.assertEquals("felluwfzitonpe", model.sparkVersion()); + Assertions.assertEquals("pjkjlxofpdv", model.defaultSparkLogFolder()); + Assertions.assertEquals(NodeSize.SMALL, model.nodeSize()); + Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_GPU, model.nodeSizeFamily()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateMockTests.java index b8dc571500cf..cc5c70dd8db8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateMockTests.java @@ -14,12 +14,10 @@ import com.azure.resourcemanager.synapse.models.AutoPauseProperties; import com.azure.resourcemanager.synapse.models.AutoScaleProperties; import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; -import com.azure.resourcemanager.synapse.models.ConfigurationType; import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; import com.azure.resourcemanager.synapse.models.LibraryRequirements; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.Arrays; @@ -33,7 +31,7 @@ public final class BigDataPoolsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"autoScale\":{\"minNodeCount\":970081145,\"enabled\":true,\"maxNodeCount\":208262424},\"creationDate\":\"2021-08-08T10:45:35Z\",\"autoPause\":{\"delayInMinutes\":1219269924,\"enabled\":true},\"isComputeIsolationEnabled\":true,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":1721286696,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":572095001,\"maxExecutors\":1655561193},\"sparkEventsFolder\":\"ccpumddhgajkr\",\"nodeCount\":92711553,\"libraryRequirements\":{\"time\":\"2021-08-21T23:20:55Z\",\"content\":\"c\",\"filename\":\"vafnbfbqvenq\"},\"customLibraries\":[{\"name\":\"kordw\",\"path\":\"jpecwzvcmb\",\"containerName\":\"dluday\",\"uploadedTimestamp\":\"2021-01-05T20:02:11Z\",\"type\":\"idwmt\",\"provisioningStatus\":\"bvtzldzchub\",\"creatorId\":\"wnlzuvi\"}],\"sparkConfigProperties\":{\"time\":\"2021-06-12T17:05:17Z\",\"content\":\"frbzakp\",\"filename\":\"cqra\",\"configurationType\":\"File\"},\"sparkVersion\":\"psucmximcwqxyn\",\"defaultSparkLogFolder\":\"gs\",\"nodeSize\":\"Medium\",\"nodeSizeFamily\":\"HardwareAcceleratedGPU\",\"lastSucceededTimestamp\":\"2021-03-11T21:02:22Z\"},\"location\":\"bgngcrusxhirc\",\"tags\":{\"lkvuznadvh\":\"vsvkkjbjolpyo\",\"gowxxbhtp\":\"lieo\"},\"id\":\"yioqe\",\"name\":\"qwtqszzgyksik\",\"type\":\"wanvmwdvgjqcrbko\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"autoScale\":{\"minNodeCount\":300403607,\"enabled\":true,\"maxNodeCount\":1674325825},\"creationDate\":\"2021-08-09T12:56:11Z\",\"autoPause\":{\"delayInMinutes\":594386251,\"enabled\":false},\"isComputeIsolationEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":920780247,\"dynamicExecutorAllocation\":{\"enabled\":false},\"sparkEventsFolder\":\"rmmkyupiju\",\"nodeCount\":1801914580,\"libraryRequirements\":{\"time\":\"2021-04-30T04:51:05Z\",\"content\":\"kfq\",\"filename\":\"kemyil\"},\"customLibraries\":[{\"name\":\"jascowvfdjkpd\",\"path\":\"hlkks\",\"containerName\":\"gzv\",\"uploadedTimestamp\":\"2021-01-08T19:20:23Z\",\"type\":\"dkz\",\"provisioningStatus\":\"nwsithuqolyahluq\",\"creatorId\":\"ulsutrjbhxy\"},{\"name\":\"hyqezvqq\",\"path\":\"drftbcvexreuquo\",\"containerName\":\"ljvfwhreagk\",\"uploadedTimestamp\":\"2021-04-12T13:34:22Z\",\"type\":\"rqtvbczsulmdgglm\",\"provisioningStatus\":\"jpfseykg\",\"creatorId\":\"ngpszngafpg\"},{\"name\":\"kvec\",\"path\":\"jcngoadyed\",\"containerName\":\"rgjfoknubnoi\",\"uploadedTimestamp\":\"2021-02-07T18:56:19Z\",\"type\":\"ztrgdgxvcoq\",\"provisioningStatus\":\"sw\",\"creatorId\":\"yxp\"}],\"sparkConfigProperties\":{\"time\":\"2021-07-29T16:41:47Z\",\"content\":\"ialwv\",\"filename\":\"buhzacaq\"},\"sparkVersion\":\"ltcoqc\",\"defaultSparkLogFolder\":\"pdsxzakuejkm\",\"nodeSize\":\"XLarge\",\"nodeSizeFamily\":\"None\",\"lastSucceededTimestamp\":\"2021-05-06T02:04:05Z\"},\"location\":\"fqcvovj\",\"tags\":{\"e\":\"csjml\",\"iuxegth\":\"yeji\",\"erppt\":\"rtudawlpjfel\"},\"id\":\"bgqnz\",\"name\":\"nhii\",\"type\":\"ialwc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -43,74 +41,62 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); BigDataPoolResourceInfo response = manager.bigDataPools() - .define("dckixspsaigavkmv") - .withRegion("arhqt") - .withExistingWorkspace("hvpxjhxz", "bfjzabbwzgvzuaix") - .withTags(mapOf("pchggryelgfy", "azekdzdzffzjwzts")) - .withProvisioningState("erejrkpzj") + .define("bkjbz") + .withRegion("zdfwrsofpltdbm") + .withExistingWorkspace("vnwqjwgo", "nlejjjkxybwf") + .withTags( + mapOf("ujwouhdawsi", "rhvhfnracwnpqigt", "bxsjybvitvqkj", "rb", "umtggmuwdchozfn", "az", "xn", "fexl")) + .withProvisioningState("svkzykj") .withAutoScale( - new AutoScaleProperties().withMinNodeCount(572681365).withEnabled(true).withMaxNodeCount(1655893027)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(725496177).withEnabled(true)) + new AutoScaleProperties().withMinNodeCount(1399130585).withEnabled(false).withMaxNodeCount(1717861767)) + .withCreationDate(OffsetDateTime.parse("2021-08-03T03:30:16Z")) + .withAutoPause(new AutoPauseProperties().withDelayInMinutes(877780052).withEnabled(true)) .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(false) .withSessionLevelPackagesEnabled(true) - .withCacheSize(309327189) - .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(true) - .withMinExecutors(1468148143) - .withMaxExecutors(925533048)) - .withSparkEventsFolder("rab") - .withNodeCount(2125247115) - .withLibraryRequirements(new LibraryRequirements().withContent("wpjhspboxhifppsk").withFilename("s")) - .withCustomLibraries(Arrays.asList( - new LibraryInfo().withName("mifjuajxww") - .withPath("mmp") - .withContainerName("lyuqvcmlaexb") - .withType("fpnezsjzayml"), - new LibraryInfo().withName("gi").withPath("omw").withContainerName("nghojov").withType("micjixxfsf"), - new LibraryInfo().withName("pfgsvbbvaqdljnp") - .withPath("l") - .withContainerName("rdetawevxehuekdx") - .withType("dovbrbler"))) - .withSparkConfigProperties(new SparkConfigProperties().withContent("djccxwbpwyykdi") - .withFilename("zlrz") - .withConfigurationType(ConfigurationType.FILE)) - .withSparkVersion("dn") - .withDefaultSparkLogFolder("mjqmv") - .withNodeSize(NodeSize.MEDIUM) - .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_GPU) + .withCacheSize(1578351643) + .withDynamicExecutorAllocation(new DynamicExecutorAllocation().withEnabled(false)) + .withSparkEventsFolder("pkuwxeoioj") + .withNodeCount(934383285) + .withLibraryRequirements(new LibraryRequirements().withContent("jzwfb").withFilename("aykmmf")) + .withCustomLibraries(Arrays.asList(new LibraryInfo().withName("wxrzxmdewsrsxkrp") + .withPath("jazejwwviyoyp") + .withContainerName("hbrnnhjx") + .withType("hqkb"))) + .withSparkConfigProperties(new LibraryRequirements().withContent("ziu").withFilename("bzkkd")) + .withSparkVersion("hqsycljselp") + .withDefaultSparkLogFolder("bafvafhlbylcc") + .withNodeSize(NodeSize.LARGE) + .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED) .withForce(false) .create(); - Assertions.assertEquals("bgngcrusxhirc", response.location()); - Assertions.assertEquals("vsvkkjbjolpyo", response.tags().get("lkvuznadvh")); + Assertions.assertEquals("fqcvovj", response.location()); + Assertions.assertEquals("csjml", response.tags().get("e")); Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(970081145, response.autoScale().minNodeCount()); + Assertions.assertEquals(300403607, response.autoScale().minNodeCount()); Assertions.assertEquals(true, response.autoScale().enabled()); - Assertions.assertEquals(208262424, response.autoScale().maxNodeCount()); - Assertions.assertEquals(1219269924, response.autoPause().delayInMinutes()); - Assertions.assertEquals(true, response.autoPause().enabled()); - Assertions.assertEquals(true, response.isComputeIsolationEnabled()); - Assertions.assertEquals(false, response.isAutotuneEnabled()); + Assertions.assertEquals(1674325825, response.autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T12:56:11Z"), response.creationDate()); + Assertions.assertEquals(594386251, response.autoPause().delayInMinutes()); + Assertions.assertEquals(false, response.autoPause().enabled()); + Assertions.assertEquals(false, response.isComputeIsolationEnabled()); Assertions.assertEquals(true, response.sessionLevelPackagesEnabled()); - Assertions.assertEquals(1721286696, response.cacheSize()); + Assertions.assertEquals(920780247, response.cacheSize()); Assertions.assertEquals(false, response.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(572095001, response.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1655561193, response.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("ccpumddhgajkr", response.sparkEventsFolder()); - Assertions.assertEquals(92711553, response.nodeCount()); - Assertions.assertEquals("c", response.libraryRequirements().content()); - Assertions.assertEquals("vafnbfbqvenq", response.libraryRequirements().filename()); - Assertions.assertEquals("kordw", response.customLibraries().get(0).name()); - Assertions.assertEquals("jpecwzvcmb", response.customLibraries().get(0).path()); - Assertions.assertEquals("dluday", response.customLibraries().get(0).containerName()); - Assertions.assertEquals("idwmt", response.customLibraries().get(0).type()); - Assertions.assertEquals("frbzakp", response.sparkConfigProperties().content()); - Assertions.assertEquals("cqra", response.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, response.sparkConfigProperties().configurationType()); - Assertions.assertEquals("psucmximcwqxyn", response.sparkVersion()); - Assertions.assertEquals("gs", response.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.MEDIUM, response.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_GPU, response.nodeSizeFamily()); + Assertions.assertEquals("rmmkyupiju", response.sparkEventsFolder()); + Assertions.assertEquals(1801914580, response.nodeCount()); + Assertions.assertEquals("kfq", response.libraryRequirements().content()); + Assertions.assertEquals("kemyil", response.libraryRequirements().filename()); + Assertions.assertEquals("jascowvfdjkpd", response.customLibraries().get(0).name()); + Assertions.assertEquals("hlkks", response.customLibraries().get(0).path()); + Assertions.assertEquals("gzv", response.customLibraries().get(0).containerName()); + Assertions.assertEquals("dkz", response.customLibraries().get(0).type()); + Assertions.assertEquals("ialwv", response.sparkConfigProperties().content()); + Assertions.assertEquals("buhzacaq", response.sparkConfigProperties().filename()); + Assertions.assertEquals("ltcoqc", response.sparkVersion()); + Assertions.assertEquals("pdsxzakuejkm", response.defaultSparkLogFolder()); + Assertions.assertEquals(NodeSize.XLARGE, response.nodeSize()); + Assertions.assertEquals(NodeSizeFamily.NONE, response.nodeSizeFamily()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteMockTests.java index 5860406b3de1..ea2f950fc51b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteMockTests.java @@ -10,21 +10,15 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.NodeSize; -import com.azure.resourcemanager.synapse.models.NodeSizeFamily; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; public final class BigDataPoolsDeleteMockTests { @Test public void testDelete() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"autoScale\":{\"minNodeCount\":1798907732,\"enabled\":true,\"maxNodeCount\":1590703182},\"creationDate\":\"2021-05-21T09:36:31Z\",\"autoPause\":{\"delayInMinutes\":57018790,\"enabled\":true},\"isComputeIsolationEnabled\":true,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":276745194,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":407535743,\"maxExecutors\":1195854621},\"sparkEventsFolder\":\"huy\",\"nodeCount\":263838368,\"libraryRequirements\":{\"time\":\"2021-04-28T19:41:23Z\",\"content\":\"lnrj\",\"filename\":\"zdbuzici\"},\"customLibraries\":[{\"name\":\"qvgpnewuh\",\"path\":\"wjnoxuo\",\"containerName\":\"fnres\",\"uploadedTimestamp\":\"2021-06-28T19:51:59Z\",\"type\":\"gckncjmg\",\"provisioningStatus\":\"nvbt\",\"creatorId\":\"xfmj\"},{\"name\":\"jnhj\",\"path\":\"qllbsupubdxc\",\"containerName\":\"lhzwh\",\"uploadedTimestamp\":\"2021-03-30T00:05:16Z\",\"type\":\"bosjjfd\",\"provisioningStatus\":\"hrjqfyaytvslyek\",\"creatorId\":\"niuarlcjiwgsxfai\"},{\"name\":\"wd\",\"path\":\"jjgnfgr\",\"containerName\":\"barc\",\"uploadedTimestamp\":\"2021-05-24T07:18:13Z\",\"type\":\"fzqsymjwenjcytes\",\"provisioningStatus\":\"u\",\"creatorId\":\"tfodq\"},{\"name\":\"auzmzivrtrfzhhe\",\"path\":\"hjud\",\"containerName\":\"yy\",\"uploadedTimestamp\":\"2021-07-24T23:50:14Z\",\"type\":\"ahswtvdkxb\",\"provisioningStatus\":\"sgfenffdxb\",\"creatorId\":\"fqjchivdrij\"}],\"sparkConfigProperties\":{\"time\":\"2021-10-08T10:49:37Z\",\"content\":\"muvardlmzjot\",\"filename\":\"rmuhcuhtuzlx\",\"configurationType\":\"File\"},\"sparkVersion\":\"pgarpfctw\",\"defaultSparkLogFolder\":\"pczdojqyvze\",\"nodeSize\":\"Small\",\"nodeSizeFamily\":\"HardwareAcceleratedFPGA\",\"lastSucceededTimestamp\":\"2021-06-13T05:52:12Z\"},\"location\":\"jqyowaadc\",\"tags\":{\"undtsew\":\"za\"},\"id\":\"aupwhlzyckrem\",\"name\":\"jlm\",\"type\":\"vdorsirx\"}"; + String responseStr = "\"datawispkxk\""; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,38 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - BigDataPoolResourceInfo response - = manager.bigDataPools().delete("zkgtzqn", "qsttewuvcysjeuf", "x", com.azure.core.util.Context.NONE); + Object response + = manager.bigDataPools().delete("hvyeldotj", "dkwisw", "kukjtasb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("jqyowaadc", response.location()); - Assertions.assertEquals("za", response.tags().get("undtsew")); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(1798907732, response.autoScale().minNodeCount()); - Assertions.assertEquals(true, response.autoScale().enabled()); - Assertions.assertEquals(1590703182, response.autoScale().maxNodeCount()); - Assertions.assertEquals(57018790, response.autoPause().delayInMinutes()); - Assertions.assertEquals(true, response.autoPause().enabled()); - Assertions.assertEquals(true, response.isComputeIsolationEnabled()); - Assertions.assertEquals(false, response.isAutotuneEnabled()); - Assertions.assertEquals(true, response.sessionLevelPackagesEnabled()); - Assertions.assertEquals(276745194, response.cacheSize()); - Assertions.assertEquals(false, response.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(407535743, response.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1195854621, response.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("huy", response.sparkEventsFolder()); - Assertions.assertEquals(263838368, response.nodeCount()); - Assertions.assertEquals("lnrj", response.libraryRequirements().content()); - Assertions.assertEquals("zdbuzici", response.libraryRequirements().filename()); - Assertions.assertEquals("qvgpnewuh", response.customLibraries().get(0).name()); - Assertions.assertEquals("wjnoxuo", response.customLibraries().get(0).path()); - Assertions.assertEquals("fnres", response.customLibraries().get(0).containerName()); - Assertions.assertEquals("gckncjmg", response.customLibraries().get(0).type()); - Assertions.assertEquals("muvardlmzjot", response.sparkConfigProperties().content()); - Assertions.assertEquals("rmuhcuhtuzlx", response.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, response.sparkConfigProperties().configurationType()); - Assertions.assertEquals("pgarpfctw", response.sparkVersion()); - Assertions.assertEquals("pczdojqyvze", response.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.SMALL, response.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, response.nodeSizeFamily()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetWithResponseMockTests.java index ceb3b309e5ab..9804697cc5c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetWithResponseMockTests.java @@ -11,7 +11,6 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; -import com.azure.resourcemanager.synapse.models.ConfigurationType; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; import java.nio.charset.StandardCharsets; @@ -24,7 +23,7 @@ public final class BigDataPoolsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"zihacen\",\"autoScale\":{\"minNodeCount\":1923513203,\"enabled\":true,\"maxNodeCount\":1229590421},\"creationDate\":\"2021-01-19T05:50:44Z\",\"autoPause\":{\"delayInMinutes\":1597398872,\"enabled\":true},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":true,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":667043908,\"dynamicExecutorAllocation\":{\"enabled\":true,\"minExecutors\":649568800,\"maxExecutors\":1816529038},\"sparkEventsFolder\":\"wyrkbrehzlrynjpc\",\"nodeCount\":1259275397,\"libraryRequirements\":{\"time\":\"2021-04-02T00:33:46Z\",\"content\":\"lr\",\"filename\":\"ubowuywevtj\"},\"customLibraries\":[{\"name\":\"kmwlaok\",\"path\":\"ni\",\"containerName\":\"xgucbmtredscnn\",\"uploadedTimestamp\":\"2021-01-25T21:50:17Z\",\"type\":\"yyuvtzrxzhclec\",\"provisioningStatus\":\"tzqzcloy\",\"creatorId\":\"u\"},{\"name\":\"idhz\",\"path\":\"re\",\"containerName\":\"zsdtm\",\"uploadedTimestamp\":\"2021-07-01T19:30:51Z\",\"type\":\"r\",\"provisioningStatus\":\"lb\",\"creatorId\":\"ychakvy\"},{\"name\":\"bqvum\",\"path\":\"qj\",\"containerName\":\"uepm\",\"uploadedTimestamp\":\"2021-10-22T05:03:01Z\",\"type\":\"zlpqmpftxefvulb\",\"provisioningStatus\":\"rtux\",\"creatorId\":\"rhfcaeooifqdyw\"},{\"name\":\"lobha\",\"path\":\"momfecorkfroc\",\"containerName\":\"mx\",\"uploadedTimestamp\":\"2021-10-24T15:46:41Z\",\"type\":\"zezbjes\",\"provisioningStatus\":\"slurbqfygpny\",\"creatorId\":\"dzuqscag\"}],\"sparkConfigProperties\":{\"time\":\"2021-07-23T05:39:23Z\",\"content\":\"prsytqz\",\"filename\":\"lhmgwfniv\",\"configurationType\":\"File\"},\"sparkVersion\":\"duiolh\",\"defaultSparkLogFolder\":\"qvpbfjpoqzucfzl\",\"nodeSize\":\"Medium\",\"nodeSizeFamily\":\"MemoryOptimized\",\"lastSucceededTimestamp\":\"2021-10-02T11:22:22Z\"},\"location\":\"rbormvhvzie\",\"tags\":{\"gmnwsvhbn\":\"rnqujywzcqy\",\"jtobdrrp\":\"qiwy\"},\"id\":\"rehkunsbfjhh\",\"name\":\"w\",\"type\":\"pkvegeatt\"}"; + = "{\"properties\":{\"provisioningState\":\"zhomewjjstliu\",\"autoScale\":{\"minNodeCount\":1890150004,\"enabled\":true,\"maxNodeCount\":409167617},\"creationDate\":\"2021-07-27T23:47:28Z\",\"autoPause\":{\"delayInMinutes\":1747041970,\"enabled\":true},\"isComputeIsolationEnabled\":true,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":1931817911,\"dynamicExecutorAllocation\":{\"enabled\":false},\"sparkEventsFolder\":\"kxrx\",\"nodeCount\":879177175,\"libraryRequirements\":{\"time\":\"2021-11-22T19:16:48Z\",\"content\":\"g\",\"filename\":\"qljnqkhychoco\"},\"customLibraries\":[{\"name\":\"hurql\",\"path\":\"ffaweyur\",\"containerName\":\"hy\",\"uploadedTimestamp\":\"2021-09-22T18:28:29Z\",\"type\":\"av\",\"provisioningStatus\":\"qdbrxmrgc\",\"creatorId\":\"apx\"}],\"sparkConfigProperties\":{\"time\":\"2021-01-07T08:52:04Z\",\"content\":\"j\",\"filename\":\"ajb\"},\"sparkVersion\":\"cgduusio\",\"defaultSparkLogFolder\":\"blevpmcluj\",\"nodeSize\":\"XXLarge\",\"nodeSizeFamily\":\"HardwareAcceleratedFPGA\",\"lastSucceededTimestamp\":\"2021-03-12T19:23:15Z\"},\"location\":\"gsjgkzzlta\",\"tags\":{\"qsczpgvdwnapfdqw\":\"zffovwmbjl\"},\"id\":\"wf\",\"name\":\"ptnuwjtkschgc\",\"type\":\"qyhleseyq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,38 +33,35 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); BigDataPoolResourceInfo response = manager.bigDataPools() - .getWithResponse("fleev", "oqayrehjuqwv", "pxrl", com.azure.core.util.Context.NONE) + .getWithResponse("ahhxhqfaqnvzoqg", "ipemchgavscz", "ejdtxptl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rbormvhvzie", response.location()); - Assertions.assertEquals("rnqujywzcqy", response.tags().get("gmnwsvhbn")); - Assertions.assertEquals("zihacen", response.provisioningState()); - Assertions.assertEquals(1923513203, response.autoScale().minNodeCount()); + Assertions.assertEquals("gsjgkzzlta", response.location()); + Assertions.assertEquals("zffovwmbjl", response.tags().get("qsczpgvdwnapfdqw")); + Assertions.assertEquals("zhomewjjstliu", response.provisioningState()); + Assertions.assertEquals(1890150004, response.autoScale().minNodeCount()); Assertions.assertEquals(true, response.autoScale().enabled()); - Assertions.assertEquals(1229590421, response.autoScale().maxNodeCount()); - Assertions.assertEquals(1597398872, response.autoPause().delayInMinutes()); + Assertions.assertEquals(409167617, response.autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-27T23:47:28Z"), response.creationDate()); + Assertions.assertEquals(1747041970, response.autoPause().delayInMinutes()); Assertions.assertEquals(true, response.autoPause().enabled()); - Assertions.assertEquals(false, response.isComputeIsolationEnabled()); - Assertions.assertEquals(true, response.isAutotuneEnabled()); + Assertions.assertEquals(true, response.isComputeIsolationEnabled()); Assertions.assertEquals(true, response.sessionLevelPackagesEnabled()); - Assertions.assertEquals(667043908, response.cacheSize()); - Assertions.assertEquals(true, response.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(649568800, response.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1816529038, response.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("wyrkbrehzlrynjpc", response.sparkEventsFolder()); - Assertions.assertEquals(1259275397, response.nodeCount()); - Assertions.assertEquals("lr", response.libraryRequirements().content()); - Assertions.assertEquals("ubowuywevtj", response.libraryRequirements().filename()); - Assertions.assertEquals("kmwlaok", response.customLibraries().get(0).name()); - Assertions.assertEquals("ni", response.customLibraries().get(0).path()); - Assertions.assertEquals("xgucbmtredscnn", response.customLibraries().get(0).containerName()); - Assertions.assertEquals("yyuvtzrxzhclec", response.customLibraries().get(0).type()); - Assertions.assertEquals("prsytqz", response.sparkConfigProperties().content()); - Assertions.assertEquals("lhmgwfniv", response.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, response.sparkConfigProperties().configurationType()); - Assertions.assertEquals("duiolh", response.sparkVersion()); - Assertions.assertEquals("qvpbfjpoqzucfzl", response.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.MEDIUM, response.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.MEMORY_OPTIMIZED, response.nodeSizeFamily()); + Assertions.assertEquals(1931817911, response.cacheSize()); + Assertions.assertEquals(false, response.dynamicExecutorAllocation().enabled()); + Assertions.assertEquals("kxrx", response.sparkEventsFolder()); + Assertions.assertEquals(879177175, response.nodeCount()); + Assertions.assertEquals("g", response.libraryRequirements().content()); + Assertions.assertEquals("qljnqkhychoco", response.libraryRequirements().filename()); + Assertions.assertEquals("hurql", response.customLibraries().get(0).name()); + Assertions.assertEquals("ffaweyur", response.customLibraries().get(0).path()); + Assertions.assertEquals("hy", response.customLibraries().get(0).containerName()); + Assertions.assertEquals("av", response.customLibraries().get(0).type()); + Assertions.assertEquals("j", response.sparkConfigProperties().content()); + Assertions.assertEquals("ajb", response.sparkConfigProperties().filename()); + Assertions.assertEquals("cgduusio", response.sparkVersion()); + Assertions.assertEquals("blevpmcluj", response.defaultSparkLogFolder()); + Assertions.assertEquals(NodeSize.XXLARGE, response.nodeSize()); + Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, response.nodeSizeFamily()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceMockTests.java index f04b2d1e9128..b997f529d2ec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceMockTests.java @@ -12,7 +12,6 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; -import com.azure.resourcemanager.synapse.models.ConfigurationType; import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; import java.nio.charset.StandardCharsets; @@ -25,7 +24,7 @@ public final class BigDataPoolsListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"cejo\",\"autoScale\":{\"minNodeCount\":937861779,\"enabled\":false,\"maxNodeCount\":861790888},\"creationDate\":\"2021-03-20T00:28:35Z\",\"autoPause\":{\"delayInMinutes\":99801916,\"enabled\":false},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":true,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":1249603806,\"dynamicExecutorAllocation\":{\"enabled\":true,\"minExecutors\":316016947,\"maxExecutors\":845820025},\"sparkEventsFolder\":\"izhqikmgobl\",\"nodeCount\":44018032,\"libraryRequirements\":{\"time\":\"2021-05-19T05:59:46Z\",\"content\":\"iisklbonxx\",\"filename\":\"jxvtrkfkgenjqnnp\"},\"customLibraries\":[{\"name\":\"snyxigfouj\",\"path\":\"xgdqmrlhnzkwops\",\"containerName\":\"yinxu\",\"uploadedTimestamp\":\"2021-02-03T10:12:01Z\",\"type\":\"yxwjezb\",\"provisioningStatus\":\"ployuekdcpvu\",\"creatorId\":\"rsvjmnsvujnjktv\"},{\"name\":\"efcjisepkdbxot\",\"path\":\"jampqoclannm\",\"containerName\":\"nlsuqbwzstr\",\"uploadedTimestamp\":\"2021-01-09T08:16:41Z\",\"type\":\"patr\",\"provisioningStatus\":\"jktfinf\",\"creatorId\":\"ks\"},{\"name\":\"culwkqic\",\"path\":\"ook\",\"containerName\":\"flsgaoj\",\"uploadedTimestamp\":\"2021-01-11T06:14:21Z\",\"type\":\"q\",\"provisioningStatus\":\"oc\",\"creatorId\":\"zpujzflmcdsg\"},{\"name\":\"elujiswl\",\"path\":\"unxhfwlfxzfwugeu\",\"containerName\":\"knecexkgrv\",\"uploadedTimestamp\":\"2021-09-28T17:08:57Z\",\"type\":\"d\",\"provisioningStatus\":\"gsytqpdzfyxcn\",\"creatorId\":\"woxcgzbejqfb\"}],\"sparkConfigProperties\":{\"time\":\"2021-03-23T15:39:52Z\",\"content\":\"jxdwdrpazqjkr\",\"filename\":\"bwotfcuuugtji\",\"configurationType\":\"Artifact\"},\"sparkVersion\":\"yiawohfmhnnz\",\"defaultSparkLogFolder\":\"cjjkmqenh\",\"nodeSize\":\"XXXLarge\",\"nodeSizeFamily\":\"HardwareAcceleratedFPGA\",\"lastSucceededTimestamp\":\"2021-10-11T05:24:17Z\"},\"location\":\"sgloi\",\"tags\":{\"enbg\":\"lvivqsuvw\",\"pkhc\":\"i\"},\"id\":\"oa\",\"name\":\"xukuicjuftekio\",\"type\":\"anduew\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"qkueatgroesho\",\"autoScale\":{\"minNodeCount\":1935320450,\"enabled\":false,\"maxNodeCount\":826437079},\"creationDate\":\"2021-05-24T01:51:35Z\",\"autoPause\":{\"delayInMinutes\":597504676,\"enabled\":true},\"isComputeIsolationEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":1536135813,\"dynamicExecutorAllocation\":{\"enabled\":true},\"sparkEventsFolder\":\"mtdwcky\",\"nodeCount\":568375923,\"libraryRequirements\":{\"time\":\"2021-08-17T10:42:57Z\",\"content\":\"dljdjuskb\",\"filename\":\"eqy\"},\"customLibraries\":[{\"name\":\"ysfaqegplwrysh\",\"path\":\"d\",\"containerName\":\"bxgkqusy\",\"uploadedTimestamp\":\"2020-12-26T05:36:32Z\",\"type\":\"dacarvvlfnty\",\"provisioningStatus\":\"poi\",\"creatorId\":\"naz\"},{\"name\":\"ohzrsqalsx\",\"path\":\"nwqapfgsdpcvess\",\"containerName\":\"hhkuuip\",\"uploadedTimestamp\":\"2021-07-14T11:13:21Z\",\"type\":\"ctekval\",\"provisioningStatus\":\"htjqvqyvw\",\"creatorId\":\"tae\"},{\"name\":\"hzzysevusxiv\",\"path\":\"rryveimipskdy\",\"containerName\":\"tv\",\"uploadedTimestamp\":\"2021-09-22T17:23:18Z\",\"type\":\"aftjvvruxwigsy\",\"provisioningStatus\":\"pq\",\"creatorId\":\"mjtgrqg\"}],\"sparkConfigProperties\":{\"time\":\"2021-09-22T05:16:38Z\",\"content\":\"eplkcsm\",\"filename\":\"hwtbbaedorvvm\"},\"sparkVersion\":\"loyg\",\"defaultSparkLogFolder\":\"gwumgxdgdhpa\",\"nodeSize\":\"Small\",\"nodeSizeFamily\":\"None\",\"lastSucceededTimestamp\":\"2021-01-13T23:43:23Z\"},\"location\":\"d\",\"tags\":{\"colsrsxaptefhex\":\"aqwotmmwl\"},\"id\":\"gjokjljnhvlqjbek\",\"name\":\"eeksnbksdqhjvyk\",\"type\":\"xeslkhhustcpoqm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,39 +33,36 @@ public void testListByWorkspace() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.bigDataPools() - .listByWorkspace("hyrkqakofajfr", "prfvmkinwteyrqsh", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.bigDataPools().listByWorkspace("txfkndlqvt", "knvgmmbugtywat", com.azure.core.util.Context.NONE); - Assertions.assertEquals("sgloi", response.iterator().next().location()); - Assertions.assertEquals("lvivqsuvw", response.iterator().next().tags().get("enbg")); - Assertions.assertEquals("cejo", response.iterator().next().provisioningState()); - Assertions.assertEquals(937861779, response.iterator().next().autoScale().minNodeCount()); + Assertions.assertEquals("d", response.iterator().next().location()); + Assertions.assertEquals("aqwotmmwl", response.iterator().next().tags().get("colsrsxaptefhex")); + Assertions.assertEquals("qkueatgroesho", response.iterator().next().provisioningState()); + Assertions.assertEquals(1935320450, response.iterator().next().autoScale().minNodeCount()); Assertions.assertEquals(false, response.iterator().next().autoScale().enabled()); - Assertions.assertEquals(861790888, response.iterator().next().autoScale().maxNodeCount()); - Assertions.assertEquals(99801916, response.iterator().next().autoPause().delayInMinutes()); - Assertions.assertEquals(false, response.iterator().next().autoPause().enabled()); + Assertions.assertEquals(826437079, response.iterator().next().autoScale().maxNodeCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-24T01:51:35Z"), + response.iterator().next().creationDate()); + Assertions.assertEquals(597504676, response.iterator().next().autoPause().delayInMinutes()); + Assertions.assertEquals(true, response.iterator().next().autoPause().enabled()); Assertions.assertEquals(false, response.iterator().next().isComputeIsolationEnabled()); - Assertions.assertEquals(true, response.iterator().next().isAutotuneEnabled()); - Assertions.assertEquals(false, response.iterator().next().sessionLevelPackagesEnabled()); - Assertions.assertEquals(1249603806, response.iterator().next().cacheSize()); + Assertions.assertEquals(true, response.iterator().next().sessionLevelPackagesEnabled()); + Assertions.assertEquals(1536135813, response.iterator().next().cacheSize()); Assertions.assertEquals(true, response.iterator().next().dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(316016947, response.iterator().next().dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(845820025, response.iterator().next().dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("izhqikmgobl", response.iterator().next().sparkEventsFolder()); - Assertions.assertEquals(44018032, response.iterator().next().nodeCount()); - Assertions.assertEquals("iisklbonxx", response.iterator().next().libraryRequirements().content()); - Assertions.assertEquals("jxvtrkfkgenjqnnp", response.iterator().next().libraryRequirements().filename()); - Assertions.assertEquals("snyxigfouj", response.iterator().next().customLibraries().get(0).name()); - Assertions.assertEquals("xgdqmrlhnzkwops", response.iterator().next().customLibraries().get(0).path()); - Assertions.assertEquals("yinxu", response.iterator().next().customLibraries().get(0).containerName()); - Assertions.assertEquals("yxwjezb", response.iterator().next().customLibraries().get(0).type()); - Assertions.assertEquals("jxdwdrpazqjkr", response.iterator().next().sparkConfigProperties().content()); - Assertions.assertEquals("bwotfcuuugtji", response.iterator().next().sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, - response.iterator().next().sparkConfigProperties().configurationType()); - Assertions.assertEquals("yiawohfmhnnz", response.iterator().next().sparkVersion()); - Assertions.assertEquals("cjjkmqenh", response.iterator().next().defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.XXXLARGE, response.iterator().next().nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, response.iterator().next().nodeSizeFamily()); + Assertions.assertEquals("mtdwcky", response.iterator().next().sparkEventsFolder()); + Assertions.assertEquals(568375923, response.iterator().next().nodeCount()); + Assertions.assertEquals("dljdjuskb", response.iterator().next().libraryRequirements().content()); + Assertions.assertEquals("eqy", response.iterator().next().libraryRequirements().filename()); + Assertions.assertEquals("ysfaqegplwrysh", response.iterator().next().customLibraries().get(0).name()); + Assertions.assertEquals("d", response.iterator().next().customLibraries().get(0).path()); + Assertions.assertEquals("bxgkqusy", response.iterator().next().customLibraries().get(0).containerName()); + Assertions.assertEquals("dacarvvlfnty", response.iterator().next().customLibraries().get(0).type()); + Assertions.assertEquals("eplkcsm", response.iterator().next().sparkConfigProperties().content()); + Assertions.assertEquals("hwtbbaedorvvm", response.iterator().next().sparkConfigProperties().filename()); + Assertions.assertEquals("loyg", response.iterator().next().sparkVersion()); + Assertions.assertEquals("gwumgxdgdhpa", response.iterator().next().defaultSparkLogFolder()); + Assertions.assertEquals(NodeSize.SMALL, response.iterator().next().nodeSize()); + Assertions.assertEquals(NodeSizeFamily.NONE, response.iterator().next().nodeSizeFamily()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityRequestTests.java index f9cd326b5cf9..6f7b37cc7c7b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityRequestTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityRequestTests.java @@ -11,17 +11,19 @@ public final class CheckNameAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model = BinaryData.fromString("{\"name\":\"rxybqsoq\",\"type\":\"gkdmb\"}") - .toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("rxybqsoq", model.name()); - Assertions.assertEquals("gkdmb", model.type()); + CheckNameAvailabilityRequest model + = BinaryData.fromString("{\"name\":\"hzgpphrcgyncocpe\",\"type\":\"vmmcoofs\"}") + .toObject(CheckNameAvailabilityRequest.class); + Assertions.assertEquals("hzgpphrcgyncocpe", model.name()); + Assertions.assertEquals("vmmcoofs", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("rxybqsoq").withType("gkdmb"); + CheckNameAvailabilityRequest model + = new CheckNameAvailabilityRequest().withName("hzgpphrcgyncocpe").withType("vmmcoofs"); model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("rxybqsoq", model.name()); - Assertions.assertEquals("gkdmb", model.type()); + Assertions.assertEquals("hzgpphrcgyncocpe", model.name()); + Assertions.assertEquals("vmmcoofs", model.type()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityResponseInnerTests.java index 0a3b2f373fde..03f0bdf42839 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityResponseInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityResponseInnerTests.java @@ -13,24 +13,24 @@ public final class CheckNameAvailabilityResponseInnerTests { public void testDeserialize() throws Exception { CheckNameAvailabilityResponseInner model = BinaryData .fromString( - "{\"message\":\"zlobcufpd\",\"available\":false,\"reason\":\"t\",\"name\":\"qjnqglhqgnufoooj\"}") + "{\"message\":\"zevgb\",\"available\":true,\"reason\":\"abcypmivk\",\"name\":\"zuvccfwnfnbacfio\"}") .toObject(CheckNameAvailabilityResponseInner.class); - Assertions.assertEquals("zlobcufpd", model.message()); - Assertions.assertEquals(false, model.available()); - Assertions.assertEquals("t", model.reason()); - Assertions.assertEquals("qjnqglhqgnufoooj", model.name()); + Assertions.assertEquals("zevgb", model.message()); + Assertions.assertEquals(true, model.available()); + Assertions.assertEquals("abcypmivk", model.reason()); + Assertions.assertEquals("zuvccfwnfnbacfio", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CheckNameAvailabilityResponseInner model = new CheckNameAvailabilityResponseInner().withMessage("zlobcufpd") - .withAvailable(false) - .withReason("t") - .withName("qjnqglhqgnufoooj"); + CheckNameAvailabilityResponseInner model = new CheckNameAvailabilityResponseInner().withMessage("zevgb") + .withAvailable(true) + .withReason("abcypmivk") + .withName("zuvccfwnfnbacfio"); model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityResponseInner.class); - Assertions.assertEquals("zlobcufpd", model.message()); - Assertions.assertEquals(false, model.available()); - Assertions.assertEquals("t", model.reason()); - Assertions.assertEquals("qjnqglhqgnufoooj", model.name()); + Assertions.assertEquals("zevgb", model.message()); + Assertions.assertEquals(true, model.available()); + Assertions.assertEquals("abcypmivk", model.reason()); + Assertions.assertEquals("zuvccfwnfnbacfio", model.name()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameResultInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameResultInnerTests.java deleted file mode 100644 index 320ea730dd5b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameResultInnerTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.models.Reason; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameResultInner model = BinaryData - .fromString("{\"nameAvailable\":false,\"name\":\"k\",\"message\":\"hu\",\"reason\":\"AlreadyExists\"}") - .toObject(CheckNameResultInner.class); - Assertions.assertEquals(false, model.nameAvailable()); - Assertions.assertEquals("k", model.name()); - Assertions.assertEquals("hu", model.message()); - Assertions.assertEquals(Reason.ALREADY_EXISTS, model.reason()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameResultInner model = new CheckNameResultInner().withNameAvailable(false) - .withName("k") - .withMessage("hu") - .withReason(Reason.ALREADY_EXISTS); - model = BinaryData.fromObject(model).toObject(CheckNameResultInner.class); - Assertions.assertEquals(false, model.nameAvailable()); - Assertions.assertEquals("k", model.name()); - Assertions.assertEquals("hu", model.message()); - Assertions.assertEquals(Reason.ALREADY_EXISTS, model.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentCheckNameRequestTests.java deleted file mode 100644 index 90bb84b8ecda..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentCheckNameRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPrincipalAssignmentCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPrincipalAssignmentCheckNameRequest model - = BinaryData.fromString("{\"name\":\"zfboj\"}").toObject(ClusterPrincipalAssignmentCheckNameRequest.class); - Assertions.assertEquals("zfboj", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPrincipalAssignmentCheckNameRequest model - = new ClusterPrincipalAssignmentCheckNameRequest().withName("zfboj"); - model = BinaryData.fromObject(model).toObject(ClusterPrincipalAssignmentCheckNameRequest.class); - Assertions.assertEquals("zfboj", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentInnerTests.java deleted file mode 100644 index ca1ac8abf76e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentInnerTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPrincipalAssignmentInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPrincipalAssignmentInner model = BinaryData.fromString( - "{\"properties\":{\"principalId\":\"igpxvkq\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"pxvpifdfaif\",\"principalType\":\"App\",\"tenantName\":\"zeyuubeidszl\",\"principalName\":\"toi\",\"provisioningState\":\"Creating\",\"aadObjectId\":\"gvfltgvdihoynkr\"},\"id\":\"etwkdrcyrucpc\",\"name\":\"nn\",\"type\":\"zdqumoe\"}") - .toObject(ClusterPrincipalAssignmentInner.class); - Assertions.assertEquals("igpxvkq", model.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, model.role()); - Assertions.assertEquals("pxvpifdfaif", model.tenantId()); - Assertions.assertEquals(PrincipalType.APP, model.principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPrincipalAssignmentInner model = new ClusterPrincipalAssignmentInner().withPrincipalId("igpxvkq") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("pxvpifdfaif") - .withPrincipalType(PrincipalType.APP); - model = BinaryData.fromObject(model).toObject(ClusterPrincipalAssignmentInner.class); - Assertions.assertEquals("igpxvkq", model.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, model.role()); - Assertions.assertEquals("pxvpifdfaif", model.tenantId()); - Assertions.assertEquals(PrincipalType.APP, model.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentListResultTests.java deleted file mode 100644 index 35f84d651365..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentListResultTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentListResult; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPrincipalAssignmentListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPrincipalAssignmentListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"principalId\":\"smyqwixvcpwnkwyw\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"falickduoiqtamty\",\"principalType\":\"Group\",\"tenantName\":\"nxrwzawnvs\",\"principalName\":\"fhzag\",\"provisioningState\":\"Deleting\",\"aadObjectId\":\"ycvdimw\"},\"id\":\"regzgyufutrwpwer\",\"name\":\"ekzkdhmeottaw\",\"type\":\"yos\"},{\"properties\":{\"principalId\":\"whnhjtfv\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"pmil\",\"principalType\":\"Group\",\"tenantName\":\"wyn\",\"principalName\":\"qllzsauzpjlxeehu\",\"provisioningState\":\"Succeeded\",\"aadObjectId\":\"zlrayme\"},\"id\":\"lskihmxrfdsajred\",\"name\":\"wyyshtuwgm\",\"type\":\"vuafpwzyifr\"},{\"properties\":{\"principalId\":\"wltxeqipxgzdyims\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"orpravkjoges\",\"principalType\":\"App\",\"tenantName\":\"nsmjkwynqxaekqs\",\"principalName\":\"vwjtqpkevmyltjc\",\"provisioningState\":\"Running\",\"aadObjectId\":\"klurccl\"},\"id\":\"xa\",\"name\":\"n\",\"type\":\"oytzpose\"}]}") - .toObject(ClusterPrincipalAssignmentListResult.class); - Assertions.assertEquals("smyqwixvcpwnkwyw", model.value().get(0).principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, model.value().get(0).role()); - Assertions.assertEquals("falickduoiqtamty", model.value().get(0).tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.value().get(0).principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPrincipalAssignmentListResult model = new ClusterPrincipalAssignmentListResult().withValue(Arrays.asList( - new ClusterPrincipalAssignmentInner().withPrincipalId("smyqwixvcpwnkwyw") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("falickduoiqtamty") - .withPrincipalType(PrincipalType.GROUP), - new ClusterPrincipalAssignmentInner().withPrincipalId("whnhjtfv") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("pmil") - .withPrincipalType(PrincipalType.GROUP), - new ClusterPrincipalAssignmentInner().withPrincipalId("wltxeqipxgzdyims") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("orpravkjoges") - .withPrincipalType(PrincipalType.APP))); - model = BinaryData.fromObject(model).toObject(ClusterPrincipalAssignmentListResult.class); - Assertions.assertEquals("smyqwixvcpwnkwyw", model.value().get(0).principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, model.value().get(0).role()); - Assertions.assertEquals("falickduoiqtamty", model.value().get(0).tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.value().get(0).principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalPropertiesTests.java deleted file mode 100644 index 6205ae2d0a31..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalPropertiesTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalProperties; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPrincipalPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPrincipalProperties model = BinaryData.fromString( - "{\"principalId\":\"odnaienhqhskndn\",\"role\":\"AllDatabasesViewer\",\"tenantId\":\"kaa\",\"principalType\":\"User\",\"tenantName\":\"nwf\",\"principalName\":\"nniyopetxi\",\"provisioningState\":\"Failed\",\"aadObjectId\":\"lyxnucaephb\"}") - .toObject(ClusterPrincipalProperties.class); - Assertions.assertEquals("odnaienhqhskndn", model.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_VIEWER, model.role()); - Assertions.assertEquals("kaa", model.tenantId()); - Assertions.assertEquals(PrincipalType.USER, model.principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPrincipalProperties model = new ClusterPrincipalProperties().withPrincipalId("odnaienhqhskndn") - .withRole(ClusterPrincipalRole.ALL_DATABASES_VIEWER) - .withTenantId("kaa") - .withPrincipalType(PrincipalType.USER); - model = BinaryData.fromObject(model).toObject(ClusterPrincipalProperties.class); - Assertions.assertEquals("odnaienhqhskndn", model.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_VIEWER, model.role()); - Assertions.assertEquals("kaa", model.tenantId()); - Assertions.assertEquals(PrincipalType.USER, model.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CreateSqlPoolRestorePointDefinitionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CreateSqlPoolRestorePointDefinitionTests.java index f2b847b1391b..0acf7d99351b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CreateSqlPoolRestorePointDefinitionTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CreateSqlPoolRestorePointDefinitionTests.java @@ -11,16 +11,16 @@ public final class CreateSqlPoolRestorePointDefinitionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CreateSqlPoolRestorePointDefinition model = BinaryData.fromString("{\"restorePointLabel\":\"vq\"}") + CreateSqlPoolRestorePointDefinition model = BinaryData.fromString("{\"restorePointLabel\":\"dzf\"}") .toObject(CreateSqlPoolRestorePointDefinition.class); - Assertions.assertEquals("vq", model.restorePointLabel()); + Assertions.assertEquals("dzf", model.restorePointLabel()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CreateSqlPoolRestorePointDefinition model - = new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("vq"); + = new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("dzf"); model = BinaryData.fromObject(model).toObject(CreateSqlPoolRestorePointDefinition.class); - Assertions.assertEquals("vq", model.restorePointLabel()); + Assertions.assertEquals("dzf", model.restorePointLabel()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CspWorkspaceAdminPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CspWorkspaceAdminPropertiesTests.java deleted file mode 100644 index d0e70397af3c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CspWorkspaceAdminPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; -import org.junit.jupiter.api.Assertions; - -public final class CspWorkspaceAdminPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CspWorkspaceAdminProperties model = BinaryData.fromString("{\"initialWorkspaceAdminObjectId\":\"ycy\"}") - .toObject(CspWorkspaceAdminProperties.class); - Assertions.assertEquals("ycy", model.initialWorkspaceAdminObjectId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CspWorkspaceAdminProperties model = new CspWorkspaceAdminProperties().withInitialWorkspaceAdminObjectId("ycy"); - model = BinaryData.fromObject(model).toObject(CspWorkspaceAdminProperties.class); - Assertions.assertEquals("ycy", model.initialWorkspaceAdminObjectId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionCheckNameRequestTests.java deleted file mode 100644 index 3336ed066db2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionCheckNameRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionCheckNameRequest model - = BinaryData.fromString("{\"name\":\"hzlwxaea\"}").toObject(DataConnectionCheckNameRequest.class); - Assertions.assertEquals("hzlwxaea", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionCheckNameRequest model = new DataConnectionCheckNameRequest().withName("hzlwxaea"); - model = BinaryData.fromObject(model).toObject(DataConnectionCheckNameRequest.class); - Assertions.assertEquals("hzlwxaea", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionInnerTests.java deleted file mode 100644 index ef7d7704de8e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionInner model = BinaryData.fromString( - "{\"kind\":\"DataConnection\",\"location\":\"uazjcgmxitpfinz\",\"id\":\"dltkrlg\",\"name\":\"mtbdrvcqgu\",\"type\":\"fzhompheq\"}") - .toObject(DataConnectionInner.class); - Assertions.assertEquals("uazjcgmxitpfinz", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionInner model = new DataConnectionInner().withLocation("uazjcgmxitpfinz"); - model = BinaryData.fromObject(model).toObject(DataConnectionInner.class); - Assertions.assertEquals("uazjcgmxitpfinz", model.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionListResultTests.java deleted file mode 100644 index d9c2816374e9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionListResultTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.models.DataConnectionListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionListResult model = BinaryData.fromString( - "{\"value\":[{\"kind\":\"DataConnection\",\"location\":\"lxiutgjcyzyzjdnr\",\"id\":\"btxjeaoqaqbzg\",\"name\":\"hfw\",\"type\":\"v\"},{\"kind\":\"DataConnection\",\"location\":\"tbwbqamteuli\",\"id\":\"lpkcvmwfauxxep\",\"name\":\"ywbo\",\"type\":\"mcqmiciijqp\"}]}") - .toObject(DataConnectionListResult.class); - Assertions.assertEquals("lxiutgjcyzyzjdnr", model.value().get(0).location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionListResult model = new DataConnectionListResult() - .withValue(Arrays.asList(new DataConnectionInner().withLocation("lxiutgjcyzyzjdnr"), - new DataConnectionInner().withLocation("tbwbqamteuli"))); - model = BinaryData.fromObject(model).toObject(DataConnectionListResult.class); - Assertions.assertEquals("lxiutgjcyzyzjdnr", model.value().get(0).location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationInnerTests.java deleted file mode 100644 index 74717124288a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationInnerTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionValidationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionValidationInner model = BinaryData.fromString( - "{\"dataConnectionName\":\"ur\",\"properties\":{\"kind\":\"DataConnection\",\"location\":\"ndsbdw\",\"id\":\"derzmwnto\",\"name\":\"agttm\",\"type\":\"mmagoaqylkjzt\"}}") - .toObject(DataConnectionValidationInner.class); - Assertions.assertEquals("ur", model.dataConnectionName()); - Assertions.assertEquals("ndsbdw", model.properties().location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionValidationInner model = new DataConnectionValidationInner().withDataConnectionName("ur") - .withProperties(new DataConnectionInner().withLocation("ndsbdw")); - model = BinaryData.fromObject(model).toObject(DataConnectionValidationInner.class); - Assertions.assertEquals("ur", model.dataConnectionName()); - Assertions.assertEquals("ndsbdw", model.properties().location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationListResultInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationListResultInnerTests.java deleted file mode 100644 index d5dea2125a18..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationListResultInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionValidationListResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionValidationListResultInner model = BinaryData.fromString( - "{\"value\":[{\"errorMessage\":\"lyujlfyoump\"},{\"errorMessage\":\"yec\"},{\"errorMessage\":\"digp\"}]}") - .toObject(DataConnectionValidationListResultInner.class); - Assertions.assertEquals("lyujlfyoump", model.value().get(0).errorMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionValidationListResultInner model = new DataConnectionValidationListResultInner() - .withValue(Arrays.asList(new DataConnectionValidationResult().withErrorMessage("lyujlfyoump"), - new DataConnectionValidationResult().withErrorMessage("yec"), - new DataConnectionValidationResult().withErrorMessage("digp"))); - model = BinaryData.fromObject(model).toObject(DataConnectionValidationListResultInner.class); - Assertions.assertEquals("lyujlfyoump", model.value().get(0).errorMessage()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationResultTests.java deleted file mode 100644 index fc8f685ab2cf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationResult; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionValidationResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionValidationResult model = BinaryData.fromString("{\"errorMessage\":\"jbrzmqxucyc\"}") - .toObject(DataConnectionValidationResult.class); - Assertions.assertEquals("jbrzmqxucyc", model.errorMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionValidationResult model = new DataConnectionValidationResult().withErrorMessage("jbrzmqxucyc"); - model = BinaryData.fromObject(model).toObject(DataConnectionValidationResult.class); - Assertions.assertEquals("jbrzmqxucyc", model.errorMessage()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataLakeStorageAccountDetailsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataLakeStorageAccountDetailsTests.java index 18f16a7d9d26..2a466a88d458 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataLakeStorageAccountDetailsTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataLakeStorageAccountDetailsTests.java @@ -11,25 +11,19 @@ public final class DataLakeStorageAccountDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DataLakeStorageAccountDetails model = BinaryData.fromString( - "{\"accountUrl\":\"iekkkzddrtkgdojb\",\"filesystem\":\"vavrefdees\",\"resourceId\":\"cuijpxt\",\"createManagedPrivateEndpoint\":true}") - .toObject(DataLakeStorageAccountDetails.class); - Assertions.assertEquals("iekkkzddrtkgdojb", model.accountUrl()); - Assertions.assertEquals("vavrefdees", model.filesystem()); - Assertions.assertEquals("cuijpxt", model.resourceId()); - Assertions.assertEquals(true, model.createManagedPrivateEndpoint()); + DataLakeStorageAccountDetails model + = BinaryData.fromString("{\"accountUrl\":\"ffdjktsysidfvclg\",\"filesystem\":\"n\"}") + .toObject(DataLakeStorageAccountDetails.class); + Assertions.assertEquals("ffdjktsysidfvclg", model.accountUrl()); + Assertions.assertEquals("n", model.filesystem()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DataLakeStorageAccountDetails model = new DataLakeStorageAccountDetails().withAccountUrl("iekkkzddrtkgdojb") - .withFilesystem("vavrefdees") - .withResourceId("cuijpxt") - .withCreateManagedPrivateEndpoint(true); + DataLakeStorageAccountDetails model + = new DataLakeStorageAccountDetails().withAccountUrl("ffdjktsysidfvclg").withFilesystem("n"); model = BinaryData.fromObject(model).toObject(DataLakeStorageAccountDetails.class); - Assertions.assertEquals("iekkkzddrtkgdojb", model.accountUrl()); - Assertions.assertEquals("vavrefdees", model.filesystem()); - Assertions.assertEquals("cuijpxt", model.resourceId()); - Assertions.assertEquals(true, model.createManagedPrivateEndpoint()); + Assertions.assertEquals("ffdjktsysidfvclg", model.accountUrl()); + Assertions.assertEquals("n", model.filesystem()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateWithResponseMockTests.java index 3fbca25a022a..2ecce62cfafc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class DataMaskingPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"dataMaskingState\":\"Enabled\",\"exemptPrincipals\":\"bvn\",\"applicationPrincipals\":\"ge\",\"maskingLevel\":\"yqxadyfhbmw\"},\"location\":\"ojqttbsp\",\"kind\":\"hg\",\"managedBy\":\"qjsgyzst\",\"id\":\"jrz\",\"name\":\"rknsfdrlduyeh\",\"type\":\"iitt\"}"; + = "{\"properties\":{\"dataMaskingState\":\"Disabled\",\"exemptPrincipals\":\"uwhldxwhieproqks\",\"applicationPrincipals\":\"xmcvprstvkitbfjt\",\"maskingLevel\":\"otnplfacqocc\"},\"location\":\"qxwetjtd\",\"kind\":\"u\",\"managedBy\":\"doad\",\"id\":\"xopgehpadkmd\",\"name\":\"gssz\",\"type\":\"vctkbbx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,12 @@ public void testCreateOrUpdateWithResponse() throws Exception { DataMaskingPolicy response = manager.dataMaskingPolicies() .define() - .withExistingSqlPool("bkvnrpbjrmvg", "qplehmumkzdllczd", "rwnhkgqggoxsst") - .withDataMaskingState(DataMaskingState.DISABLED) - .withExemptPrincipals("akfrry") + .withExistingSqlPool("gxkfnaoaqymhccto", "uowyrnskbyhqu", "czygxv") + .withDataMaskingState(DataMaskingState.ENABLED) + .withExemptPrincipals("xecxqnwh") .create(); - Assertions.assertEquals(DataMaskingState.ENABLED, response.dataMaskingState()); - Assertions.assertEquals("bvn", response.exemptPrincipals()); + Assertions.assertEquals(DataMaskingState.DISABLED, response.dataMaskingState()); + Assertions.assertEquals("uwhldxwhieproqks", response.exemptPrincipals()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetWithResponseMockTests.java index eece63a8ab00..bd01e49cf48f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class DataMaskingPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"dataMaskingState\":\"Disabled\",\"exemptPrincipals\":\"flzqjimejtgzjxx\",\"applicationPrincipals\":\"e\",\"maskingLevel\":\"zuqloiwyayyzivr\"},\"location\":\"tcdqlh\",\"kind\":\"whrktjleifibfipl\",\"managedBy\":\"fnsmycjowly\",\"id\":\"yzmudsqcmhnx\",\"name\":\"zbuw\",\"type\":\"dmac\"}"; + = "{\"properties\":{\"dataMaskingState\":\"Enabled\",\"exemptPrincipals\":\"gnqfqqdlcvmyol\",\"applicationPrincipals\":\"ymjc\",\"maskingLevel\":\"vsnvlaq\"},\"location\":\"z\",\"kind\":\"awatuwqkokbczo\",\"managedBy\":\"ymgobll\",\"id\":\"snwgwimaa\",\"name\":\"eakhtmhobcya\",\"type\":\"rfvqtvkhgvo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); DataMaskingPolicy response = manager.dataMaskingPolicies() - .getWithResponse("kbputmgvmuyak", "lwk", "fowzkroyr", com.azure.core.util.Context.NONE) + .getWithResponse("isjm", "kkhmwdmdlgyqixok", "tja", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(DataMaskingState.DISABLED, response.dataMaskingState()); - Assertions.assertEquals("flzqjimejtgzjxx", response.exemptPrincipals()); + Assertions.assertEquals(DataMaskingState.ENABLED, response.dataMaskingState()); + Assertions.assertEquals("gnqfqqdlcvmyol", response.exemptPrincipals()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyInnerTests.java index 56b2f36d447c..3422a4f2d4cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyInnerTests.java @@ -13,18 +13,18 @@ public final class DataMaskingPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataMaskingPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"dataMaskingState\":\"Disabled\",\"exemptPrincipals\":\"oookkqfq\",\"applicationPrincipals\":\"vleo\",\"maskingLevel\":\"ml\"},\"location\":\"qtqzfavyv\",\"kind\":\"qybaryeua\",\"managedBy\":\"kq\",\"id\":\"bqgzslesjcbhern\",\"name\":\"tiewdj\",\"type\":\"vbquwr\"}") + "{\"properties\":{\"dataMaskingState\":\"Disabled\",\"exemptPrincipals\":\"qqnobpudcd\",\"applicationPrincipals\":\"tqwpwya\",\"maskingLevel\":\"zasqbucljgkyexao\"},\"location\":\"yaipidsda\",\"kind\":\"tx\",\"managedBy\":\"jumfqwazlnq\",\"id\":\"mcjn\",\"name\":\"zqdqxt\",\"type\":\"jw\"}") .toObject(DataMaskingPolicyInner.class); Assertions.assertEquals(DataMaskingState.DISABLED, model.dataMaskingState()); - Assertions.assertEquals("oookkqfq", model.exemptPrincipals()); + Assertions.assertEquals("qqnobpudcd", model.exemptPrincipals()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DataMaskingPolicyInner model = new DataMaskingPolicyInner().withDataMaskingState(DataMaskingState.DISABLED) - .withExemptPrincipals("oookkqfq"); + .withExemptPrincipals("qqnobpudcd"); model = BinaryData.fromObject(model).toObject(DataMaskingPolicyInner.class); Assertions.assertEquals(DataMaskingState.DISABLED, model.dataMaskingState()); - Assertions.assertEquals("oookkqfq", model.exemptPrincipals()); + Assertions.assertEquals("qqnobpudcd", model.exemptPrincipals()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyPropertiesTests.java index f2ccccad78c4..28224611e8eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyPropertiesTests.java @@ -13,19 +13,19 @@ public final class DataMaskingPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataMaskingPolicyProperties model = BinaryData.fromString( - "{\"dataMaskingState\":\"Disabled\",\"exemptPrincipals\":\"wagohbuffk\",\"applicationPrincipals\":\"qem\",\"maskingLevel\":\"hmxtdr\"}") + "{\"dataMaskingState\":\"Enabled\",\"exemptPrincipals\":\"fusfzsvtuikzhajq\",\"applicationPrincipals\":\"cfhmlrqryxyn\",\"maskingLevel\":\"zrdpsovwxznptgoe\"}") .toObject(DataMaskingPolicyProperties.class); - Assertions.assertEquals(DataMaskingState.DISABLED, model.dataMaskingState()); - Assertions.assertEquals("wagohbuffk", model.exemptPrincipals()); + Assertions.assertEquals(DataMaskingState.ENABLED, model.dataMaskingState()); + Assertions.assertEquals("fusfzsvtuikzhajq", model.exemptPrincipals()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DataMaskingPolicyProperties model - = new DataMaskingPolicyProperties().withDataMaskingState(DataMaskingState.DISABLED) - .withExemptPrincipals("wagohbuffk"); + = new DataMaskingPolicyProperties().withDataMaskingState(DataMaskingState.ENABLED) + .withExemptPrincipals("fusfzsvtuikzhajq"); model = BinaryData.fromObject(model).toObject(DataMaskingPolicyProperties.class); - Assertions.assertEquals(DataMaskingState.DISABLED, model.dataMaskingState()); - Assertions.assertEquals("wagohbuffk", model.exemptPrincipals()); + Assertions.assertEquals(DataMaskingState.ENABLED, model.dataMaskingState()); + Assertions.assertEquals("fusfzsvtuikzhajq", model.exemptPrincipals()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleInnerTests.java index 00036f1fea2f..2c193f83345e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleInnerTests.java @@ -14,45 +14,45 @@ public final class DataMaskingRuleInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataMaskingRuleInner model = BinaryData.fromString( - "{\"properties\":{\"id\":\"tac\",\"aliasName\":\"bj\",\"ruleState\":\"Enabled\",\"schemaName\":\"zcjznmwcpmgua\",\"tableName\":\"draufactkah\",\"columnName\":\"ovajjziuxxps\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"e\",\"numberTo\":\"lfg\",\"prefixSize\":\"qubkw\",\"suffixSize\":\"enr\",\"replacementString\":\"utujba\"},\"location\":\"juohminyflnorw\",\"kind\":\"uvwpklvxwmyg\",\"id\":\"xpgpq\",\"name\":\"hiszepnnbjcrxgib\",\"type\":\"daxconfozauorsuk\"}") + "{\"properties\":{\"id\":\"b\",\"aliasName\":\"pfhvfslk\",\"ruleState\":\"Enabled\",\"schemaName\":\"jlrigjkskyrioovz\",\"tableName\":\"dsxwaab\",\"columnName\":\"mifrygznmma\",\"maskingFunction\":\"Text\",\"numberFrom\":\"zkzobgopxlhslnel\",\"numberTo\":\"eixynllxecwcroj\",\"prefixSize\":\"slhcawjutifd\",\"suffixSize\":\"mvi\",\"replacementString\":\"rqjb\"},\"location\":\"zhraglkafh\",\"kind\":\"qjujeickpzvcp\",\"id\":\"pmxelnwcltyje\",\"name\":\"ex\",\"type\":\"mlfmkqs\"}") .toObject(DataMaskingRuleInner.class); - Assertions.assertEquals("bj", model.aliasName()); + Assertions.assertEquals("pfhvfslk", model.aliasName()); Assertions.assertEquals(DataMaskingRuleState.ENABLED, model.ruleState()); - Assertions.assertEquals("zcjznmwcpmgua", model.schemaName()); - Assertions.assertEquals("draufactkah", model.tableName()); - Assertions.assertEquals("ovajjziuxxps", model.columnName()); - Assertions.assertEquals(DataMaskingFunction.CCN, model.maskingFunction()); - Assertions.assertEquals("e", model.numberFrom()); - Assertions.assertEquals("lfg", model.numberTo()); - Assertions.assertEquals("qubkw", model.prefixSize()); - Assertions.assertEquals("enr", model.suffixSize()); - Assertions.assertEquals("utujba", model.replacementString()); + Assertions.assertEquals("jlrigjkskyrioovz", model.schemaName()); + Assertions.assertEquals("dsxwaab", model.tableName()); + Assertions.assertEquals("mifrygznmma", model.columnName()); + Assertions.assertEquals(DataMaskingFunction.TEXT, model.maskingFunction()); + Assertions.assertEquals("zkzobgopxlhslnel", model.numberFrom()); + Assertions.assertEquals("eixynllxecwcroj", model.numberTo()); + Assertions.assertEquals("slhcawjutifd", model.prefixSize()); + Assertions.assertEquals("mvi", model.suffixSize()); + Assertions.assertEquals("rqjb", model.replacementString()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DataMaskingRuleInner model = new DataMaskingRuleInner().withAliasName("bj") + DataMaskingRuleInner model = new DataMaskingRuleInner().withAliasName("pfhvfslk") .withRuleState(DataMaskingRuleState.ENABLED) - .withSchemaName("zcjznmwcpmgua") - .withTableName("draufactkah") - .withColumnName("ovajjziuxxps") - .withMaskingFunction(DataMaskingFunction.CCN) - .withNumberFrom("e") - .withNumberTo("lfg") - .withPrefixSize("qubkw") - .withSuffixSize("enr") - .withReplacementString("utujba"); + .withSchemaName("jlrigjkskyrioovz") + .withTableName("dsxwaab") + .withColumnName("mifrygznmma") + .withMaskingFunction(DataMaskingFunction.TEXT) + .withNumberFrom("zkzobgopxlhslnel") + .withNumberTo("eixynllxecwcroj") + .withPrefixSize("slhcawjutifd") + .withSuffixSize("mvi") + .withReplacementString("rqjb"); model = BinaryData.fromObject(model).toObject(DataMaskingRuleInner.class); - Assertions.assertEquals("bj", model.aliasName()); + Assertions.assertEquals("pfhvfslk", model.aliasName()); Assertions.assertEquals(DataMaskingRuleState.ENABLED, model.ruleState()); - Assertions.assertEquals("zcjznmwcpmgua", model.schemaName()); - Assertions.assertEquals("draufactkah", model.tableName()); - Assertions.assertEquals("ovajjziuxxps", model.columnName()); - Assertions.assertEquals(DataMaskingFunction.CCN, model.maskingFunction()); - Assertions.assertEquals("e", model.numberFrom()); - Assertions.assertEquals("lfg", model.numberTo()); - Assertions.assertEquals("qubkw", model.prefixSize()); - Assertions.assertEquals("enr", model.suffixSize()); - Assertions.assertEquals("utujba", model.replacementString()); + Assertions.assertEquals("jlrigjkskyrioovz", model.schemaName()); + Assertions.assertEquals("dsxwaab", model.tableName()); + Assertions.assertEquals("mifrygznmma", model.columnName()); + Assertions.assertEquals(DataMaskingFunction.TEXT, model.maskingFunction()); + Assertions.assertEquals("zkzobgopxlhslnel", model.numberFrom()); + Assertions.assertEquals("eixynllxecwcroj", model.numberTo()); + Assertions.assertEquals("slhcawjutifd", model.prefixSize()); + Assertions.assertEquals("mvi", model.suffixSize()); + Assertions.assertEquals("rqjb", model.replacementString()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleListResultTests.java index c6c4293992f1..95b0e3457921 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleListResultTests.java @@ -16,68 +16,57 @@ public final class DataMaskingRuleListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataMaskingRuleListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"id\":\"shqvcimpev\",\"aliasName\":\"mblrrilbywd\",\"ruleState\":\"Enabled\",\"schemaName\":\"icc\",\"tableName\":\"rwfscjfnynszquj\",\"columnName\":\"zdvoqytibyowbb\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"avu\",\"numberTo\":\"thjoxoism\",\"prefixSize\":\"sbpimlq\",\"suffixSize\":\"jxkcgxxlxsff\",\"replacementString\":\"vizqzdwl\"},\"location\":\"lyoupfgfbkju\",\"kind\":\"yhgk\",\"id\":\"minsgowzf\",\"name\":\"tsttktlahbq\",\"type\":\"ctxtgzukxi\"},{\"properties\":{\"id\":\"qtgqqqxhrnxr\",\"aliasName\":\"pjui\",\"ruleState\":\"Disabled\",\"schemaName\":\"okqdzfvaz\",\"tableName\":\"vjlfrqtt\",\"columnName\":\"ajlkatnw\",\"maskingFunction\":\"Number\",\"numberFrom\":\"opidkqqfkuv\",\"numberTo\":\"xkdmligo\",\"prefixSize\":\"brxk\",\"suffixSize\":\"loazuruocbgoo\",\"replacementString\":\"te\"},\"location\":\"bfhjxakvvjgsl\",\"kind\":\"dilmyww\",\"id\":\"kgkxn\",\"name\":\"edabgyvudtjue\",\"type\":\"bcihxuuwhc\"},{\"properties\":{\"id\":\"ccybvp\",\"aliasName\":\"akkud\",\"ruleState\":\"Enabled\",\"schemaName\":\"gwjplmag\",\"tableName\":\"tcyohpfkyrk\",\"columnName\":\"bdgiogsjk\",\"maskingFunction\":\"Email\",\"numberFrom\":\"qjnobaiyhddviac\",\"numberTo\":\"fnmntfpmvmemfn\",\"prefixSize\":\"dwvvba\",\"suffixSize\":\"lllchpodb\",\"replacementString\":\"vwrdnhfukuvsj\"},\"location\":\"wsmystuluqypf\",\"kind\":\"lerchpq\",\"id\":\"mfpjbabw\",\"name\":\"dfc\",\"type\":\"sspuunnoxyhkx\"}]}") + "{\"value\":[{\"properties\":{\"id\":\"bgsxgnxfyqonmpq\",\"aliasName\":\"wdofdbxiqx\",\"ruleState\":\"Disabled\",\"schemaName\":\"qbi\",\"tableName\":\"htmwwinh\",\"columnName\":\"hfqpofv\",\"maskingFunction\":\"Email\",\"numberFrom\":\"blembnkbwvqvxkd\",\"numberTo\":\"qihebw\",\"prefixSize\":\"wbzuwfmdurage\",\"suffixSize\":\"zvcjfelisdjubggb\",\"replacementString\":\"gkxkbsazgakg\"},\"location\":\"yrcmjdmspofap\",\"kind\":\"hryl\",\"id\":\"iofrzgbzjedmstk\",\"name\":\"nlvxbcuii\",\"type\":\"nktwfansnvpdibmi\"},{\"properties\":{\"id\":\"tbzbkiwbuqnyophz\",\"aliasName\":\"l\",\"ruleState\":\"Enabled\",\"schemaName\":\"rpfbcunezz\",\"tableName\":\"e\",\"columnName\":\"elfwy\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"wx\",\"numberTo\":\"etnpsihcl\",\"prefixSize\":\"zvaylptrsqqw\",\"suffixSize\":\"cmwqkchcxwa\",\"replacementString\":\"ewzjkjexfd\"},\"location\":\"vhpsylkkshkbffmb\",\"kind\":\"zjrgyww\",\"id\":\"gjxsnptfu\",\"name\":\"gicgaaoepttaq\",\"type\":\"tdewemxswvruu\"}]}") .toObject(DataMaskingRuleListResult.class); - Assertions.assertEquals("mblrrilbywd", model.value().get(0).aliasName()); - Assertions.assertEquals(DataMaskingRuleState.ENABLED, model.value().get(0).ruleState()); - Assertions.assertEquals("icc", model.value().get(0).schemaName()); - Assertions.assertEquals("rwfscjfnynszquj", model.value().get(0).tableName()); - Assertions.assertEquals("zdvoqytibyowbb", model.value().get(0).columnName()); - Assertions.assertEquals(DataMaskingFunction.CCN, model.value().get(0).maskingFunction()); - Assertions.assertEquals("avu", model.value().get(0).numberFrom()); - Assertions.assertEquals("thjoxoism", model.value().get(0).numberTo()); - Assertions.assertEquals("sbpimlq", model.value().get(0).prefixSize()); - Assertions.assertEquals("jxkcgxxlxsff", model.value().get(0).suffixSize()); - Assertions.assertEquals("vizqzdwl", model.value().get(0).replacementString()); + Assertions.assertEquals("wdofdbxiqx", model.value().get(0).aliasName()); + Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.value().get(0).ruleState()); + Assertions.assertEquals("qbi", model.value().get(0).schemaName()); + Assertions.assertEquals("htmwwinh", model.value().get(0).tableName()); + Assertions.assertEquals("hfqpofv", model.value().get(0).columnName()); + Assertions.assertEquals(DataMaskingFunction.EMAIL, model.value().get(0).maskingFunction()); + Assertions.assertEquals("blembnkbwvqvxkd", model.value().get(0).numberFrom()); + Assertions.assertEquals("qihebw", model.value().get(0).numberTo()); + Assertions.assertEquals("wbzuwfmdurage", model.value().get(0).prefixSize()); + Assertions.assertEquals("zvcjfelisdjubggb", model.value().get(0).suffixSize()); + Assertions.assertEquals("gkxkbsazgakg", model.value().get(0).replacementString()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DataMaskingRuleListResult model = new DataMaskingRuleListResult().withValue(Arrays.asList( - new DataMaskingRuleInner().withAliasName("mblrrilbywd") - .withRuleState(DataMaskingRuleState.ENABLED) - .withSchemaName("icc") - .withTableName("rwfscjfnynszquj") - .withColumnName("zdvoqytibyowbb") - .withMaskingFunction(DataMaskingFunction.CCN) - .withNumberFrom("avu") - .withNumberTo("thjoxoism") - .withPrefixSize("sbpimlq") - .withSuffixSize("jxkcgxxlxsff") - .withReplacementString("vizqzdwl"), - new DataMaskingRuleInner().withAliasName("pjui") + new DataMaskingRuleInner().withAliasName("wdofdbxiqx") .withRuleState(DataMaskingRuleState.DISABLED) - .withSchemaName("okqdzfvaz") - .withTableName("vjlfrqtt") - .withColumnName("ajlkatnw") - .withMaskingFunction(DataMaskingFunction.NUMBER) - .withNumberFrom("opidkqqfkuv") - .withNumberTo("xkdmligo") - .withPrefixSize("brxk") - .withSuffixSize("loazuruocbgoo") - .withReplacementString("te"), - new DataMaskingRuleInner().withAliasName("akkud") - .withRuleState(DataMaskingRuleState.ENABLED) - .withSchemaName("gwjplmag") - .withTableName("tcyohpfkyrk") - .withColumnName("bdgiogsjk") + .withSchemaName("qbi") + .withTableName("htmwwinh") + .withColumnName("hfqpofv") .withMaskingFunction(DataMaskingFunction.EMAIL) - .withNumberFrom("qjnobaiyhddviac") - .withNumberTo("fnmntfpmvmemfn") - .withPrefixSize("dwvvba") - .withSuffixSize("lllchpodb") - .withReplacementString("vwrdnhfukuvsj"))); + .withNumberFrom("blembnkbwvqvxkd") + .withNumberTo("qihebw") + .withPrefixSize("wbzuwfmdurage") + .withSuffixSize("zvcjfelisdjubggb") + .withReplacementString("gkxkbsazgakg"), + new DataMaskingRuleInner().withAliasName("l") + .withRuleState(DataMaskingRuleState.ENABLED) + .withSchemaName("rpfbcunezz") + .withTableName("e") + .withColumnName("elfwy") + .withMaskingFunction(DataMaskingFunction.CCN) + .withNumberFrom("wx") + .withNumberTo("etnpsihcl") + .withPrefixSize("zvaylptrsqqw") + .withSuffixSize("cmwqkchcxwa") + .withReplacementString("ewzjkjexfd"))); model = BinaryData.fromObject(model).toObject(DataMaskingRuleListResult.class); - Assertions.assertEquals("mblrrilbywd", model.value().get(0).aliasName()); - Assertions.assertEquals(DataMaskingRuleState.ENABLED, model.value().get(0).ruleState()); - Assertions.assertEquals("icc", model.value().get(0).schemaName()); - Assertions.assertEquals("rwfscjfnynszquj", model.value().get(0).tableName()); - Assertions.assertEquals("zdvoqytibyowbb", model.value().get(0).columnName()); - Assertions.assertEquals(DataMaskingFunction.CCN, model.value().get(0).maskingFunction()); - Assertions.assertEquals("avu", model.value().get(0).numberFrom()); - Assertions.assertEquals("thjoxoism", model.value().get(0).numberTo()); - Assertions.assertEquals("sbpimlq", model.value().get(0).prefixSize()); - Assertions.assertEquals("jxkcgxxlxsff", model.value().get(0).suffixSize()); - Assertions.assertEquals("vizqzdwl", model.value().get(0).replacementString()); + Assertions.assertEquals("wdofdbxiqx", model.value().get(0).aliasName()); + Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.value().get(0).ruleState()); + Assertions.assertEquals("qbi", model.value().get(0).schemaName()); + Assertions.assertEquals("htmwwinh", model.value().get(0).tableName()); + Assertions.assertEquals("hfqpofv", model.value().get(0).columnName()); + Assertions.assertEquals(DataMaskingFunction.EMAIL, model.value().get(0).maskingFunction()); + Assertions.assertEquals("blembnkbwvqvxkd", model.value().get(0).numberFrom()); + Assertions.assertEquals("qihebw", model.value().get(0).numberTo()); + Assertions.assertEquals("wbzuwfmdurage", model.value().get(0).prefixSize()); + Assertions.assertEquals("zvcjfelisdjubggb", model.value().get(0).suffixSize()); + Assertions.assertEquals("gkxkbsazgakg", model.value().get(0).replacementString()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulePropertiesTests.java index 3d6e7450ded4..de6136de65e0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulePropertiesTests.java @@ -14,45 +14,45 @@ public final class DataMaskingRulePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataMaskingRuleProperties model = BinaryData.fromString( - "{\"id\":\"wbqpl\",\"aliasName\":\"vnuuepzl\",\"ruleState\":\"Disabled\",\"schemaName\":\"wzsoldweyuqdunv\",\"tableName\":\"nnrwrbiork\",\"columnName\":\"alywjhhgdn\",\"maskingFunction\":\"Text\",\"numberFrom\":\"sivfomilo\",\"numberTo\":\"gdufiqnd\",\"prefixSize\":\"uzaofjchvcyyy\",\"suffixSize\":\"gdotcubiipuipwo\",\"replacementString\":\"nmacj\"}") + "{\"id\":\"zuawxtzxpuamwa\",\"aliasName\":\"xrvxcushsphai\",\"ruleState\":\"Enabled\",\"schemaName\":\"yasflvgsgzwy\",\"tableName\":\"akoi\",\"columnName\":\"knsmjblmljhlnymz\",\"maskingFunction\":\"Default\",\"numberFrom\":\"yryuzcb\",\"numberTo\":\"qvx\",\"prefixSize\":\"wfgtayxonsup\",\"suffixSize\":\"jlzqnhc\",\"replacementString\":\"ql\"}") .toObject(DataMaskingRuleProperties.class); - Assertions.assertEquals("vnuuepzl", model.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.ruleState()); - Assertions.assertEquals("wzsoldweyuqdunv", model.schemaName()); - Assertions.assertEquals("nnrwrbiork", model.tableName()); - Assertions.assertEquals("alywjhhgdn", model.columnName()); - Assertions.assertEquals(DataMaskingFunction.TEXT, model.maskingFunction()); - Assertions.assertEquals("sivfomilo", model.numberFrom()); - Assertions.assertEquals("gdufiqnd", model.numberTo()); - Assertions.assertEquals("uzaofjchvcyyy", model.prefixSize()); - Assertions.assertEquals("gdotcubiipuipwo", model.suffixSize()); - Assertions.assertEquals("nmacj", model.replacementString()); + Assertions.assertEquals("xrvxcushsphai", model.aliasName()); + Assertions.assertEquals(DataMaskingRuleState.ENABLED, model.ruleState()); + Assertions.assertEquals("yasflvgsgzwy", model.schemaName()); + Assertions.assertEquals("akoi", model.tableName()); + Assertions.assertEquals("knsmjblmljhlnymz", model.columnName()); + Assertions.assertEquals(DataMaskingFunction.DEFAULT, model.maskingFunction()); + Assertions.assertEquals("yryuzcb", model.numberFrom()); + Assertions.assertEquals("qvx", model.numberTo()); + Assertions.assertEquals("wfgtayxonsup", model.prefixSize()); + Assertions.assertEquals("jlzqnhc", model.suffixSize()); + Assertions.assertEquals("ql", model.replacementString()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DataMaskingRuleProperties model = new DataMaskingRuleProperties().withAliasName("vnuuepzl") - .withRuleState(DataMaskingRuleState.DISABLED) - .withSchemaName("wzsoldweyuqdunv") - .withTableName("nnrwrbiork") - .withColumnName("alywjhhgdn") - .withMaskingFunction(DataMaskingFunction.TEXT) - .withNumberFrom("sivfomilo") - .withNumberTo("gdufiqnd") - .withPrefixSize("uzaofjchvcyyy") - .withSuffixSize("gdotcubiipuipwo") - .withReplacementString("nmacj"); + DataMaskingRuleProperties model = new DataMaskingRuleProperties().withAliasName("xrvxcushsphai") + .withRuleState(DataMaskingRuleState.ENABLED) + .withSchemaName("yasflvgsgzwy") + .withTableName("akoi") + .withColumnName("knsmjblmljhlnymz") + .withMaskingFunction(DataMaskingFunction.DEFAULT) + .withNumberFrom("yryuzcb") + .withNumberTo("qvx") + .withPrefixSize("wfgtayxonsup") + .withSuffixSize("jlzqnhc") + .withReplacementString("ql"); model = BinaryData.fromObject(model).toObject(DataMaskingRuleProperties.class); - Assertions.assertEquals("vnuuepzl", model.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.ruleState()); - Assertions.assertEquals("wzsoldweyuqdunv", model.schemaName()); - Assertions.assertEquals("nnrwrbiork", model.tableName()); - Assertions.assertEquals("alywjhhgdn", model.columnName()); - Assertions.assertEquals(DataMaskingFunction.TEXT, model.maskingFunction()); - Assertions.assertEquals("sivfomilo", model.numberFrom()); - Assertions.assertEquals("gdufiqnd", model.numberTo()); - Assertions.assertEquals("uzaofjchvcyyy", model.prefixSize()); - Assertions.assertEquals("gdotcubiipuipwo", model.suffixSize()); - Assertions.assertEquals("nmacj", model.replacementString()); + Assertions.assertEquals("xrvxcushsphai", model.aliasName()); + Assertions.assertEquals(DataMaskingRuleState.ENABLED, model.ruleState()); + Assertions.assertEquals("yasflvgsgzwy", model.schemaName()); + Assertions.assertEquals("akoi", model.tableName()); + Assertions.assertEquals("knsmjblmljhlnymz", model.columnName()); + Assertions.assertEquals(DataMaskingFunction.DEFAULT, model.maskingFunction()); + Assertions.assertEquals("yryuzcb", model.numberFrom()); + Assertions.assertEquals("qvx", model.numberTo()); + Assertions.assertEquals("wfgtayxonsup", model.prefixSize()); + Assertions.assertEquals("jlzqnhc", model.suffixSize()); + Assertions.assertEquals("ql", model.replacementString()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateWithResponseMockTests.java index c0b210636dc8..8fb1ea76faf1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class DataMaskingRulesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"id\":\"imrljdp\",\"aliasName\":\"fxyemhkftbaewh\",\"ruleState\":\"Enabled\",\"schemaName\":\"loamfmxtllfltym\",\"tableName\":\"cn\",\"columnName\":\"rfijhggabq\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"mkli\",\"numberTo\":\"rwdvffhsdpzou\",\"prefixSize\":\"tqrxqwqnjxrdf\",\"suffixSize\":\"t\",\"replacementString\":\"lygtavczcxdfweap\"},\"location\":\"mlx\",\"kind\":\"jphrasp\",\"id\":\"fleimixlmd\",\"name\":\"gicehfgsmdr\",\"type\":\"uq\"}"; + = "{\"properties\":{\"id\":\"h\",\"aliasName\":\"pter\",\"ruleState\":\"Disabled\",\"schemaName\":\"wki\",\"tableName\":\"kskw\",\"columnName\":\"tsdetjygowifcq\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"zkgysdgzyybzoxlv\",\"numberTo\":\"ptvdxxheigm\",\"prefixSize\":\"lwzgh\",\"suffixSize\":\"jvmabzzbway\",\"replacementString\":\"mdafbgymqt\"},\"location\":\"preojxrjnbsconxa\",\"kind\":\"pney\",\"id\":\"hbjizqfsgnwdx\",\"name\":\"edpqlrfbo\",\"type\":\"xi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,31 +33,31 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); DataMaskingRule response = manager.dataMaskingRules() - .define("fqpgaixwrgr") - .withExistingSqlPool("vczdjiahuqymjzu", "wwmejjqhddwvmqx", "yookyfozkbnzxby") - .withAliasName("wqikwepwogggic") + .define("bwjtrdx") + .withExistingSqlPool("f", "zsifcuvbdujgcwx", "ec") + .withAliasName("sy") .withRuleState(DataMaskingRuleState.ENABLED) - .withSchemaName("htfmcqbsudzpgc") - .withTableName("zpgf") - .withColumnName("umjdjxhzghg") - .withMaskingFunction(DataMaskingFunction.SSN) - .withNumberFrom("ynrceqavfdbdf") - .withNumberTo("xjdnajuo") - .withPrefixSize("y") - .withSuffixSize("mk") - .withReplacementString("hvcw") + .withSchemaName("dqxwabzrwiqrxhac") + .withTableName("cdosqkptj") + .withColumnName("gkifmmainwh") + .withMaskingFunction(DataMaskingFunction.EMAIL) + .withNumberFrom("kp") + .withNumberTo("wuntobuiz") + .withPrefixSize("zelwgvydjufbnkl") + .withSuffixSize("axpegjw") + .withReplacementString("bal") .create(); - Assertions.assertEquals("fxyemhkftbaewh", response.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.ENABLED, response.ruleState()); - Assertions.assertEquals("loamfmxtllfltym", response.schemaName()); - Assertions.assertEquals("cn", response.tableName()); - Assertions.assertEquals("rfijhggabq", response.columnName()); + Assertions.assertEquals("pter", response.aliasName()); + Assertions.assertEquals(DataMaskingRuleState.DISABLED, response.ruleState()); + Assertions.assertEquals("wki", response.schemaName()); + Assertions.assertEquals("kskw", response.tableName()); + Assertions.assertEquals("tsdetjygowifcq", response.columnName()); Assertions.assertEquals(DataMaskingFunction.CCN, response.maskingFunction()); - Assertions.assertEquals("mkli", response.numberFrom()); - Assertions.assertEquals("rwdvffhsdpzou", response.numberTo()); - Assertions.assertEquals("tqrxqwqnjxrdf", response.prefixSize()); - Assertions.assertEquals("t", response.suffixSize()); - Assertions.assertEquals("lygtavczcxdfweap", response.replacementString()); + Assertions.assertEquals("zkgysdgzyybzoxlv", response.numberFrom()); + Assertions.assertEquals("ptvdxxheigm", response.numberTo()); + Assertions.assertEquals("lwzgh", response.prefixSize()); + Assertions.assertEquals("jvmabzzbway", response.suffixSize()); + Assertions.assertEquals("mdafbgymqt", response.replacementString()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetWithResponseMockTests.java index cedff83af567..888be25cf556 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class DataMaskingRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"id\":\"walzyxwhoeamoeo\",\"aliasName\":\"oeysfp\",\"ruleState\":\"Disabled\",\"schemaName\":\"twuuhauegnk\",\"tableName\":\"mnfeub\",\"columnName\":\"zjy\",\"maskingFunction\":\"Number\",\"numberFrom\":\"fugiphrrkuu\",\"numberTo\":\"qdurhzzfopue\",\"prefixSize\":\"usvwluj\",\"suffixSize\":\"wnibittoz\",\"replacementString\":\"dqumqvfm\"},\"location\":\"ad\",\"kind\":\"gctxegtvgwyur\",\"id\":\"elfnzzryiz\",\"name\":\"bxgde\",\"type\":\"xlayunomir\"}"; + = "{\"properties\":{\"id\":\"a\",\"aliasName\":\"janormovdxxu\",\"ruleState\":\"Disabled\",\"schemaName\":\"ujmoi\",\"tableName\":\"unwemhd\",\"columnName\":\"e\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"lkyozdsfzj\",\"numberTo\":\"grhrh\",\"prefixSize\":\"l\",\"suffixSize\":\"tv\",\"replacementString\":\"nxvgjb\"},\"location\":\"obpnjodf\",\"kind\":\"jqqwmtqsmoxsazu\",\"id\":\"ejgwe\",\"name\":\"ywnfyszzaczs\",\"type\":\"nqbdnddbboz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); DataMaskingRule response = manager.dataMaskingRules() - .getWithResponse("gyuqwrldaxurfqa", "csozjv", "dzciggb", "vt", com.azure.core.util.Context.NONE) + .getWithResponse("harls", "rncclabv", "yngsuxxcz", "myqjog", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("oeysfp", response.aliasName()); + Assertions.assertEquals("janormovdxxu", response.aliasName()); Assertions.assertEquals(DataMaskingRuleState.DISABLED, response.ruleState()); - Assertions.assertEquals("twuuhauegnk", response.schemaName()); - Assertions.assertEquals("mnfeub", response.tableName()); - Assertions.assertEquals("zjy", response.columnName()); - Assertions.assertEquals(DataMaskingFunction.NUMBER, response.maskingFunction()); - Assertions.assertEquals("fugiphrrkuu", response.numberFrom()); - Assertions.assertEquals("qdurhzzfopue", response.numberTo()); - Assertions.assertEquals("usvwluj", response.prefixSize()); - Assertions.assertEquals("wnibittoz", response.suffixSize()); - Assertions.assertEquals("dqumqvfm", response.replacementString()); + Assertions.assertEquals("ujmoi", response.schemaName()); + Assertions.assertEquals("unwemhd", response.tableName()); + Assertions.assertEquals("e", response.columnName()); + Assertions.assertEquals(DataMaskingFunction.CCN, response.maskingFunction()); + Assertions.assertEquals("lkyozdsfzj", response.numberFrom()); + Assertions.assertEquals("grhrh", response.numberTo()); + Assertions.assertEquals("l", response.prefixSize()); + Assertions.assertEquals("tv", response.suffixSize()); + Assertions.assertEquals("nxvgjb", response.replacementString()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolMockTests.java index 1a43d88546fa..297fd148b608 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolMockTests.java @@ -24,7 +24,7 @@ public final class DataMaskingRulesListBySqlPoolMockTests { @Test public void testListBySqlPool() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"id\":\"nbcpjstbhemhcucs\",\"aliasName\":\"nxfbx\",\"ruleState\":\"Enabled\",\"schemaName\":\"apdrbzyvbsuadu\",\"tableName\":\"pod\",\"columnName\":\"axpfobkzhmhj\",\"maskingFunction\":\"Number\",\"numberFrom\":\"tdeluqrojadhfzt\",\"numberTo\":\"aysrkgzky\",\"prefixSize\":\"dbkuwpzqxlcwe\",\"suffixSize\":\"fecjvxf\",\"replacementString\":\"ufqizjvppw\"},\"location\":\"a\",\"kind\":\"yyjmjjxiz\",\"id\":\"pxhn\",\"name\":\"lslekcttgzkj\",\"type\":\"yqpdwadeghztld\"}]}"; + = "{\"value\":[{\"properties\":{\"id\":\"pmnoejhqlf\",\"aliasName\":\"ibzoyrfgxky\",\"ruleState\":\"Enabled\",\"schemaName\":\"yp\",\"tableName\":\"fqvmtywhla\",\"columnName\":\"xpejpewpy\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"xampqcr\",\"numberTo\":\"euqxbpiatwfa\",\"prefixSize\":\"egqdtadrakgd\",\"suffixSize\":\"jkrukizyhgsqtnqs\",\"replacementString\":\"xqfpj\"},\"location\":\"ggweeiwdhdmncgb\",\"kind\":\"uscstunmlh\",\"id\":\"dfb\",\"name\":\"lciichgjs\",\"type\":\"smvxodgw\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,18 +34,18 @@ public void testListBySqlPool() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.dataMaskingRules().listBySqlPool("p", "abenqlamwmg", "way", com.azure.core.util.Context.NONE); + = manager.dataMaskingRules().listBySqlPool("yvrmkjm", "it", "chwudlxee", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nxfbx", response.iterator().next().aliasName()); + Assertions.assertEquals("ibzoyrfgxky", response.iterator().next().aliasName()); Assertions.assertEquals(DataMaskingRuleState.ENABLED, response.iterator().next().ruleState()); - Assertions.assertEquals("apdrbzyvbsuadu", response.iterator().next().schemaName()); - Assertions.assertEquals("pod", response.iterator().next().tableName()); - Assertions.assertEquals("axpfobkzhmhj", response.iterator().next().columnName()); - Assertions.assertEquals(DataMaskingFunction.NUMBER, response.iterator().next().maskingFunction()); - Assertions.assertEquals("tdeluqrojadhfzt", response.iterator().next().numberFrom()); - Assertions.assertEquals("aysrkgzky", response.iterator().next().numberTo()); - Assertions.assertEquals("dbkuwpzqxlcwe", response.iterator().next().prefixSize()); - Assertions.assertEquals("fecjvxf", response.iterator().next().suffixSize()); - Assertions.assertEquals("ufqizjvppw", response.iterator().next().replacementString()); + Assertions.assertEquals("yp", response.iterator().next().schemaName()); + Assertions.assertEquals("fqvmtywhla", response.iterator().next().tableName()); + Assertions.assertEquals("xpejpewpy", response.iterator().next().columnName()); + Assertions.assertEquals(DataMaskingFunction.CCN, response.iterator().next().maskingFunction()); + Assertions.assertEquals("xampqcr", response.iterator().next().numberFrom()); + Assertions.assertEquals("euqxbpiatwfa", response.iterator().next().numberTo()); + Assertions.assertEquals("egqdtadrakgd", response.iterator().next().prefixSize()); + Assertions.assertEquals("jkrukizyhgsqtnqs", response.iterator().next().suffixSize()); + Assertions.assertEquals("xqfpj", response.iterator().next().replacementString()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesInnerTests.java index 54e059ac2e39..0245a67cd913 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesInnerTests.java @@ -11,7 +11,7 @@ public final class DataWarehouseUserActivitiesInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataWarehouseUserActivitiesInner model = BinaryData.fromString( - "{\"properties\":{\"activeQueriesCount\":883294723},\"id\":\"uwz\",\"name\":\"zxb\",\"type\":\"pgcjefuzmuvp\"}") + "{\"properties\":{\"activeQueriesCount\":1264679400},\"id\":\"zaofjchvcyy\",\"name\":\"s\",\"type\":\"gdotcubiipuipwo\"}") .toObject(DataWarehouseUserActivitiesInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesPropertiesTests.java index 2e37ebecb4f1..e6a4c3499f00 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesPropertiesTests.java @@ -10,7 +10,7 @@ public final class DataWarehouseUserActivitiesPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DataWarehouseUserActivitiesProperties model = BinaryData.fromString("{\"activeQueriesCount\":887975126}") + DataWarehouseUserActivitiesProperties model = BinaryData.fromString("{\"activeQueriesCount\":1120696384}") .toObject(DataWarehouseUserActivitiesProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseCheckNameRequestTests.java deleted file mode 100644 index 3691994b4b22..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseCheckNameRequestTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Type; -import org.junit.jupiter.api.Assertions; - -public final class DatabaseCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabaseCheckNameRequest model = BinaryData - .fromString("{\"name\":\"zucafeddww\",\"type\":\"Microsoft.Synapse/workspaces/kustoPools/databases\"}") - .toObject(DatabaseCheckNameRequest.class); - Assertions.assertEquals("zucafeddww", model.name()); - Assertions.assertEquals(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabaseCheckNameRequest model = new DatabaseCheckNameRequest().withName("zucafeddww") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES); - model = BinaryData.fromObject(model).toObject(DatabaseCheckNameRequest.class); - Assertions.assertEquals("zucafeddww", model.name()); - Assertions.assertEquals(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES, model.type()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseInnerTests.java deleted file mode 100644 index e210add63511..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import org.junit.jupiter.api.Assertions; - -public final class DatabaseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabaseInner model = BinaryData.fromString( - "{\"kind\":\"Database\",\"location\":\"yl\",\"id\":\"igvxvatvcrk\",\"name\":\"lbnb\",\"type\":\"xvhcs\"}") - .toObject(DatabaseInner.class); - Assertions.assertEquals("yl", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabaseInner model = new DatabaseInner().withLocation("yl"); - model = BinaryData.fromObject(model).toObject(DatabaseInner.class); - Assertions.assertEquals("yl", model.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseListResultTests.java deleted file mode 100644 index 8fcce3633aa9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseListResultTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.DatabaseListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DatabaseListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabaseListResult model = BinaryData.fromString( - "{\"value\":[{\"kind\":\"Database\",\"location\":\"sgftipwc\",\"id\":\"yubhiqdx\",\"name\":\"urnpnuhzafccnuh\",\"type\":\"i\"}]}") - .toObject(DatabaseListResult.class); - Assertions.assertEquals("sgftipwc", model.value().get(0).location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabaseListResult model - = new DatabaseListResult().withValue(Arrays.asList(new DatabaseInner().withLocation("sgftipwc"))); - model = BinaryData.fromObject(model).toObject(DatabaseListResult.class); - Assertions.assertEquals("sgftipwc", model.value().get(0).location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentCheckNameRequestTests.java deleted file mode 100644 index 27ad768494fb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentCheckNameRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePrincipalAssignmentCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePrincipalAssignmentCheckNameRequest model = BinaryData.fromString("{\"name\":\"kwqpat\"}") - .toObject(DatabasePrincipalAssignmentCheckNameRequest.class); - Assertions.assertEquals("kwqpat", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePrincipalAssignmentCheckNameRequest model - = new DatabasePrincipalAssignmentCheckNameRequest().withName("kwqpat"); - model = BinaryData.fromObject(model).toObject(DatabasePrincipalAssignmentCheckNameRequest.class); - Assertions.assertEquals("kwqpat", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentInnerTests.java deleted file mode 100644 index c7000855d4bc..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentInnerTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePrincipalAssignmentInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePrincipalAssignmentInner model = BinaryData.fromString( - "{\"properties\":{\"principalId\":\"ulodsaeuzanhsfnh\",\"role\":\"Monitor\",\"tenantId\":\"wphpzfngqj\",\"principalType\":\"User\",\"tenantName\":\"dftujwjjufwbeqr\",\"principalName\":\"orhtss\",\"provisioningState\":\"Canceled\",\"aadObjectId\":\"mdvhazcvjy\"},\"id\":\"qswbqerzwx\",\"name\":\"ytxtdgu\",\"type\":\"vlbpktgdstyou\"}") - .toObject(DatabasePrincipalAssignmentInner.class); - Assertions.assertEquals("ulodsaeuzanhsfnh", model.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.MONITOR, model.role()); - Assertions.assertEquals("wphpzfngqj", model.tenantId()); - Assertions.assertEquals(PrincipalType.USER, model.principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePrincipalAssignmentInner model - = new DatabasePrincipalAssignmentInner().withPrincipalId("ulodsaeuzanhsfnh") - .withRole(DatabasePrincipalRole.MONITOR) - .withTenantId("wphpzfngqj") - .withPrincipalType(PrincipalType.USER); - model = BinaryData.fromObject(model).toObject(DatabasePrincipalAssignmentInner.class); - Assertions.assertEquals("ulodsaeuzanhsfnh", model.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.MONITOR, model.role()); - Assertions.assertEquals("wphpzfngqj", model.tenantId()); - Assertions.assertEquals(PrincipalType.USER, model.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentListResultTests.java deleted file mode 100644 index e933cd1b2528..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentListResultTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentListResult; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePrincipalAssignmentListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePrincipalAssignmentListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"principalId\":\"dtcjbctv\",\"role\":\"Admin\",\"tenantId\":\"zqymtuowogtgits\",\"principalType\":\"Group\",\"tenantName\":\"vbrzcdb\",\"principalName\":\"fzndscxmxeatkd\",\"provisioningState\":\"Moving\",\"aadObjectId\":\"rdjyibqb\"},\"id\":\"omhjrmkuhm\",\"name\":\"xljalfihc\",\"type\":\"mobcan\"},{\"properties\":{\"principalId\":\"exxqcwg\",\"role\":\"Monitor\",\"tenantId\":\"gvaknokzwjjzrl\",\"principalType\":\"App\",\"tenantName\":\"l\",\"principalName\":\"yyfytpqsixymm\",\"provisioningState\":\"Canceled\",\"aadObjectId\":\"vyqlkjuvsmbmslzo\"},\"id\":\"vwzdbpqvyb\",\"name\":\"fgvmx\",\"type\":\"okcvtlubses\"},{\"properties\":{\"principalId\":\"cua\",\"role\":\"Viewer\",\"tenantId\":\"hunlpirykycnd\",\"principalType\":\"Group\",\"tenantName\":\"ivjreuyk\",\"principalName\":\"mnwagltbxoe\",\"provisioningState\":\"Failed\",\"aadObjectId\":\"lnf\"},\"id\":\"y\",\"name\":\"mvqdbpbhfckdvez\",\"type\":\"rcssbzhddubbnq\"},{\"properties\":{\"principalId\":\"lhkalehpavawugi\",\"role\":\"Monitor\",\"tenantId\":\"iogqgdminictte\",\"principalType\":\"App\",\"tenantName\":\"hi\",\"principalName\":\"spnbonhpcz\",\"provisioningState\":\"Succeeded\",\"aadObjectId\":\"tp\"},\"id\":\"xqcsehch\",\"name\":\"hufmpq\",\"type\":\"mqyjgy\"}]}") - .toObject(DatabasePrincipalAssignmentListResult.class); - Assertions.assertEquals("dtcjbctv", model.value().get(0).principalId()); - Assertions.assertEquals(DatabasePrincipalRole.ADMIN, model.value().get(0).role()); - Assertions.assertEquals("zqymtuowogtgits", model.value().get(0).tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.value().get(0).principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePrincipalAssignmentListResult model - = new DatabasePrincipalAssignmentListResult().withValue(Arrays.asList( - new DatabasePrincipalAssignmentInner().withPrincipalId("dtcjbctv") - .withRole(DatabasePrincipalRole.ADMIN) - .withTenantId("zqymtuowogtgits") - .withPrincipalType(PrincipalType.GROUP), - new DatabasePrincipalAssignmentInner().withPrincipalId("exxqcwg") - .withRole(DatabasePrincipalRole.MONITOR) - .withTenantId("gvaknokzwjjzrl") - .withPrincipalType(PrincipalType.APP), - new DatabasePrincipalAssignmentInner().withPrincipalId("cua") - .withRole(DatabasePrincipalRole.VIEWER) - .withTenantId("hunlpirykycnd") - .withPrincipalType(PrincipalType.GROUP), - new DatabasePrincipalAssignmentInner().withPrincipalId("lhkalehpavawugi") - .withRole(DatabasePrincipalRole.MONITOR) - .withTenantId("iogqgdminictte") - .withPrincipalType(PrincipalType.APP))); - model = BinaryData.fromObject(model).toObject(DatabasePrincipalAssignmentListResult.class); - Assertions.assertEquals("dtcjbctv", model.value().get(0).principalId()); - Assertions.assertEquals(DatabasePrincipalRole.ADMIN, model.value().get(0).role()); - Assertions.assertEquals("zqymtuowogtgits", model.value().get(0).tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.value().get(0).principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalPropertiesTests.java deleted file mode 100644 index e14aa11f9655..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalPropertiesTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalProperties; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePrincipalPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePrincipalProperties model = BinaryData.fromString( - "{\"principalId\":\"mbewreswmo\",\"role\":\"UnrestrictedViewer\",\"tenantId\":\"mmuteyxeyguq\",\"principalType\":\"Group\",\"tenantName\":\"jiitnspxlzdesygr\",\"principalName\":\"waiufanra\",\"provisioningState\":\"Succeeded\",\"aadObjectId\":\"eqfrojs\"}") - .toObject(DatabasePrincipalProperties.class); - Assertions.assertEquals("mbewreswmo", model.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.UNRESTRICTED_VIEWER, model.role()); - Assertions.assertEquals("mmuteyxeyguq", model.tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePrincipalProperties model = new DatabasePrincipalProperties().withPrincipalId("mbewreswmo") - .withRole(DatabasePrincipalRole.UNRESTRICTED_VIEWER) - .withTenantId("mmuteyxeyguq") - .withPrincipalType(PrincipalType.GROUP); - model = BinaryData.fromObject(model).toObject(DatabasePrincipalProperties.class); - Assertions.assertEquals("mbewreswmo", model.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.UNRESTRICTED_VIEWER, model.role()); - Assertions.assertEquals("mmuteyxeyguq", model.tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseStatisticsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseStatisticsTests.java deleted file mode 100644 index 734cb2c63b4e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseStatisticsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DatabaseStatistics; -import org.junit.jupiter.api.Assertions; - -public final class DatabaseStatisticsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabaseStatistics model = BinaryData.fromString("{\"size\":55.453064}").toObject(DatabaseStatistics.class); - Assertions.assertEquals(55.453064F, model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabaseStatistics model = new DatabaseStatistics().withSize(55.453064F); - model = BinaryData.fromObject(model).toObject(DatabaseStatistics.class); - Assertions.assertEquals(55.453064F, model.size()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsInnerTests.java deleted file mode 100644 index 9736e8bf1a7e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsInnerTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import org.junit.jupiter.api.Assertions; - -public final class DedicatedSQLminimalTlsSettingsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DedicatedSQLminimalTlsSettingsInner model = BinaryData.fromString( - "{\"location\":\"buzjyih\",\"properties\":{\"minimalTlsVersion\":\"bhu\"},\"id\":\"ypoh\",\"name\":\"uemsly\",\"type\":\"sqy\"}") - .toObject(DedicatedSQLminimalTlsSettingsInner.class); - Assertions.assertEquals("bhu", model.minimalTlsVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DedicatedSQLminimalTlsSettingsInner model - = new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("bhu"); - model = BinaryData.fromObject(model).toObject(DedicatedSQLminimalTlsSettingsInner.class); - Assertions.assertEquals("bhu", model.minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsListResultTests.java deleted file mode 100644 index 31a8e141852d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettingsListResult; - -public final class DedicatedSQLminimalTlsSettingsListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DedicatedSQLminimalTlsSettingsListResult model = BinaryData.fromString( - "{\"value\":[{\"location\":\"qdnfwqzdz\",\"properties\":{\"minimalTlsVersion\":\"la\"},\"id\":\"hnfhqlyvijouwi\",\"name\":\"kxoyzunbixxr\",\"type\":\"ikvcpwp\"},{\"location\":\"lrcivtsoxfrke\",\"properties\":{\"minimalTlsVersion\":\"m\"},\"id\":\"yefrpmpdnqqska\",\"name\":\"ao\",\"type\":\"vmm\"},{\"location\":\"pqfrtqlkz\",\"properties\":{\"minimalTlsVersion\":\"nitgvkxlz\"},\"id\":\"qdrfegcealzxwhc\",\"name\":\"nsymoyqhlwigd\",\"type\":\"vbkbxgomf\"}],\"nextLink\":\"uwasqvd\"}") - .toObject(DedicatedSQLminimalTlsSettingsListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DedicatedSQLminimalTlsSettingsListResult model = new DedicatedSQLminimalTlsSettingsListResult(); - model = BinaryData.fromObject(model).toObject(DedicatedSQLminimalTlsSettingsListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsPropertiesTests.java deleted file mode 100644 index 47d98e9f3191..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsProperties; -import org.junit.jupiter.api.Assertions; - -public final class DedicatedSQLminimalTlsSettingsPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DedicatedSQLminimalTlsSettingsProperties model - = BinaryData.fromString("{\"minimalTlsVersion\":\"foobrlttyms\"}") - .toObject(DedicatedSQLminimalTlsSettingsProperties.class); - Assertions.assertEquals("foobrlttyms", model.minimalTlsVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DedicatedSQLminimalTlsSettingsProperties model - = new DedicatedSQLminimalTlsSettingsProperties().withMinimalTlsVersion("foobrlttyms"); - model = BinaryData.fromObject(model).toObject(DedicatedSQLminimalTlsSettingsProperties.class); - Assertions.assertEquals("foobrlttyms", model.minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DynamicExecutorAllocationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DynamicExecutorAllocationTests.java index 1882e516d902..d67882a75015 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DynamicExecutorAllocationTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DynamicExecutorAllocationTests.java @@ -12,21 +12,14 @@ public final class DynamicExecutorAllocationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DynamicExecutorAllocation model - = BinaryData.fromString("{\"enabled\":false,\"minExecutors\":1155806912,\"maxExecutors\":605011869}") - .toObject(DynamicExecutorAllocation.class); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals(1155806912, model.minExecutors()); - Assertions.assertEquals(605011869, model.maxExecutors()); + = BinaryData.fromString("{\"enabled\":true}").toObject(DynamicExecutorAllocation.class); + Assertions.assertEquals(true, model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DynamicExecutorAllocation model = new DynamicExecutorAllocation().withEnabled(false) - .withMinExecutors(1155806912) - .withMaxExecutors(605011869); + DynamicExecutorAllocation model = new DynamicExecutorAllocation().withEnabled(true); model = BinaryData.fromObject(model).toObject(DynamicExecutorAllocation.class); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals(1155806912, model.minExecutors()); - Assertions.assertEquals(605011869, model.maxExecutors()); + Assertions.assertEquals(true, model.enabled()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityReferenceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityReferenceTests.java index 0e28c9f987d2..4fb6bd5accca 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityReferenceTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityReferenceTests.java @@ -13,19 +13,19 @@ public final class EntityReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EntityReference model - = BinaryData.fromString("{\"type\":\"IntegrationRuntimeReference\",\"referenceName\":\"ohykfkxbbcbrw\"}") + = BinaryData.fromString("{\"type\":\"LinkedServiceReference\",\"referenceName\":\"eeczgfbu\"}") .toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.type()); - Assertions.assertEquals("ohykfkxbbcbrw", model.referenceName()); + Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.type()); + Assertions.assertEquals("eeczgfbu", model.referenceName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EntityReference model - = new EntityReference().withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) - .withReferenceName("ohykfkxbbcbrw"); + = new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) + .withReferenceName("eeczgfbu"); model = BinaryData.fromObject(model).toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.type()); - Assertions.assertEquals("ohykfkxbbcbrw", model.referenceName()); + Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.type()); + Assertions.assertEquals("eeczgfbu", model.referenceName()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityResourceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityResourceTests.java index 7cd9ac1f1500..1cb7a1c14ed7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityResourceTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityResourceTests.java @@ -10,10 +10,9 @@ public final class EntityResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EntityResource model = BinaryData - .fromString( - "{\"etag\":\"gphuartvtiu\",\"id\":\"yefchnm\",\"name\":\"ahmnxhkxjqirw\",\"type\":\"weooxffifhxwrs\"}") - .toObject(EntityResource.class); + EntityResource model + = BinaryData.fromString("{\"etag\":\"qn\",\"id\":\"poczvyifqrvkdvjs\",\"name\":\"lrmv\",\"type\":\"d\"}") + .toObject(EntityResource.class); } @org.junit.jupiter.api.Test diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTests.java index 75aa695f1f65..36b7881690b6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTests.java @@ -12,18 +12,18 @@ public final class EnvironmentVariableSetupTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EnvironmentVariableSetup model = BinaryData.fromString( - "{\"type\":\"EnvironmentVariableSetup\",\"typeProperties\":{\"variableName\":\"pezkis\",\"variableValue\":\"qjm\"}}") + "{\"type\":\"EnvironmentVariableSetup\",\"typeProperties\":{\"variableName\":\"pvmjcdoewbid\",\"variableValue\":\"vteo\"}}") .toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("pezkis", model.variableName()); - Assertions.assertEquals("qjm", model.variableValue()); + Assertions.assertEquals("pvmjcdoewbid", model.variableName()); + Assertions.assertEquals("vteo", model.variableValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EnvironmentVariableSetup model - = new EnvironmentVariableSetup().withVariableName("pezkis").withVariableValue("qjm"); + = new EnvironmentVariableSetup().withVariableName("pvmjcdoewbid").withVariableValue("vteo"); model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("pezkis", model.variableName()); - Assertions.assertEquals("qjm", model.variableValue()); + Assertions.assertEquals("pvmjcdoewbid", model.variableName()); + Assertions.assertEquals("vteo", model.variableValue()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTypePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTypePropertiesTests.java index 841c159a153e..335f1f934ecc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTypePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTypePropertiesTests.java @@ -12,18 +12,18 @@ public final class EnvironmentVariableSetupTypePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EnvironmentVariableSetupTypeProperties model - = BinaryData.fromString("{\"variableName\":\"g\",\"variableValue\":\"syparybjufp\"}") + = BinaryData.fromString("{\"variableName\":\"xvgpiude\",\"variableValue\":\"gfsxzec\"}") .toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("g", model.variableName()); - Assertions.assertEquals("syparybjufp", model.variableValue()); + Assertions.assertEquals("xvgpiude", model.variableName()); + Assertions.assertEquals("gfsxzec", model.variableValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EnvironmentVariableSetupTypeProperties model - = new EnvironmentVariableSetupTypeProperties().withVariableName("g").withVariableValue("syparybjufp"); + = new EnvironmentVariableSetupTypeProperties().withVariableName("xvgpiude").withVariableValue("gfsxzec"); model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("g", model.variableName()); - Assertions.assertEquals("syparybjufp", model.variableValue()); + Assertions.assertEquals("xvgpiude", model.variableName()); + Assertions.assertEquals("gfsxzec", model.variableValue()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridConnectionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridConnectionPropertiesTests.java deleted file mode 100644 index 3d1533518458..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridConnectionPropertiesTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.EventGridConnectionProperties; -import com.azure.resourcemanager.synapse.models.BlobStorageEventType; -import com.azure.resourcemanager.synapse.models.EventGridDataFormat; -import org.junit.jupiter.api.Assertions; - -public final class EventGridConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventGridConnectionProperties model = BinaryData.fromString( - "{\"storageAccountResourceId\":\"xgnmqvzvluyq\",\"eventHubResourceId\":\"aiossscyvaifp\",\"consumerGroup\":\"uacvfy\",\"tableName\":\"w\",\"mappingRuleName\":\"fxtjdhsoym\",\"dataFormat\":\"MULTIJSON\",\"ignoreFirstRecord\":true,\"blobStorageEventType\":\"Microsoft.Storage.BlobCreated\",\"provisioningState\":\"Deleting\"}") - .toObject(EventGridConnectionProperties.class); - Assertions.assertEquals("xgnmqvzvluyq", model.storageAccountResourceId()); - Assertions.assertEquals("aiossscyvaifp", model.eventHubResourceId()); - Assertions.assertEquals("uacvfy", model.consumerGroup()); - Assertions.assertEquals("w", model.tableName()); - Assertions.assertEquals("fxtjdhsoym", model.mappingRuleName()); - Assertions.assertEquals(EventGridDataFormat.MULTIJSON, model.dataFormat()); - Assertions.assertEquals(true, model.ignoreFirstRecord()); - Assertions.assertEquals(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED, model.blobStorageEventType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventGridConnectionProperties model - = new EventGridConnectionProperties().withStorageAccountResourceId("xgnmqvzvluyq") - .withEventHubResourceId("aiossscyvaifp") - .withConsumerGroup("uacvfy") - .withTableName("w") - .withMappingRuleName("fxtjdhsoym") - .withDataFormat(EventGridDataFormat.MULTIJSON) - .withIgnoreFirstRecord(true) - .withBlobStorageEventType(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED); - model = BinaryData.fromObject(model).toObject(EventGridConnectionProperties.class); - Assertions.assertEquals("xgnmqvzvluyq", model.storageAccountResourceId()); - Assertions.assertEquals("aiossscyvaifp", model.eventHubResourceId()); - Assertions.assertEquals("uacvfy", model.consumerGroup()); - Assertions.assertEquals("w", model.tableName()); - Assertions.assertEquals("fxtjdhsoym", model.mappingRuleName()); - Assertions.assertEquals(EventGridDataFormat.MULTIJSON, model.dataFormat()); - Assertions.assertEquals(true, model.ignoreFirstRecord()); - Assertions.assertEquals(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED, model.blobStorageEventType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridDataConnectionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridDataConnectionTests.java deleted file mode 100644 index d570b68f708e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridDataConnectionTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.BlobStorageEventType; -import com.azure.resourcemanager.synapse.models.EventGridDataConnection; -import com.azure.resourcemanager.synapse.models.EventGridDataFormat; -import org.junit.jupiter.api.Assertions; - -public final class EventGridDataConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventGridDataConnection model = BinaryData.fromString( - "{\"kind\":\"EventGrid\",\"properties\":{\"storageAccountResourceId\":\"jluxxdhi\",\"eventHubResourceId\":\"zzdzzqjmuezayov\",\"consumerGroup\":\"ibqlotokhtvwtaz\",\"tableName\":\"cqwwxwj\",\"mappingRuleName\":\"fgwhnkbtlwljs\",\"dataFormat\":\"AVRO\",\"ignoreFirstRecord\":false,\"blobStorageEventType\":\"Microsoft.Storage.BlobRenamed\",\"provisioningState\":\"Moving\"},\"location\":\"wolgisubxbt\",\"id\":\"gfgf\",\"name\":\"ij\",\"type\":\"ykwlefksxqceazf\"}") - .toObject(EventGridDataConnection.class); - Assertions.assertEquals("wolgisubxbt", model.location()); - Assertions.assertEquals("jluxxdhi", model.storageAccountResourceId()); - Assertions.assertEquals("zzdzzqjmuezayov", model.eventHubResourceId()); - Assertions.assertEquals("ibqlotokhtvwtaz", model.consumerGroup()); - Assertions.assertEquals("cqwwxwj", model.tableName()); - Assertions.assertEquals("fgwhnkbtlwljs", model.mappingRuleName()); - Assertions.assertEquals(EventGridDataFormat.AVRO, model.dataFormat()); - Assertions.assertEquals(false, model.ignoreFirstRecord()); - Assertions.assertEquals(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_RENAMED, model.blobStorageEventType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventGridDataConnection model = new EventGridDataConnection().withLocation("wolgisubxbt") - .withStorageAccountResourceId("jluxxdhi") - .withEventHubResourceId("zzdzzqjmuezayov") - .withConsumerGroup("ibqlotokhtvwtaz") - .withTableName("cqwwxwj") - .withMappingRuleName("fgwhnkbtlwljs") - .withDataFormat(EventGridDataFormat.AVRO) - .withIgnoreFirstRecord(false) - .withBlobStorageEventType(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_RENAMED); - model = BinaryData.fromObject(model).toObject(EventGridDataConnection.class); - Assertions.assertEquals("wolgisubxbt", model.location()); - Assertions.assertEquals("jluxxdhi", model.storageAccountResourceId()); - Assertions.assertEquals("zzdzzqjmuezayov", model.eventHubResourceId()); - Assertions.assertEquals("ibqlotokhtvwtaz", model.consumerGroup()); - Assertions.assertEquals("cqwwxwj", model.tableName()); - Assertions.assertEquals("fgwhnkbtlwljs", model.mappingRuleName()); - Assertions.assertEquals(EventGridDataFormat.AVRO, model.dataFormat()); - Assertions.assertEquals(false, model.ignoreFirstRecord()); - Assertions.assertEquals(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_RENAMED, model.blobStorageEventType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubConnectionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubConnectionPropertiesTests.java deleted file mode 100644 index 99a3b19fde91..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubConnectionPropertiesTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.EventHubConnectionProperties; -import com.azure.resourcemanager.synapse.models.Compression; -import com.azure.resourcemanager.synapse.models.EventHubDataFormat; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class EventHubConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventHubConnectionProperties model = BinaryData.fromString( - "{\"eventHubResourceId\":\"wceivbvz\",\"consumerGroup\":\"pbwxgoooxz\",\"tableName\":\"admskx\",\"mappingRuleName\":\"pdgzigjsugswhg\",\"dataFormat\":\"PARQUET\",\"eventSystemProperties\":[\"wwnbafoctohz\",\"aquvwsxbgnvkervq\",\"hoadhrsxqvzv\",\"pabdsrg\"],\"compression\":\"GZip\",\"provisioningState\":\"Creating\",\"managedIdentityResourceId\":\"rsubklrxhjnl\"}") - .toObject(EventHubConnectionProperties.class); - Assertions.assertEquals("wceivbvz", model.eventHubResourceId()); - Assertions.assertEquals("pbwxgoooxz", model.consumerGroup()); - Assertions.assertEquals("admskx", model.tableName()); - Assertions.assertEquals("pdgzigjsugswhg", model.mappingRuleName()); - Assertions.assertEquals(EventHubDataFormat.PARQUET, model.dataFormat()); - Assertions.assertEquals("wwnbafoctohz", model.eventSystemProperties().get(0)); - Assertions.assertEquals(Compression.GZIP, model.compression()); - Assertions.assertEquals("rsubklrxhjnl", model.managedIdentityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventHubConnectionProperties model = new EventHubConnectionProperties().withEventHubResourceId("wceivbvz") - .withConsumerGroup("pbwxgoooxz") - .withTableName("admskx") - .withMappingRuleName("pdgzigjsugswhg") - .withDataFormat(EventHubDataFormat.PARQUET) - .withEventSystemProperties(Arrays.asList("wwnbafoctohz", "aquvwsxbgnvkervq", "hoadhrsxqvzv", "pabdsrg")) - .withCompression(Compression.GZIP) - .withManagedIdentityResourceId("rsubklrxhjnl"); - model = BinaryData.fromObject(model).toObject(EventHubConnectionProperties.class); - Assertions.assertEquals("wceivbvz", model.eventHubResourceId()); - Assertions.assertEquals("pbwxgoooxz", model.consumerGroup()); - Assertions.assertEquals("admskx", model.tableName()); - Assertions.assertEquals("pdgzigjsugswhg", model.mappingRuleName()); - Assertions.assertEquals(EventHubDataFormat.PARQUET, model.dataFormat()); - Assertions.assertEquals("wwnbafoctohz", model.eventSystemProperties().get(0)); - Assertions.assertEquals(Compression.GZIP, model.compression()); - Assertions.assertEquals("rsubklrxhjnl", model.managedIdentityResourceId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubDataConnectionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubDataConnectionTests.java deleted file mode 100644 index 48e0f2f1481a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubDataConnectionTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.Compression; -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -import com.azure.resourcemanager.synapse.models.EventHubDataFormat; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class EventHubDataConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventHubDataConnection model = BinaryData.fromString( - "{\"kind\":\"EventHub\",\"properties\":{\"eventHubResourceId\":\"fqpmbhyqgsdrmm\",\"consumerGroup\":\"tjxophgerhsmv\",\"tableName\":\"htwzmqilr\",\"mappingRuleName\":\"ysfn\",\"dataFormat\":\"AVRO\",\"eventSystemProperties\":[\"wwwmhkruwaedrym\"],\"compression\":\"None\",\"provisioningState\":\"Moving\",\"managedIdentityResourceId\":\"nhzd\"},\"location\":\"wih\",\"id\":\"fjiiknjdiqf\",\"name\":\"iej\",\"type\":\"pclbiedfs\"}") - .toObject(EventHubDataConnection.class); - Assertions.assertEquals("wih", model.location()); - Assertions.assertEquals("fqpmbhyqgsdrmm", model.eventHubResourceId()); - Assertions.assertEquals("tjxophgerhsmv", model.consumerGroup()); - Assertions.assertEquals("htwzmqilr", model.tableName()); - Assertions.assertEquals("ysfn", model.mappingRuleName()); - Assertions.assertEquals(EventHubDataFormat.AVRO, model.dataFormat()); - Assertions.assertEquals("wwwmhkruwaedrym", model.eventSystemProperties().get(0)); - Assertions.assertEquals(Compression.NONE, model.compression()); - Assertions.assertEquals("nhzd", model.managedIdentityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventHubDataConnection model = new EventHubDataConnection().withLocation("wih") - .withEventHubResourceId("fqpmbhyqgsdrmm") - .withConsumerGroup("tjxophgerhsmv") - .withTableName("htwzmqilr") - .withMappingRuleName("ysfn") - .withDataFormat(EventHubDataFormat.AVRO) - .withEventSystemProperties(Arrays.asList("wwwmhkruwaedrym")) - .withCompression(Compression.NONE) - .withManagedIdentityResourceId("nhzd"); - model = BinaryData.fromObject(model).toObject(EventHubDataConnection.class); - Assertions.assertEquals("wih", model.location()); - Assertions.assertEquals("fqpmbhyqgsdrmm", model.eventHubResourceId()); - Assertions.assertEquals("tjxophgerhsmv", model.consumerGroup()); - Assertions.assertEquals("htwzmqilr", model.tableName()); - Assertions.assertEquals("ysfn", model.mappingRuleName()); - Assertions.assertEquals(EventHubDataFormat.AVRO, model.dataFormat()); - Assertions.assertEquals("wwwmhkruwaedrym", model.eventSystemProperties().get(0)); - Assertions.assertEquals(Compression.NONE, model.compression()); - Assertions.assertEquals("nhzd", model.managedIdentityResourceId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseDefinitionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseDefinitionInnerTests.java deleted file mode 100644 index 3ccd0ff75c55..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseDefinitionInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import org.junit.jupiter.api.Assertions; - -public final class FollowerDatabaseDefinitionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FollowerDatabaseDefinitionInner model = BinaryData.fromString( - "{\"clusterResourceId\":\"uclvdjj\",\"attachedDatabaseConfigurationName\":\"kyrdnqodx\",\"databaseName\":\"h\"}") - .toObject(FollowerDatabaseDefinitionInner.class); - Assertions.assertEquals("uclvdjj", model.kustoPoolResourceId()); - Assertions.assertEquals("kyrdnqodx", model.attachedDatabaseConfigurationName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FollowerDatabaseDefinitionInner model = new FollowerDatabaseDefinitionInner().withKustoPoolResourceId("uclvdjj") - .withAttachedDatabaseConfigurationName("kyrdnqodx"); - model = BinaryData.fromObject(model).toObject(FollowerDatabaseDefinitionInner.class); - Assertions.assertEquals("uclvdjj", model.kustoPoolResourceId()); - Assertions.assertEquals("kyrdnqodx", model.attachedDatabaseConfigurationName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseListResultTests.java deleted file mode 100644 index 5963f76cd9fb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseListResultTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import com.azure.resourcemanager.synapse.models.FollowerDatabaseListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FollowerDatabaseListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FollowerDatabaseListResult model = BinaryData.fromString( - "{\"value\":[{\"clusterResourceId\":\"fwxudgnhg\",\"attachedDatabaseConfigurationName\":\"okrtalvnb\",\"databaseName\":\"pbeme\"}]}") - .toObject(FollowerDatabaseListResult.class); - Assertions.assertEquals("fwxudgnhg", model.value().get(0).kustoPoolResourceId()); - Assertions.assertEquals("okrtalvnb", model.value().get(0).attachedDatabaseConfigurationName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FollowerDatabaseListResult model = new FollowerDatabaseListResult() - .withValue(Arrays.asList(new FollowerDatabaseDefinitionInner().withKustoPoolResourceId("fwxudgnhg") - .withAttachedDatabaseConfigurationName("okrtalvnb"))); - model = BinaryData.fromObject(model).toObject(FollowerDatabaseListResult.class); - Assertions.assertEquals("fwxudgnhg", model.value().get(0).kustoPoolResourceId()); - Assertions.assertEquals("okrtalvnb", model.value().get(0).attachedDatabaseConfigurationName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyInnerTests.java index fa8b93c220b5..0b9c4914d4dc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyInnerTests.java @@ -13,15 +13,15 @@ public final class GeoBackupPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GeoBackupPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"dxbx\"},\"kind\":\"kbogqxndlkzgx\",\"location\":\"ripl\",\"id\":\"podxunkb\",\"name\":\"bxmubyynt\",\"type\":\"lrb\"}") + "{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"kokwbqplhlvnu\"},\"kind\":\"pzlrphw\",\"location\":\"oldweyuqdu\",\"id\":\"vmnnrw\",\"name\":\"biorktal\",\"type\":\"wjhhgdnhxmsivf\"}") .toObject(GeoBackupPolicyInner.class); - Assertions.assertEquals(GeoBackupPolicyState.DISABLED, model.state()); + Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GeoBackupPolicyInner model = new GeoBackupPolicyInner().withState(GeoBackupPolicyState.DISABLED); + GeoBackupPolicyInner model = new GeoBackupPolicyInner().withState(GeoBackupPolicyState.ENABLED); model = BinaryData.fromObject(model).toObject(GeoBackupPolicyInner.class); - Assertions.assertEquals(GeoBackupPolicyState.DISABLED, model.state()); + Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.state()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyListResultTests.java index b9877a70558d..1aab3d2c4f77 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyListResultTests.java @@ -15,7 +15,7 @@ public final class GeoBackupPolicyListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GeoBackupPolicyListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"xssadbzmnvdf\"},\"kind\":\"ud\",\"location\":\"dvxzbncblylpst\",\"id\":\"bhhxsrzdzuc\",\"name\":\"rsc\",\"type\":\"ntnev\"},{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"jmygtdsslswtmwer\"},\"kind\":\"fzp\",\"location\":\"semwabnet\",\"id\":\"hhszh\",\"name\":\"d\",\"type\":\"lvwiwubmwmbesl\"},{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"wwtppj\"},\"kind\":\"cxogaokonzm\",\"location\":\"ikvmkqzeqqk\",\"id\":\"l\",\"name\":\"fzxmhhvhgureodkw\",\"type\":\"bdagxt\"}]}") + "{\"value\":[{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"wcpmguaadraufac\"},\"kind\":\"ahzovajjziuxxp\",\"location\":\"neekulfg\",\"id\":\"lqubkwdlen\",\"name\":\"d\",\"type\":\"utujba\"},{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"uo\"},\"kind\":\"inyflnorwmduvwp\",\"location\":\"vxwmygd\",\"id\":\"pgpqchiszepnnb\",\"name\":\"crxgibb\",\"type\":\"axconfozauo\"}]}") .toObject(GeoBackupPolicyListResult.class); Assertions.assertEquals(GeoBackupPolicyState.DISABLED, model.value().get(0).state()); } @@ -24,8 +24,7 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { GeoBackupPolicyListResult model = new GeoBackupPolicyListResult() .withValue(Arrays.asList(new GeoBackupPolicyInner().withState(GeoBackupPolicyState.DISABLED), - new GeoBackupPolicyInner().withState(GeoBackupPolicyState.ENABLED), - new GeoBackupPolicyInner().withState(GeoBackupPolicyState.DISABLED))); + new GeoBackupPolicyInner().withState(GeoBackupPolicyState.ENABLED))); model = BinaryData.fromObject(model).toObject(GeoBackupPolicyListResult.class); Assertions.assertEquals(GeoBackupPolicyState.DISABLED, model.value().get(0).state()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyPropertiesTests.java index 778dd5a7130d..437dffe18cc0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyPropertiesTests.java @@ -13,7 +13,7 @@ public final class GeoBackupPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GeoBackupPolicyProperties model - = BinaryData.fromString("{\"state\":\"Enabled\",\"storageType\":\"oievseotgqrlltm\"}") + = BinaryData.fromString("{\"state\":\"Enabled\",\"storageType\":\"loxggdufiqn\"}") .toObject(GeoBackupPolicyProperties.class); Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.state()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetSsisObjectMetadataRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetSsisObjectMetadataRequestTests.java index c459f4045a8c..47c723f1338d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetSsisObjectMetadataRequestTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetSsisObjectMetadataRequestTests.java @@ -11,15 +11,15 @@ public final class GetSsisObjectMetadataRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GetSsisObjectMetadataRequest model = BinaryData.fromString("{\"metadataPath\":\"uuuybnchrsziz\"}") - .toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("uuuybnchrsziz", model.metadataPath()); + GetSsisObjectMetadataRequest model + = BinaryData.fromString("{\"metadataPath\":\"xjmflbvv\"}").toObject(GetSsisObjectMetadataRequest.class); + Assertions.assertEquals("xjmflbvv", model.metadataPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GetSsisObjectMetadataRequest model = new GetSsisObjectMetadataRequest().withMetadataPath("uuuybnchrsziz"); + GetSsisObjectMetadataRequest model = new GetSsisObjectMetadataRequest().withMetadataPath("xjmflbvv"); model = BinaryData.fromObject(model).toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("uuuybnchrsziz", model.metadataPath()); + Assertions.assertEquals("xjmflbvv", model.metadataPath()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests.java deleted file mode 100644 index 2bfb90adc3ff..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeEnableinteractivequery; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests { - @Test - public void testIntegrationRuntimeEnableInteractivequeryWithResponse() throws Exception { - String responseStr - = "{\"status\":\"Succeeded\",\"name\":\"jthgeecbpe\",\"properties\":\"datawlckihbamyqs\",\"error\":\"knp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeEnableinteractivequery response = manager.gets() - .integrationRuntimeEnableInteractivequeryWithResponse("tdsfh", "xqlyoazyfbkmvl", "zmxojzsvmai", "bqk", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(WorkspaceStatus.SUCCEEDED, response.status()); - Assertions.assertEquals("jthgeecbpe", response.name()); - Assertions.assertEquals("knp", response.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStartWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStartWithResponseMockTests.java deleted file mode 100644 index 45d7c6147196..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStartWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOperationStatus; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GetsIntegrationRuntimeStartWithResponseMockTests { - @Test - public void testIntegrationRuntimeStartWithResponse() throws Exception { - String responseStr - = "{\"status\":\"InProgress\",\"name\":\"ycfjnc\",\"properties\":\"datadilo\",\"error\":\"ajwjuriarsbcll\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeOperationStatus response = manager.gets() - .integrationRuntimeStartWithResponse("vdifkiikg", "ruccwmecbtxsytr", "exe", "wmrqjyw", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(WorkspaceStatus.IN_PROGRESS, response.status()); - Assertions.assertEquals("ycfjnc", response.name()); - Assertions.assertEquals("ajwjuriarsbcll", response.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStopWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStopWithResponseMockTests.java deleted file mode 100644 index eb8791a6c18b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStopWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStopOperationStatus; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GetsIntegrationRuntimeStopWithResponseMockTests { - @Test - public void testIntegrationRuntimeStopWithResponse() throws Exception { - String responseStr - = "{\"status\":\"InProgress\",\"name\":\"iuii\",\"properties\":\"datakcj\",\"error\":\"qdcizeqqfopvnopm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStopOperationStatus response = manager.gets() - .integrationRuntimeStopWithResponse("nhzcknjxizb", "xd", "gzkztxfex", "acyyjmlxppdndzkf", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(WorkspaceStatus.IN_PROGRESS, response.status()); - Assertions.assertEquals("iuii", response.name()); - Assertions.assertEquals("qdcizeqqfopvnopm", response.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeComputePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeComputePropertiesTests.java index 190fb8cfafd0..722a0094c03d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeComputePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeComputePropertiesTests.java @@ -18,53 +18,50 @@ public final class IntegrationRuntimeComputePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeComputeProperties model = BinaryData.fromString( - "{\"location\":\"fmcwnosb\",\"nodeSize\":\"ehgcvkbcknjo\",\"numberOfNodes\":495627768,\"maxParallelExecutionsPerNode\":1296879245,\"dataFlowProperties\":{\"computeType\":\"MemoryOptimized\",\"coreCount\":324734057,\"timeToLive\":909857948,\"cleanup\":false,\"\":{\"txwaljglzo\":\"dataevxoqei\",\"frqulhmzyqbhd\":\"datalqwa\",\"xwmzwdfkbnrz\":\"dataafjrqpjiyrqjcrg\"}},\"vNetProperties\":{\"vNetId\":\"dltb\",\"subnet\":\"tqjfgxxsaet\",\"publicIPs\":[\"gvpyigdaqqilzdc\",\"uwjoedxnguca\"],\"subnetId\":\"pa\",\"\":{\"mkxwxdcvjwcyziak\":\"datawgilfjqqac\",\"iw\":\"dataciqchxrtuicd\",\"hzzwvywrgyngy\":\"datafmmp\",\"clamgglvlmfejdoq\":\"datagrpxncakiqaondjr\"}},\"\":{\"ayejsxtlgflwfgz\":\"datagltygxhqfgq\",\"lijjjrtvam\":\"dataiucijjcea\"}}") + "{\"location\":\"zvlnsnnjz\",\"nodeSize\":\"afolpymwamxqzrag\",\"numberOfNodes\":1193102156,\"maxParallelExecutionsPerNode\":1656670838,\"dataFlowProperties\":{\"computeType\":\"General\",\"coreCount\":881668100,\"timeToLive\":1328440985,\"\":{\"nmzlanru\":\"dataejchcsrlz\",\"phcnzqtpj\":\"datadwv\"}},\"vNetProperties\":{\"vNetId\":\"rhv\",\"subnet\":\"laiwdcxsmlzzh\",\"publicIPs\":[\"xetlgydlhqv\",\"n\",\"pxy\"],\"subnetId\":\"fiqgeaar\",\"\":{\"ulidwc\":\"dataekglklb\",\"nfhjirwgdnqzbr\":\"datavmzegj\",\"igsxcdgljplk\":\"datakspzhzmtksjcit\"}},\"\":{\"pfmdgycx\":\"datachtomflrytsw\"}}") .toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("fmcwnosb", model.location()); - Assertions.assertEquals("ehgcvkbcknjo", model.nodeSize()); - Assertions.assertEquals(495627768, model.numberOfNodes()); - Assertions.assertEquals(1296879245, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.MEMORY_OPTIMIZED, model.dataFlowProperties().computeType()); - Assertions.assertEquals(324734057, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(909857948, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(false, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("dltb", model.vNetProperties().vNetId()); - Assertions.assertEquals("tqjfgxxsaet", model.vNetProperties().subnet()); - Assertions.assertEquals("gvpyigdaqqilzdc", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("pa", model.vNetProperties().subnetId()); + Assertions.assertEquals("zvlnsnnjz", model.location()); + Assertions.assertEquals("afolpymwamxqzrag", model.nodeSize()); + Assertions.assertEquals(1193102156, model.numberOfNodes()); + Assertions.assertEquals(1656670838, model.maxParallelExecutionsPerNode()); + Assertions.assertEquals(DataFlowComputeType.GENERAL, model.dataFlowProperties().computeType()); + Assertions.assertEquals(881668100, model.dataFlowProperties().coreCount()); + Assertions.assertEquals(1328440985, model.dataFlowProperties().timeToLive()); + Assertions.assertEquals("rhv", model.vNetProperties().vNetId()); + Assertions.assertEquals("laiwdcxsmlzzh", model.vNetProperties().subnet()); + Assertions.assertEquals("xetlgydlhqv", model.vNetProperties().publicIPs().get(0)); + Assertions.assertEquals("fiqgeaar", model.vNetProperties().subnetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IntegrationRuntimeComputeProperties model = new IntegrationRuntimeComputeProperties().withLocation("fmcwnosb") - .withNodeSize("ehgcvkbcknjo") - .withNumberOfNodes(495627768) - .withMaxParallelExecutionsPerNode(1296879245) + IntegrationRuntimeComputeProperties model = new IntegrationRuntimeComputeProperties().withLocation("zvlnsnnjz") + .withNodeSize("afolpymwamxqzrag") + .withNumberOfNodes(1193102156) + .withMaxParallelExecutionsPerNode(1656670838) .withDataFlowProperties( - new IntegrationRuntimeDataFlowProperties().withComputeType(DataFlowComputeType.MEMORY_OPTIMIZED) - .withCoreCount(324734057) - .withTimeToLive(909857948) - .withCleanup(false) + new IntegrationRuntimeDataFlowProperties().withComputeType(DataFlowComputeType.GENERAL) + .withCoreCount(881668100) + .withTimeToLive(1328440985) .withAdditionalProperties(mapOf())) - .withVNetProperties(new IntegrationRuntimeVNetProperties().withVNetId("dltb") - .withSubnet("tqjfgxxsaet") - .withPublicIPs(Arrays.asList("gvpyigdaqqilzdc", "uwjoedxnguca")) - .withSubnetId("pa") + .withVNetProperties(new IntegrationRuntimeVNetProperties().withVNetId("rhv") + .withSubnet("laiwdcxsmlzzh") + .withPublicIPs(Arrays.asList("xetlgydlhqv", "n", "pxy")) + .withSubnetId("fiqgeaar") .withAdditionalProperties(mapOf())) .withAdditionalProperties(mapOf()); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("fmcwnosb", model.location()); - Assertions.assertEquals("ehgcvkbcknjo", model.nodeSize()); - Assertions.assertEquals(495627768, model.numberOfNodes()); - Assertions.assertEquals(1296879245, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.MEMORY_OPTIMIZED, model.dataFlowProperties().computeType()); - Assertions.assertEquals(324734057, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(909857948, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(false, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("dltb", model.vNetProperties().vNetId()); - Assertions.assertEquals("tqjfgxxsaet", model.vNetProperties().subnet()); - Assertions.assertEquals("gvpyigdaqqilzdc", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("pa", model.vNetProperties().subnetId()); + Assertions.assertEquals("zvlnsnnjz", model.location()); + Assertions.assertEquals("afolpymwamxqzrag", model.nodeSize()); + Assertions.assertEquals(1193102156, model.numberOfNodes()); + Assertions.assertEquals(1656670838, model.maxParallelExecutionsPerNode()); + Assertions.assertEquals(DataFlowComputeType.GENERAL, model.dataFlowProperties().computeType()); + Assertions.assertEquals(881668100, model.dataFlowProperties().coreCount()); + Assertions.assertEquals(1328440985, model.dataFlowProperties().timeToLive()); + Assertions.assertEquals("rhv", model.vNetProperties().vNetId()); + Assertions.assertEquals("laiwdcxsmlzzh", model.vNetProperties().subnet()); + Assertions.assertEquals("xetlgydlhqv", model.vNetProperties().publicIPs().get(0)); + Assertions.assertEquals("fiqgeaar", model.vNetProperties().subnetId()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncWithResponseMockTests.java index d57c0233a66c..5e9f0f3f96b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testSyncWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.integrationRuntimeCredentials() - .syncWithResponse("ryearmhpwbu", "lvs", "fasgtlvhqpo", com.azure.core.util.Context.NONE); + .syncWithResponse("jdoq", "ykglt", "gxhqfgqkayejs", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataFlowPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataFlowPropertiesTests.java index 22b97c0050ab..4399d52e6e10 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataFlowPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataFlowPropertiesTests.java @@ -15,27 +15,24 @@ public final class IntegrationRuntimeDataFlowPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeDataFlowProperties model = BinaryData.fromString( - "{\"computeType\":\"MemoryOptimized\",\"coreCount\":1936073751,\"timeToLive\":498774199,\"cleanup\":true,\"\":{\"mignohikkg\":\"dataxetyvku\",\"medeil\":\"dataogjwpindedvabbxb\",\"wypusuvjsl\":\"datajywfcfxzirzzih\",\"djsllfr\":\"datazwci\"}}") + "{\"computeType\":\"ComputeOptimized\",\"coreCount\":2063610896,\"timeToLive\":195536215,\"\":{\"lpshhkvpedwqslsr\":\"datayslu\",\"ndcbrwi\":\"datampqvwwsk\"}}") .toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.MEMORY_OPTIMIZED, model.computeType()); - Assertions.assertEquals(1936073751, model.coreCount()); - Assertions.assertEquals(498774199, model.timeToLive()); - Assertions.assertEquals(true, model.cleanup()); + Assertions.assertEquals(DataFlowComputeType.COMPUTE_OPTIMIZED, model.computeType()); + Assertions.assertEquals(2063610896, model.coreCount()); + Assertions.assertEquals(195536215, model.timeToLive()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IntegrationRuntimeDataFlowProperties model - = new IntegrationRuntimeDataFlowProperties().withComputeType(DataFlowComputeType.MEMORY_OPTIMIZED) - .withCoreCount(1936073751) - .withTimeToLive(498774199) - .withCleanup(true) + = new IntegrationRuntimeDataFlowProperties().withComputeType(DataFlowComputeType.COMPUTE_OPTIMIZED) + .withCoreCount(2063610896) + .withTimeToLive(195536215) .withAdditionalProperties(mapOf()); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.MEMORY_OPTIMIZED, model.computeType()); - Assertions.assertEquals(1936073751, model.coreCount()); - Assertions.assertEquals(498774199, model.timeToLive()); - Assertions.assertEquals(true, model.cleanup()); + Assertions.assertEquals(DataFlowComputeType.COMPUTE_OPTIMIZED, model.computeType()); + Assertions.assertEquals(2063610896, model.coreCount()); + Assertions.assertEquals(195536215, model.timeToLive()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataProxyPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataProxyPropertiesTests.java index 8c4266643354..f54fb60155f9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataProxyPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataProxyPropertiesTests.java @@ -14,34 +14,34 @@ public final class IntegrationRuntimeDataProxyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeDataProxyProperties model = BinaryData.fromString( - "{\"connectVia\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"mvrscmqerndbrny\"},\"stagingLinkedService\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"fnnxrkad\"},\"path\":\"ynnfmuiii\"}") + "{\"connectVia\":{\"type\":\"IntegrationRuntimeReference\",\"referenceName\":\"aoyankcoeqswa\"},\"stagingLinkedService\":{\"type\":\"IntegrationRuntimeReference\",\"referenceName\":\"tmhdroznnhdr\"},\"path\":\"tgjcsgguxheml\"}") .toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, + Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.connectVia().type()); - Assertions.assertEquals("mvrscmqerndbrny", model.connectVia().referenceName()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, + Assertions.assertEquals("aoyankcoeqswa", model.connectVia().referenceName()); + Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.stagingLinkedService().type()); - Assertions.assertEquals("fnnxrkad", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("ynnfmuiii", model.path()); + Assertions.assertEquals("tmhdroznnhdr", model.stagingLinkedService().referenceName()); + Assertions.assertEquals("tgjcsgguxheml", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IntegrationRuntimeDataProxyProperties model = new IntegrationRuntimeDataProxyProperties() .withConnectVia( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("mvrscmqerndbrny")) + new EntityReference().withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) + .withReferenceName("aoyankcoeqswa")) .withStagingLinkedService( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("fnnxrkad")) - .withPath("ynnfmuiii"); + new EntityReference().withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) + .withReferenceName("tmhdroznnhdr")) + .withPath("tgjcsgguxheml"); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, + Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.connectVia().type()); - Assertions.assertEquals("mvrscmqerndbrny", model.connectVia().referenceName()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, + Assertions.assertEquals("aoyankcoeqswa", model.connectVia().referenceName()); + Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.stagingLinkedService().type()); - Assertions.assertEquals("fnnxrkad", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("ynnfmuiii", model.path()); + Assertions.assertEquals("tmhdroznnhdr", model.stagingLinkedService().referenceName()); + Assertions.assertEquals("tgjcsgguxheml", model.path()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeEnableinteractivequeryInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeEnableinteractivequeryInnerTests.java deleted file mode 100644 index 19ffaee215dd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeEnableinteractivequeryInnerTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeEnableinteractivequeryInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeEnableinteractivequeryInner model = BinaryData.fromString( - "{\"status\":\"Succeeded\",\"name\":\"folpymwamxqzra\",\"properties\":\"datagdphtvdula\",\"error\":\"lejchcsr\"}") - .toObject(IntegrationRuntimeEnableinteractivequeryInner.class); - Assertions.assertEquals(WorkspaceStatus.SUCCEEDED, model.status()); - Assertions.assertEquals("folpymwamxqzra", model.name()); - Assertions.assertEquals("lejchcsr", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeEnableinteractivequeryInner model - = new IntegrationRuntimeEnableinteractivequeryInner().withStatus(WorkspaceStatus.SUCCEEDED) - .withName("folpymwamxqzra") - .withProperties("datagdphtvdula") - .withError("lejchcsr"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeEnableinteractivequeryInner.class); - Assertions.assertEquals(WorkspaceStatus.SUCCEEDED, model.status()); - Assertions.assertEquals("folpymwamxqzra", model.name()); - Assertions.assertEquals("lejchcsr", model.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeListResponseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeListResponseTests.java index 66acf1be47db..d19bb78d9bb6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeListResponseTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeListResponseTests.java @@ -17,29 +17,27 @@ public final class IntegrationRuntimeListResponseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"wnwvroevytlyokr\",\"\":{\"o\":\"datauuxvnsasbcry\"}},\"etag\":\"zrxklobd\",\"id\":\"nazpmk\",\"name\":\"lmv\",\"type\":\"vfxzopjh\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"xliohrdddt\",\"\":{\"p\":\"dataqbawpcbbnzqcykn\",\"zb\":\"dataofyuicd\"}},\"etag\":\"bwwg\",\"id\":\"d\",\"name\":\"ibidmhmwffp\",\"type\":\"fmuvapckccr\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"weyoxoy\",\"\":{\"oqboshbragapyyr\":\"dataphaimmoi\"}},\"etag\":\"svbpavbopfppdbwn\",\"id\":\"pgahxkumas\",\"name\":\"caac\",\"type\":\"dmmcpugmehqep\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"fhbzehewhoqhn\",\"\":{\"krsrrmoucs\":\"datanbldxeaclgschori\",\"abeolhbhlvbm\":\"datafldpuviyfc\"}},\"etag\":\"qi\",\"id\":\"s\",\"name\":\"tkcudfbsfarfsiow\",\"type\":\"kjxnqpvwgfstmhq\"}],\"nextLink\":\"izmdksa\"}") + "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"gzfbishcbk\",\"\":{\"wgipwhono\":\"datadeyeamdphagalpbu\",\"kix\":\"datakgshwa\",\"eputtmrywnuzoqf\":\"databin\"}},\"etag\":\"yqzrnkcqvyxlw\",\"id\":\"zlsico\",\"name\":\"oqqnwvlryav\",\"type\":\"hheunmmqhgyx\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"onocukok\",\"\":{\"szfkbe\":\"dataxuconu\",\"jmwvvj\":\"datapewr\"}},\"etag\":\"tcxsenhwlrs\",\"id\":\"frzpwvlqdqgb\",\"name\":\"qylihkaetckt\",\"type\":\"fcivfsnkym\"}],\"nextLink\":\"tqhjfbebrjcx\"}") .toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("wnwvroevytlyokr", model.value().get(0).properties().description()); - Assertions.assertEquals("izmdksa", model.nextLink()); + Assertions.assertEquals("gzfbishcbk", model.value().get(0).properties().description()); + Assertions.assertEquals("tqhjfbebrjcx", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IntegrationRuntimeListResponse model = new IntegrationRuntimeListResponse().withValue(Arrays.asList( - new IntegrationRuntimeResourceInner().withProperties( - new IntegrationRuntime().withDescription("wnwvroevytlyokr") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner().withProperties(new IntegrationRuntime().withDescription("xliohrdddt") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner().withProperties(new IntegrationRuntime().withDescription("weyoxoy") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner() - .withProperties(new IntegrationRuntime().withDescription("fhbzehewhoqhn") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))))) - .withNextLink("izmdksa"); + IntegrationRuntimeListResponse model + = new IntegrationRuntimeListResponse() + .withValue(Arrays.asList( + new IntegrationRuntimeResourceInner() + .withProperties(new IntegrationRuntime().withDescription("gzfbishcbk") + .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), + new IntegrationRuntimeResourceInner() + .withProperties(new IntegrationRuntime().withDescription("onocukok") + .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))))) + .withNextLink("tqhjfbebrjcx"); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("wnwvroevytlyokr", model.value().get(0).properties().description()); - Assertions.assertEquals("izmdksa", model.nextLink()); + Assertions.assertEquals("gzfbishcbk", model.value().get(0).properties().description()); + Assertions.assertEquals("tqhjfbebrjcx", model.nextLink()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataInnerTests.java index 464cd33c6a89..b74c9b46f750 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataInnerTests.java @@ -16,20 +16,29 @@ public final class IntegrationRuntimeMonitoringDataInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeMonitoringDataInner model = BinaryData.fromString( - "{\"name\":\"lubhvjg\",\"nodes\":[{\"nodeName\":\"uyzlw\",\"availableMemoryInMB\":1284227714,\"cpuUtilization\":1438409396,\"concurrentJobsLimit\":2072585958,\"concurrentJobsRunning\":136044381,\"maxConcurrentJobs\":307517518,\"sentBytes\":4.549527,\"receivedBytes\":28.378052,\"\":{\"ykyujxsg\":\"datamczjkm\"}}]}") + "{\"name\":\"hmgkbrpyy\",\"nodes\":[{\"nodeName\":\"nuqqkpikadrgvt\",\"availableMemoryInMB\":1163936229,\"cpuUtilization\":424672875,\"concurrentJobsLimit\":122504841,\"concurrentJobsRunning\":1620063095,\"maxConcurrentJobs\":1131716397,\"sentBytes\":92.13511,\"receivedBytes\":16.016691,\"\":{\"zzmhjrunmpxttd\":\"datasiarbutrcvpn\",\"nbtkcxywnytnr\":\"datahrbnlankxmyskpbh\",\"qidybyx\":\"datayn\"}},{\"nodeName\":\"fclhaaxdbabphlwr\",\"availableMemoryInMB\":818210611,\"cpuUtilization\":285105336,\"concurrentJobsLimit\":1003967781,\"concurrentJobsRunning\":1927626418,\"maxConcurrentJobs\":801364840,\"sentBytes\":56.913887,\"receivedBytes\":98.78118,\"\":{\"bt\":\"dataazt\",\"ckzywbiexzfeyue\":\"datawrqpue\",\"zyoxaepdkzjan\":\"dataxibxujwbhqwalm\",\"hdwbavxbniwdjs\":\"dataux\"}},{\"nodeName\":\"tsdbpgn\",\"availableMemoryInMB\":862771413,\"cpuUtilization\":686373242,\"concurrentJobsLimit\":999605731,\"concurrentJobsRunning\":1621747655,\"maxConcurrentJobs\":936315847,\"sentBytes\":65.9889,\"receivedBytes\":6.1180353,\"\":{\"wtctyqi\":\"datacuh\",\"bhvgy\":\"datalbbovplw\",\"svmkfssxquk\":\"datagu\",\"mg\":\"datafpl\"}}]}") .toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("lubhvjg", model.name()); + Assertions.assertEquals("hmgkbrpyy", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = new IntegrationRuntimeMonitoringDataInner().withName("lubhvjg") - .withNodes(Arrays.asList(new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties(mapOf("nodeName", "uyzlw", "cpuUtilization", 1438409396, "receivedBytes", - 28.378052f, "concurrentJobsLimit", 2072585958, "concurrentJobsRunning", 136044381, - "maxConcurrentJobs", 307517518, "availableMemoryInMB", 1284227714, "sentBytes", 4.549527f)))); + IntegrationRuntimeMonitoringDataInner model = new IntegrationRuntimeMonitoringDataInner().withName("hmgkbrpyy") + .withNodes(Arrays.asList( + new IntegrationRuntimeNodeMonitoringData().withAdditionalProperties( + mapOf("nodeName", "nuqqkpikadrgvt", "cpuUtilization", 424672875, "receivedBytes", 16.016691f, + "concurrentJobsLimit", 122504841, "concurrentJobsRunning", 1620063095, "maxConcurrentJobs", + 1131716397, "availableMemoryInMB", 1163936229, "sentBytes", 92.13511f)), + new IntegrationRuntimeNodeMonitoringData().withAdditionalProperties( + mapOf("nodeName", "fclhaaxdbabphlwr", "cpuUtilization", 285105336, "receivedBytes", 98.78118f, + "concurrentJobsLimit", 1003967781, "concurrentJobsRunning", 1927626418, "maxConcurrentJobs", + 801364840, "availableMemoryInMB", 818210611, "sentBytes", 56.913887f)), + new IntegrationRuntimeNodeMonitoringData() + .withAdditionalProperties(mapOf("nodeName", "tsdbpgn", "cpuUtilization", 686373242, "receivedBytes", + 6.1180353f, "concurrentJobsLimit", 999605731, "concurrentJobsRunning", 1621747655, + "maxConcurrentJobs", 936315847, "availableMemoryInMB", 862771413, "sentBytes", 65.9889f)))); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("lubhvjg", model.name()); + Assertions.assertEquals("hmgkbrpyy", model.name()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDatasListWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDatasListWithResponseMockTests.java index 850e885abb87..505ad1a80970 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDatasListWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDatasListWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IntegrationRuntimeMonitoringDatasListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"name\":\"gcfddofxnfb\",\"nodes\":[{\"nodeName\":\"rqaedwo\",\"availableMemoryInMB\":2113031573,\"cpuUtilization\":985224132,\"concurrentJobsLimit\":1883014762,\"concurrentJobsRunning\":1033040325,\"maxConcurrentJobs\":996802016,\"sentBytes\":92.0443,\"receivedBytes\":0.35558343,\"\":{\"zvothmkh\":\"dataihwpadhedbfobd\",\"scmyhrhjvszf\":\"dataaozvbwfcnjhbpoel\",\"ojoevzzufytdx\":\"databokndwpppq\"}},{\"nodeName\":\"ynzlyvapb\",\"availableMemoryInMB\":1995367383,\"cpuUtilization\":1359157425,\"concurrentJobsLimit\":463587841,\"concurrentJobsRunning\":1491414535,\"maxConcurrentJobs\":1608675846,\"sentBytes\":52.639305,\"receivedBytes\":37.606518,\"\":{\"lpsftqkrvm\":\"datazijvaylzeo\"}},{\"nodeName\":\"bvvcpw\",\"availableMemoryInMB\":70927281,\"cpuUtilization\":1256455737,\"concurrentJobsLimit\":1973554471,\"concurrentJobsRunning\":668815019,\"maxConcurrentJobs\":988785355,\"sentBytes\":50.177048,\"receivedBytes\":82.911674,\"\":{\"wacycsyotctkhf\":\"datavrntfk\",\"mhnmizhvprhqqw\":\"datafsatvcsx\"}}]}"; + = "{\"name\":\"gna\",\"nodes\":[{\"nodeName\":\"gfbktyjmf\",\"availableMemoryInMB\":182959035,\"cpuUtilization\":1103835863,\"concurrentJobsLimit\":1442210769,\"concurrentJobsRunning\":2065461601,\"maxConcurrentJobs\":776279047,\"sentBytes\":4.1725993,\"receivedBytes\":27.622026,\"\":{\"jcx\":\"dataqmje\",\"vxisimjcea\":\"datayqgxhlus\",\"mywzashxgonoy\":\"databjqvls\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IntegrationRuntimeMonitoringData response = manager.integrationRuntimeMonitoringDatas() - .listWithResponse("nyzcwyjsmk", "qldqabn", "vpaqbqxfb", com.azure.core.util.Context.NONE) + .listWithResponse("suvjslcz", "ciidjs", "lfryvdmvxadqac", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gcfddofxnfb", response.name()); + Assertions.assertEquals("gna", response.name()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressInnerTests.java index 0fa86fcc2031..1aa090f84c23 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressInnerTests.java @@ -10,8 +10,8 @@ public final class IntegrationRuntimeNodeIpAddressInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model = BinaryData.fromString("{\"ipAddress\":\"wntsjgqrsxy\"}") - .toObject(IntegrationRuntimeNodeIpAddressInner.class); + IntegrationRuntimeNodeIpAddressInner model + = BinaryData.fromString("{\"ipAddress\":\"kwlhzdo\"}").toObject(IntegrationRuntimeNodeIpAddressInner.class); } @org.junit.jupiter.api.Test diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests.java index 87799be2d2c9..83a7cc1d1300 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - String responseStr = "{\"ipAddress\":\"huriwhjdfr\"}"; + String responseStr = "{\"ipAddress\":\"arxqiubx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IntegrationRuntimeNodeIpAddress response = manager.integrationRuntimeNodeIpAddressOperations() - .getWithResponse("mrnotocjnzdaiovr", "hrpqphkvyyzadcrx", "laypdtyzv", "lf", + .getWithResponse("krrcoiisbamnpp", "cekuz", "dsbezaxyfu", "zxuizhyhnepkpe", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeMonitoringDataTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeMonitoringDataTests.java index 352d990b0950..0c4d3af1d6ff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeMonitoringDataTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeMonitoringDataTests.java @@ -13,16 +13,16 @@ public final class IntegrationRuntimeNodeMonitoringDataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeNodeMonitoringData model = BinaryData.fromString( - "{\"nodeName\":\"srrryejylmbkzu\",\"availableMemoryInMB\":1007245359,\"cpuUtilization\":986601993,\"concurrentJobsLimit\":1684917507,\"concurrentJobsRunning\":2004521886,\"maxConcurrentJobs\":784814227,\"sentBytes\":52.939053,\"receivedBytes\":40.327175,\"\":{\"fqyhqoto\":\"datazzjgnr\",\"pzdqtvhcspod\":\"datahiqakydiwfbrk\",\"lbmoichd\":\"dataqaxsipietgbebjf\"}}") + "{\"nodeName\":\"nkjzkdeslpvlop\",\"availableMemoryInMB\":1665401728,\"cpuUtilization\":1768535097,\"concurrentJobsLimit\":879866119,\"concurrentJobsRunning\":1973154307,\"maxConcurrentJobs\":1713070379,\"sentBytes\":74.692726,\"receivedBytes\":59.623474,\"\":{\"ojnabckhsmtxpsie\":\"databbaumnyquped\"}}") .toObject(IntegrationRuntimeNodeMonitoringData.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IntegrationRuntimeNodeMonitoringData model = new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties(mapOf("nodeName", "srrryejylmbkzu", "cpuUtilization", 986601993, "receivedBytes", - 40.327175f, "concurrentJobsLimit", 1684917507, "concurrentJobsRunning", 2004521886, "maxConcurrentJobs", - 784814227, "availableMemoryInMB", 1007245359, "sentBytes", 52.939053f)); + .withAdditionalProperties(mapOf("nodeName", "nkjzkdeslpvlop", "cpuUtilization", 1768535097, "receivedBytes", + 59.623474f, "concurrentJobsLimit", 879866119, "concurrentJobsRunning", 1973154307, "maxConcurrentJobs", + 1713070379, "availableMemoryInMB", 1665401728, "sentBytes", 74.692726f)); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeMonitoringData.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java index 99a305f8c39f..a0b41061033b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java @@ -28,8 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.integrationRuntimeNodes() - .deleteWithResponse("xvmdr", "ynbgovazoymdvhhp", "khwwdkatve", "mgkcswzey", - com.azure.core.util.Context.NONE); + .deleteWithResponse("x", "cakiqao", "djrkclamggl", "lmf", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java index 972e7d1e2b41..f79d975c0899 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class IntegrationRuntimeNodesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"nodeName\":\"hmqyncgaullfstyy\",\"machineName\":\"qpul\",\"hostServiceUri\":\"qg\",\"status\":\"InitializeFailed\",\"capabilities\":{\"cqfgu\":\"iwxzfvvz\",\"lxhgdekekzou\":\"jnbxwbmwdukin\"},\"versionStatus\":\"ewwpz\",\"version\":\"wcgldohgcandx\",\"registerTime\":\"2021-07-06T21:05:41Z\",\"lastConnectTime\":\"2021-10-24T04:56:15Z\",\"expiryTime\":\"2021-05-18T23:10:28Z\",\"lastStartTime\":\"2021-03-22T06:33:35Z\",\"lastStopTime\":\"2021-08-01T22:22:58Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-07-17T17:24:03Z\",\"lastEndUpdateTime\":\"2021-11-19T04:44:46Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1357226123,\"maxConcurrentJobs\":2116382645,\"\":{\"zrqnjxm\":\"datafkdxccyijjimhi\",\"wg\":\"datavsduydw\",\"qwqnghxnimvy\":\"datauhhqldrdymnswxie\"}}"; + = "{\"nodeName\":\"cgqtag\",\"machineName\":\"clssoljomevtfyc\",\"hostServiceUri\":\"bvgjcodkkgj\",\"status\":\"NeedRegistration\",\"capabilities\":{\"z\":\"sik\"},\"versionStatus\":\"ufqbvntnr\",\"version\":\"qsorh\",\"registerTime\":\"2021-06-25T10:24:34Z\",\"lastConnectTime\":\"2020-12-31T11:35:22Z\",\"expiryTime\":\"2021-06-04T06:31:05Z\",\"lastStartTime\":\"2021-10-07T19:55:18Z\",\"lastStopTime\":\"2021-10-16T01:32:15Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-09-29T03:22:09Z\",\"lastEndUpdateTime\":\"2021-10-01T05:24:02Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":313574832,\"maxConcurrentJobs\":1336496962,\"\":{\"cqchygtvxbyjane\":\"datalwxlboncqbazq\",\"od\":\"dataubdpkxyqvgxi\",\"kxdxuwsaifmcwn\":\"datatvo\",\"zlehgcvkbcknjolg\":\"datas\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SelfHostedIntegrationRuntimeNode response = manager.integrationRuntimeNodes() - .getWithResponse("srupayl", "vwbzmfxlrymf", "xlpiywqnpfydr", "bgcnyxbyx", com.azure.core.util.Context.NONE) + .getWithResponse("plvukaobrlbpg", "nbagnchj", "g", "muowakywalhjy", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java index 8ad0c69599c7..08f62280f51a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IntegrationRuntimeNodesUpdateWithResponseMockTests { @Test public void testUpdateWithResponse() throws Exception { String responseStr - = "{\"nodeName\":\"znw\",\"machineName\":\"qufmjxcyoseq\",\"hostServiceUri\":\"zisvbrqgcyjpgaw\",\"status\":\"Online\",\"capabilities\":{\"lxb\":\"nrzpghlrdtbg\"},\"versionStatus\":\"brvjztaflv\",\"version\":\"fjihvfjcqrttjfuq\",\"registerTime\":\"2021-03-30T00:40:58Z\",\"lastConnectTime\":\"2021-03-17T20:01:27Z\",\"expiryTime\":\"2021-11-03T08:38Z\",\"lastStartTime\":\"2021-12-06T19:10:56Z\",\"lastStopTime\":\"2021-07-24T16:42:51Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-03-12T06:12:08Z\",\"lastEndUpdateTime\":\"2021-09-04T12:28:31Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":304491865,\"maxConcurrentJobs\":549678037,\"\":{\"kwdtlcj\":\"datavxgwz\",\"cqzvzrbvgwxhlxr\":\"datap\"}}"; + = "{\"nodeName\":\"bhdvafjrqpjiy\",\"machineName\":\"jc\",\"hostServiceUri\":\"a\",\"status\":\"Upgrading\",\"capabilities\":{\"tqjfgxxsaet\":\"dfkbnrzorpdltbq\",\"cduwjoedx\":\"zdgvpyigdaqqilz\"},\"versionStatus\":\"ucaifpaurwwgilf\",\"version\":\"qacdmkxwxdcvjwcy\",\"registerTime\":\"2021-04-14T09:39:28Z\",\"lastConnectTime\":\"2021-03-31T03:16:36Z\",\"expiryTime\":\"2021-11-24T09:32:16Z\",\"lastStartTime\":\"2021-02-02T19:27:24Z\",\"lastStopTime\":\"2020-12-21T19:16:47Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-07-23T12:28:28Z\",\"lastEndUpdateTime\":\"2021-02-02T16:59:30Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":976931664,\"maxConcurrentJobs\":238330415,\"\":{\"ngydgr\":\"datazhzzwvywrg\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,8 @@ public void testUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SelfHostedIntegrationRuntimeNode response = manager.integrationRuntimeNodes() - .updateWithResponse("jrxgunnq", "ypu", "tnylqu", "vqmvyumgmmu", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(1590139202), + .updateWithResponse("y", "xpvelszerqzevxo", "eintxwaljglzobl", "waafrqulh", + new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(1195414166), com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasListWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasListWithResponseMockTests.java index 95307a7837dc..3af6b534581d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasListWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasListWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class IntegrationRuntimeObjectMetadatasListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":6051952918182430761,\"name\":\"ql\",\"description\":\"fbqhsujkaf\"},{\"type\":\"SsisObjectMetadata\",\"id\":1793846288500636594,\"name\":\"qpwnikxkcajgr\",\"description\":\"ct\"},{\"type\":\"SsisObjectMetadata\",\"id\":4612818814853928220,\"name\":\"cq\",\"description\":\"zmz\"},{\"type\":\"SsisObjectMetadata\",\"id\":2995506655563936313,\"name\":\"tm\",\"description\":\"xrq\"}],\"nextLink\":\"fzfvwj\"}"; + = "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":617729007391101899,\"name\":\"kl\",\"description\":\"l\"},{\"type\":\"SsisObjectMetadata\",\"id\":2463823139091327595,\"name\":\"h\",\"description\":\"zyqu\"},{\"type\":\"SsisObjectMetadata\",\"id\":5858060139563890420,\"name\":\"utrpbr\",\"description\":\"yuuatvlmbjwcolbm\"},{\"type\":\"SsisObjectMetadata\",\"id\":1108556269139033179,\"name\":\"tpc\",\"description\":\"hprzrvxhmtfho\"}],\"nextLink\":\"xzcmjhngxno\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SsisObjectMetadataListResponse response = manager.integrationRuntimeObjectMetadatas() - .listWithResponse("psshr", "nkcclpctuog", "scxjfsgmosp", - new GetSsisObjectMetadataRequest().withMetadataPath("bnxsqc"), com.azure.core.util.Context.NONE) + .listWithResponse("ukecpx", "azvdhctmmkosz", "dblnsntrp", + new GetSsisObjectMetadataRequest().withMetadataPath("qkio"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(6051952918182430761L, response.value().get(0).id()); - Assertions.assertEquals("ql", response.value().get(0).name()); - Assertions.assertEquals("fbqhsujkaf", response.value().get(0).description()); - Assertions.assertEquals("fzfvwj", response.nextLink()); + Assertions.assertEquals(617729007391101899L, response.value().get(0).id()); + Assertions.assertEquals("kl", response.value().get(0).name()); + Assertions.assertEquals("l", response.value().get(0).description()); + Assertions.assertEquals("xzcmjhngxno", response.nextLink()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java index 3031494de2c0..5d5f179f9c23 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java @@ -20,7 +20,8 @@ public final class IntegrationRuntimeObjectMetadatasRefreshMockTests { @Test public void testRefresh() throws Exception { - String responseStr = "{\"status\":\"jr\",\"name\":\"wkyl\",\"properties\":\"bdx\",\"error\":\"qdcclcv\"}"; + String responseStr + = "{\"status\":\"epfwwt\",\"name\":\"doesxxhmwcdb\",\"properties\":\"yo\",\"error\":\"xkxhnegknjzrbhtm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,11 +31,11 @@ public void testRefresh() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SsisObjectMetadataStatusResponse response = manager.integrationRuntimeObjectMetadatas() - .refresh("thkvpyey", "afinmp", "qup", com.azure.core.util.Context.NONE); + .refresh("rxtd", "sn", "evhdlmydid", com.azure.core.util.Context.NONE); - Assertions.assertEquals("jr", response.status()); - Assertions.assertEquals("wkyl", response.name()); - Assertions.assertEquals("bdx", response.properties()); - Assertions.assertEquals("qdcclcv", response.error()); + Assertions.assertEquals("epfwwt", response.status()); + Assertions.assertEquals("doesxxhmwcdb", response.name()); + Assertions.assertEquals("yo", response.properties()); + Assertions.assertEquals("xkxhnegknjzrbhtm", response.error()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOperationStatusInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOperationStatusInnerTests.java deleted file mode 100644 index 087a1a2b620e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOperationStatusInnerTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOperationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOperationStatusInner model = BinaryData.fromString( - "{\"status\":\"Failed\",\"name\":\"kcdxfzzzw\",\"properties\":\"dataafitlhguynuchlg\",\"error\":\"txd\"}") - .toObject(IntegrationRuntimeOperationStatusInner.class); - Assertions.assertEquals(WorkspaceStatus.FAILED, model.status()); - Assertions.assertEquals("kcdxfzzzw", model.name()); - Assertions.assertEquals("txd", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOperationStatusInner model - = new IntegrationRuntimeOperationStatusInner().withStatus(WorkspaceStatus.FAILED) - .withName("kcdxfzzzw") - .withProperties("dataafitlhguynuchlg") - .withError("txd"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOperationStatusInner.class); - Assertions.assertEquals(WorkspaceStatus.FAILED, model.status()); - Assertions.assertEquals("kcdxfzzzw", model.name()); - Assertions.assertEquals("txd", model.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java index 14a1f34c7844..3d6fbf3c5a56 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java @@ -15,38 +15,33 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model = BinaryData.fromString( - "{\"category\":\"kujrllfojui\",\"endpoints\":[{\"domainName\":\"uyjucejikzo\",\"endpointDetails\":[{\"port\":593311439},{\"port\":661153299},{\"port\":475806934}]},{\"domainName\":\"jklntikyj\",\"endpointDetails\":[{\"port\":1716135154}]},{\"domainName\":\"zolxrzvhqjwtr\",\"endpointDetails\":[{\"port\":623389331}]}]}") + "{\"category\":\"hl\",\"endpoints\":[{\"domainName\":\"hckfrlhrx\",\"endpointDetails\":[{\"port\":458163652}]},{\"domainName\":\"ycanuzbpzkafku\",\"endpointDetails\":[{\"port\":1514524475},{\"port\":1300207213}]},{\"domainName\":\"ehhseyvjusrts\",\"endpointDetails\":[{\"port\":1931453115},{\"port\":1857421626}]}]}") .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("kujrllfojui", model.category()); - Assertions.assertEquals("uyjucejikzo", model.endpoints().get(0).domainName()); - Assertions.assertEquals(593311439, model.endpoints().get(0).endpointDetails().get(0).port()); + Assertions.assertEquals("hl", model.category()); + Assertions.assertEquals("hckfrlhrx", model.endpoints().get(0).domainName()); + Assertions.assertEquals(458163652, model.endpoints().get(0).endpointDetails().get(0).port()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model - = new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint().withCategory("kujrllfojui") - .withEndpoints( - Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("uyjucejikzo") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(593311439), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(661153299), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort( - 475806934))), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("jklntikyj") - .withEndpointDetails(Arrays - .asList(new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(1716135154))), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("zolxrzvhqjwtr") - .withEndpointDetails( - Arrays.asList(new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(623389331))))); + = new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint().withCategory("hl") + .withEndpoints(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("hckfrlhrx") + .withEndpointDetails(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(458163652))), + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("ycanuzbpzkafku") + .withEndpointDetails(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1514524475), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1300207213))), + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("ehhseyvjusrts") + .withEndpointDetails(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1931453115), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1857421626))))); model = BinaryData.fromObject(model) .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("kujrllfojui", model.category()); - Assertions.assertEquals("uyjucejikzo", model.endpoints().get(0).domainName()); - Assertions.assertEquals(593311439, model.endpoints().get(0).endpointDetails().get(0).port()); + Assertions.assertEquals("hl", model.category()); + Assertions.assertEquals("hckfrlhrx", model.endpoints().get(0).domainName()); + Assertions.assertEquals(458163652, model.endpoints().get(0).endpointDetails().get(0).port()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java index 979bb16062f5..16be8d5bd052 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java @@ -12,17 +12,17 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsT @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model - = BinaryData.fromString("{\"port\":1928813132}") + = BinaryData.fromString("{\"port\":772574255}") .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(1928813132, model.port()); + Assertions.assertEquals(772574255, model.port()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1928813132); + = new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(772574255); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(1928813132, model.port()); + Assertions.assertEquals(772574255, model.port()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java index f333ccdc526e..6b2673d10bd1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java @@ -14,21 +14,22 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeOutboundNetworkDependenciesEndpoint model = BinaryData - .fromString("{\"domainName\":\"pcrrk\",\"endpointDetails\":[{\"port\":1115246881},{\"port\":2045094401}]}") + .fromString( + "{\"domainName\":\"maofmxagkv\",\"endpointDetails\":[{\"port\":2048736715},{\"port\":543207996}]}") .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("pcrrk", model.domainName()); - Assertions.assertEquals(1115246881, model.endpointDetails().get(0).port()); + Assertions.assertEquals("maofmxagkv", model.domainName()); + Assertions.assertEquals(2048736715, model.endpointDetails().get(0).port()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IntegrationRuntimeOutboundNetworkDependenciesEndpoint model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("pcrrk") + = new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("maofmxagkv") .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1115246881), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(2045094401))); + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(2048736715), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(543207996))); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("pcrrk", model.domainName()); - Assertions.assertEquals(1115246881, model.endpointDetails().get(0).port()); + Assertions.assertEquals("maofmxagkv", model.domainName()); + Assertions.assertEquals(2048736715, model.endpointDetails().get(0).port()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java index 250da1d4a718..19dcf9cd1cea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java @@ -16,10 +16,10 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsRespons @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model = BinaryData.fromString( - "{\"value\":[{\"category\":\"jvlgfggcvkyyliz\",\"endpoints\":[{\"domainName\":\"psfxsf\",\"endpointDetails\":[{}]},{\"domainName\":\"vtmva\",\"endpointDetails\":[{}]},{\"domainName\":\"dqlvhukoveof\",\"endpointDetails\":[{},{},{}]},{\"domainName\":\"jfnmjmvlwyz\",\"endpointDetails\":[{},{},{},{}]}]}]}") + "{\"value\":[{\"category\":\"svlxotogtwrup\",\"endpoints\":[{\"domainName\":\"nmic\",\"endpointDetails\":[{}]},{\"domainName\":\"eoveilovnotyf\",\"endpointDetails\":[{},{},{}]},{\"domainName\":\"jbkcnxdhbttkph\",\"endpointDetails\":[{},{},{},{}]},{\"domainName\":\"vjtoqnermclfp\",\"endpointDetails\":[{},{}]}]},{\"category\":\"xus\",\"endpoints\":[{\"domainName\":\"bgyepsbj\",\"endpointDetails\":[{}]},{\"domainName\":\"ugxywpmueef\",\"endpointDetails\":[{},{}]}]},{\"category\":\"qkqujidsu\",\"endpoints\":[{\"domainName\":\"bglaocqxtccm\",\"endpointDetails\":[{},{},{}]},{\"domainName\":\"xy\",\"endpointDetails\":[{},{},{},{}]},{\"domainName\":\"yrxvwfudwpznt\",\"endpointDetails\":[{},{}]}]}]}") .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("jvlgfggcvkyyliz", model.value().get(0).category()); - Assertions.assertEquals("psfxsf", model.value().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals("svlxotogtwrup", model.value().get(0).category()); + Assertions.assertEquals("nmic", model.value().get(0).endpoints().get(0).domainName()); } @org.junit.jupiter.api.Test @@ -30,30 +30,65 @@ public void testSerialize() throws Exception { Arrays .asList( new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() - .withCategory("jvlgfggcvkyyliz") + .withCategory("svlxotogtwrup") .withEndpoints(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("psfxsf") + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("nmic") .withEndpointDetails(Arrays.asList( new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("vtmva") + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() + .withDomainName("eoveilovnotyf") .withEndpointDetails(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("dqlvhukoveof") + .withDomainName("jbkcnxdhbttkph") .withEndpointDetails(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("jfnmjmvlwyz") + .withDomainName("vjtoqnermclfp") .withEndpointDetails(Arrays.asList( new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())))), + new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint().withCategory("xus") + .withEndpoints(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() + .withDomainName("bgyepsbj") + .withEndpointDetails(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() + .withDomainName("ugxywpmueef") + .withEndpointDetails(Arrays.asList( new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())))))); + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())))), + new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() + .withCategory("qkqujidsu") + .withEndpoints(Arrays + .asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() + .withDomainName("bglaocqxtccm") + .withEndpointDetails( + Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("xy") + .withEndpointDetails(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), + new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() + .withDomainName("yrxvwfudwpznt") + .withEndpointDetails(Arrays.asList( + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())))))); model = BinaryData.fromObject(model) .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("jvlgfggcvkyyliz", model.value().get(0).category()); - Assertions.assertEquals("psfxsf", model.value().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals("svlxotogtwrup", model.value().get(0).category()); + Assertions.assertEquals("nmic", model.value().get(0).endpoints().get(0).domainName()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeResourceInnerTests.java index 9d2f430c1347..f5d83bb11ac2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeResourceInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeResourceInnerTests.java @@ -15,18 +15,18 @@ public final class IntegrationRuntimeResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"jurbuhhlkyqltqsr\",\"\":{\"vclglxnfuij\":\"datauwkffdjktsysid\",\"sfikayiansharuj\":\"datakbusqo\"}},\"etag\":\"iqxf\",\"id\":\"yjqtt\",\"name\":\"wkpqhjpenuygbq\",\"type\":\"qqekewvnqvcdlgu\"}") + "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"qsl\",\"\":{\"cczsq\":\"datavxyqjpkcattpngjc\",\"mdajv\":\"datajh\"}},\"etag\":\"sounqecanoaeu\",\"id\":\"fhyhltrpmopjmcma\",\"name\":\"u\",\"type\":\"kthfui\"}") .toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("jurbuhhlkyqltqsr", model.properties().description()); + Assertions.assertEquals("qsl", model.properties().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IntegrationRuntimeResourceInner model = new IntegrationRuntimeResourceInner() - .withProperties(new IntegrationRuntime().withDescription("jurbuhhlkyqltqsr") + IntegrationRuntimeResourceInner model + = new IntegrationRuntimeResourceInner().withProperties(new IntegrationRuntime().withDescription("qsl") .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("jurbuhhlkyqltqsr", model.properties().description()); + Assertions.assertEquals("qsl", model.properties().description()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationsGetWithResponseMockTests.java index b0c0ec2cc7d0..b365cdf23709 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class IntegrationRuntimeStatusOperationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"name\":\"eurdeewlsuxp\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"wkdwjyjiznioroof\",\"state\":\"Starting\",\"\":{\"trnighm\":\"datapmcreihu\",\"gwfmsxjwdylwxm\":\"datanuwqxungro\",\"ugeerclbltbhpwac\":\"datazjow\",\"r\":\"datayeurjwmv\"}}}"; + = "{\"name\":\"opemtu\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"ujlyegq\",\"state\":\"Starting\",\"\":{\"fvabmvmsxba\":\"dataflqqbtnyjpylxd\",\"ajmailfemjjza\":\"datavwjcnkottlwuh\",\"bdmvrscmqerndbr\":\"datazwjiqullq\"}}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IntegrationRuntimeStatusResponse response = manager.integrationRuntimeStatusOperations() - .getWithResponse("ublehhkplobz", "ottaksadz", "ghmmtbtdvucfvvra", com.azure.core.util.Context.NONE) + .getWithResponse("fq", "puby", "nclkfkeeb", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusResponseInnerTests.java index b02e1f1917f7..6dad31dd433f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusResponseInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusResponseInnerTests.java @@ -14,7 +14,7 @@ public final class IntegrationRuntimeStatusResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeStatusResponseInner model = BinaryData.fromString( - "{\"name\":\"ycjimryvwgcwwpbm\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"w\",\"state\":\"Stopping\",\"\":{\"leallklm\":\"dataxwefohecbvopwndy\",\"rdfjmzsyzfhotl\":\"datakhlowkxxpv\"}}}") + "{\"name\":\"rbirphxe\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"yva\",\"state\":\"AccessDenied\",\"\":{\"ljyoxgvcltb\":\"datakyqxjvuujqgidokg\"}}}") .toObject(IntegrationRuntimeStatusResponseInner.class); } @@ -22,7 +22,7 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { IntegrationRuntimeStatusResponseInner model = new IntegrationRuntimeStatusResponseInner() .withProperties(new IntegrationRuntimeStatus().withAdditionalProperties( - mapOf("dataFactoryName", "w", "state", "Stopping", "type", "IntegrationRuntimeStatus"))); + mapOf("dataFactoryName", "yva", "state", "AccessDenied", "type", "IntegrationRuntimeStatus"))); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatusResponseInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusTests.java index 2613222f6cff..a11849020776 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusTests.java @@ -13,14 +13,14 @@ public final class IntegrationRuntimeStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeStatus model = BinaryData.fromString( - "{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"k\",\"state\":\"Offline\",\"\":{\"c\":\"dataunsjlpjrtwszhvvu\"}}") + "{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"ncghkje\",\"state\":\"Limited\",\"\":{\"gx\":\"dataijhtxf\",\"nehmpvecx\":\"datafsm\",\"gr\":\"dataodebfqkkrbmpu\"}}") .toObject(IntegrationRuntimeStatus.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IntegrationRuntimeStatus model = new IntegrationRuntimeStatus().withAdditionalProperties( - mapOf("dataFactoryName", "k", "state", "Offline", "type", "IntegrationRuntimeStatus")); + mapOf("dataFactoryName", "ncghkje", "state", "Limited", "type", "IntegrationRuntimeStatus")); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatus.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStopOperationStatusInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStopOperationStatusInnerTests.java deleted file mode 100644 index ff5af6c75746..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStopOperationStatusInnerTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeStopOperationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStopOperationStatusInner model = BinaryData - .fromString("{\"status\":\"InProgress\",\"name\":\"zusg\",\"properties\":\"dataln\",\"error\":\"nj\"}") - .toObject(IntegrationRuntimeStopOperationStatusInner.class); - Assertions.assertEquals(WorkspaceStatus.IN_PROGRESS, model.status()); - Assertions.assertEquals("zusg", model.name()); - Assertions.assertEquals("nj", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStopOperationStatusInner model - = new IntegrationRuntimeStopOperationStatusInner().withStatus(WorkspaceStatus.IN_PROGRESS) - .withName("zusg") - .withProperties("dataln") - .withError("nj"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStopOperationStatusInner.class); - Assertions.assertEquals(WorkspaceStatus.IN_PROGRESS, model.status()); - Assertions.assertEquals("zusg", model.name()); - Assertions.assertEquals("nj", model.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeTests.java index 562aff805bd0..28cc7dc51726 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeTests.java @@ -14,17 +14,17 @@ public final class IntegrationRuntimeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntime model = BinaryData.fromString( - "{\"type\":\"IntegrationRuntime\",\"description\":\"cmfdjwnlax\",\"\":{\"czvvit\":\"datajqi\",\"fcsserxhtvsox\":\"datacgx\"}}") + "{\"type\":\"IntegrationRuntime\",\"description\":\"odsfcpkvxodpuozm\",\"\":{\"twhrdxwzywqsm\":\"datadagfuaxbezyiuok\",\"moryocfsfksym\":\"datasurex\",\"o\":\"datadystkiiuxhqyud\"}}") .toObject(IntegrationRuntime.class); - Assertions.assertEquals("cmfdjwnlax", model.description()); + Assertions.assertEquals("odsfcpkvxodpuozm", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IntegrationRuntime model = new IntegrationRuntime().withDescription("cmfdjwnlax") + IntegrationRuntime model = new IntegrationRuntime().withDescription("odsfcpkvxodpuozm") .withAdditionalProperties(mapOf("type", "IntegrationRuntime")); model = BinaryData.fromObject(model).toObject(IntegrationRuntime.class); - Assertions.assertEquals("cmfdjwnlax", model.description()); + Assertions.assertEquals("odsfcpkvxodpuozm", model.description()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeVNetPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeVNetPropertiesTests.java index f096716e23fb..57468add08c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeVNetPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeVNetPropertiesTests.java @@ -15,26 +15,26 @@ public final class IntegrationRuntimeVNetPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntegrationRuntimeVNetProperties model = BinaryData.fromString( - "{\"vNetId\":\"dmvxadq\",\"subnet\":\"frgnawbabgfbktyj\",\"publicIPs\":[\"zlfsyqkfrbzgowo\",\"qmje\"],\"subnetId\":\"cxn\",\"\":{\"mjceagbjqvls\":\"dataxhlusrvxis\",\"fq\":\"datamywzashxgonoy\"}}") + "{\"vNetId\":\"vqejosovy\",\"subnet\":\"leaesi\",\"publicIPs\":[\"tljqobbpih\",\"hcecybmrqbr\",\"bbmpxdlvykfre\",\"crse\"],\"subnetId\":\"jksghudg\",\"\":{\"hrkmdyomkxfbvfbh\":\"dataogjggsvoujkxibda\"}}") .toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("dmvxadq", model.vNetId()); - Assertions.assertEquals("frgnawbabgfbktyj", model.subnet()); - Assertions.assertEquals("zlfsyqkfrbzgowo", model.publicIPs().get(0)); - Assertions.assertEquals("cxn", model.subnetId()); + Assertions.assertEquals("vqejosovy", model.vNetId()); + Assertions.assertEquals("leaesi", model.subnet()); + Assertions.assertEquals("tljqobbpih", model.publicIPs().get(0)); + Assertions.assertEquals("jksghudg", model.subnetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IntegrationRuntimeVNetProperties model = new IntegrationRuntimeVNetProperties().withVNetId("dmvxadq") - .withSubnet("frgnawbabgfbktyj") - .withPublicIPs(Arrays.asList("zlfsyqkfrbzgowo", "qmje")) - .withSubnetId("cxn") + IntegrationRuntimeVNetProperties model = new IntegrationRuntimeVNetProperties().withVNetId("vqejosovy") + .withSubnet("leaesi") + .withPublicIPs(Arrays.asList("tljqobbpih", "hcecybmrqbr", "bbmpxdlvykfre", "crse")) + .withSubnetId("jksghudg") .withAdditionalProperties(mapOf()); model = BinaryData.fromObject(model).toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("dmvxadq", model.vNetId()); - Assertions.assertEquals("frgnawbabgfbktyj", model.subnet()); - Assertions.assertEquals("zlfsyqkfrbzgowo", model.publicIPs().get(0)); - Assertions.assertEquals("cxn", model.subnetId()); + Assertions.assertEquals("vqejosovy", model.vNetId()); + Assertions.assertEquals("leaesi", model.subnet()); + Assertions.assertEquals("tljqobbpih", model.publicIPs().get(0)); + Assertions.assertEquals("jksghudg", model.subnetId()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateMockTests.java index c5820ae169e4..2eb6ba203fd9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateMockTests.java @@ -24,7 +24,7 @@ public final class IntegrationRuntimesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"rnxhjtlxfikjk\",\"\":{\"htrxbozp\":\"dataavwwuasnjeg\",\"bl\":\"datajcnwjzb\",\"svoqiza\":\"datarnwv\"}},\"etag\":\"sdso\",\"id\":\"gfhjxsawoo\",\"name\":\"uffhxf\",\"type\":\"kmwzrdqyoy\"}"; + = "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"nequy\",\"\":{\"grmtqjk\":\"databo\"}},\"etag\":\"vadrmm\",\"id\":\"iuawvc\",\"name\":\"jzkxiidisczskos\",\"type\":\"oqiqazugamx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,14 +34,14 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IntegrationRuntimeResource response = manager.integrationRuntimes() - .define("elnirupkqnst") - .withExistingWorkspace("ymotuz", "ybwjmtftc") - .withProperties(new IntegrationRuntime().withDescription("qp") + .define("xlnwyrmouvblgmo") + .withExistingWorkspace("uyem", "owuowh") + .withProperties(new IntegrationRuntime().withDescription("kltrfow") .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))) - .withIfMatch("zyq") + .withIfMatch("qiuasigrows") .create(); - Assertions.assertEquals("rnxhjtlxfikjk", response.properties().description()); + Assertions.assertEquals("nequy", response.properties().description()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteMockTests.java index 96a7e4b10ad8..3cb437b5002e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.integrationRuntimes().delete("nq", "lct", "wp", com.azure.core.util.Context.NONE); + manager.integrationRuntimes().delete("kcvtl", "bse", "kvcuartrhunl", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQueryMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQueryMockTests.java index e9b733a233cd..c49132ac756d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQueryMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQueryMockTests.java @@ -28,7 +28,7 @@ public void testDisableInteractiveQuery() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.integrationRuntimes() - .disableInteractiveQuery("fjc", "lojhhyl", "devfi", com.azure.core.util.Context.NONE); + .disableInteractiveQuery("adppyibn", "qladywrxwhydtlu", "vadswzs", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQueryMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQueryMockTests.java index b9dc0e628d37..ce2dc9d21830 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQueryMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQueryMockTests.java @@ -28,7 +28,7 @@ public void testEnableInteractiveQuery() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.integrationRuntimes() - .enableInteractiveQuery("nfywtkq", "w", "dlkhczygpm", com.azure.core.util.Context.NONE); + .enableInteractiveQuery("n", "emehllizh", "eumoqod", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetWithResponseMockTests.java index 2ac88f3af86c..1379236f5aa5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IntegrationRuntimesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"zofmexvtemaspm\",\"\":{\"hntofe\":\"datadscdkxwdpwjcbha\",\"fixoskk\":\"datafh\",\"zzmrgtxdhmfpp\":\"datadfivsujybsr\"}},\"etag\":\"mgikesmkwt\",\"id\":\"gfragjhxerxlobkd\",\"name\":\"tqhvmmniiqyholhj\",\"type\":\"skbggi\"}"; + = "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"fzndscxmxeatkd\",\"\":{\"yibqbnao\":\"datanrd\",\"alfihcjmobcancd\":\"datahjrmkuhmaxl\",\"vaknokzwjj\":\"dataxxqcwgaxf\",\"tixldzyyfytpqs\":\"datar\"}},\"etag\":\"ymmpujivy\",\"id\":\"lkjuvsmbmslzoyov\",\"name\":\"zdbpqv\",\"type\":\"befgvmxn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IntegrationRuntimeResource response = manager.integrationRuntimes() - .getWithResponse("qtlfoz", "umrtgjqg", "cant", "syxzxjmkanbc", com.azure.core.util.Context.NONE) + .getWithResponse("bqsdtcjbctvi", "uzqymtuowog", "gitsqh", "vbrzcdb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zofmexvtemaspm", response.properties().description()); + Assertions.assertEquals("fzndscxmxeatkd", response.properties().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceMockTests.java index 729273e7197c..b0e882ff06c5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceMockTests.java @@ -22,7 +22,7 @@ public final class IntegrationRuntimesListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"wcgi\",\"\":{\"z\":\"dataimaabsqqlon\"}},\"etag\":\"wcahdkmbjsmihr\",\"id\":\"jezbfsjwfczgl\",\"name\":\"vbgukbs\",\"type\":\"bw\"}]}"; + = "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"vqdbpbhfck\",\"\":{\"b\":\"datazcrcssbzhddubbnq\",\"alehpav\":\"datah\",\"gqgdminictteajoh\":\"datawugiqjti\",\"tp\":\"dataygspnbonhpczykm\"}},\"etag\":\"xqcsehch\",\"id\":\"hufmpq\",\"name\":\"mqyjgy\",\"type\":\"zulo\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.integrationRuntimes().listByWorkspace("chefpgeed", "ybruhola", com.azure.core.util.Context.NONE); + = manager.integrationRuntimes().listByWorkspace("ltbxoeeonqlnfw", "y", com.azure.core.util.Context.NONE); - Assertions.assertEquals("wcgi", response.iterator().next().properties().description()); + Assertions.assertEquals("vqdbpbhfck", response.iterator().next().properties().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java index 02e4c46d4320..cbfa54504a0f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWi @Test public void testListOutboundNetworkDependenciesEndpointsWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"category\":\"kpaxnlsfg\",\"endpoints\":[{\"domainName\":\"accptbzetxy\",\"endpointDetails\":[{}]},{\"domainName\":\"ceecvjwyu\",\"endpointDetails\":[{},{},{},{}]},{\"domainName\":\"mpzzwahd\",\"endpointDetails\":[{},{},{}]}]},{\"category\":\"aztkxbivzfgxmbr\",\"endpoints\":[{\"domainName\":\"ibio\",\"endpointDetails\":[{},{}]}]},{\"category\":\"ykqfdqwdrtx\",\"endpoints\":[{\"domainName\":\"glmrcokzze\",\"endpointDetails\":[{},{}]},{\"domainName\":\"unzsiywhubym\",\"endpointDetails\":[{},{},{},{}]},{\"domainName\":\"ikze\",\"endpointDetails\":[{}]}]}]}"; + = "{\"value\":[{\"category\":\"afygzmxieqvds\",\"endpoints\":[{\"domainName\":\"ixqcahyhxalybxaw\",\"endpointDetails\":[{},{}]},{\"domainName\":\"o\",\"endpointDetails\":[{},{},{},{}]},{\"domainName\":\"xpkk\",\"endpointDetails\":[{},{}]},{\"domainName\":\"odqhyk\",\"endpointDetails\":[{}]}]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testListOutboundNetworkDependenciesEndpointsWithResponse() throws Ex new AzureProfile("", "", AzureEnvironment.AZURE)); IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse response = manager.integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse("xoqxtdnzujsj", "rkrpskcjhmmofb", "ivd", + .listOutboundNetworkDependenciesEndpointsWithResponse("ufanray", "fueqfrojs", "dgrhydkygywezs", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("kpaxnlsfg", response.value().get(0).category()); - Assertions.assertEquals("accptbzetxy", response.value().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals("afygzmxieqvds", response.value().get(0).category()); + Assertions.assertEquals("ixqcahyhxalybxaw", response.value().get(0).endpoints().get(0).domainName()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartMockTests.java index 9d1aeb13f886..70380bafccbe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartMockTests.java @@ -20,7 +20,7 @@ public final class IntegrationRuntimesStartMockTests { @Test public void testStart() throws Exception { String responseStr - = "{\"name\":\"ghdoaqipmnxclf\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"bzrnm\",\"state\":\"Starting\",\"\":{\"bf\":\"datauofdd\"}}}"; + = "{\"name\":\"wbeqrkuor\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"ssruqnmdvhazcvj\",\"state\":\"Starting\",\"\":{\"ukvlb\":\"datawbqerzwxiytxtd\",\"styoua\":\"dataktg\",\"yxey\":\"databewreswmowegmmut\"}}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testStart() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IntegrationRuntimeStatusResponse response = manager.integrationRuntimes() - .start("otygnbknhjg", "lxa", "wcffaspsdzkuc", com.azure.core.util.Context.NONE); + .start("saeuzanhsfnhsenw", "hpzfngqj", "lidftujwjj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopMockTests.java index fd4a3ca28808..2cf35cea369e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopMockTests.java @@ -27,7 +27,7 @@ public void testStop() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.integrationRuntimes().stop("ekjcnginxdvma", "yqxfvgy", "zmxynofxlt", com.azure.core.util.Context.NONE); + manager.integrationRuntimes().stop("uqi", "ijiitns", "xlzdesygrijwa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java index 8f89f04a1ede..d9a2f4f25793 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testUpgradeWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.integrationRuntimes() - .upgradeWithResponse("lxkrk", "gvxrktjcjigc", "tspanbqxase", com.azure.core.util.Context.NONE); + .upgradeWithResponse("iryky", "ndzfqivjreuyk", "bmnwa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubConnectionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubConnectionPropertiesTests.java deleted file mode 100644 index 6e304c0b1f5f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubConnectionPropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IotHubConnectionProperties; -import com.azure.resourcemanager.synapse.models.IotHubDataFormat; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IotHubConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IotHubConnectionProperties model = BinaryData.fromString( - "{\"iotHubResourceId\":\"ncfgybmxsnxoc\",\"consumerGroup\":\"ullojk\",\"tableName\":\"yhgww\",\"mappingRuleName\":\"uxdbdljzgdyrcvuq\",\"dataFormat\":\"TXT\",\"eventSystemProperties\":[\"rqhbjnqogdxwbsfp\"],\"sharedAccessPolicyName\":\"xxtjlflecomi\",\"provisioningState\":\"Creating\"}") - .toObject(IotHubConnectionProperties.class); - Assertions.assertEquals("ncfgybmxsnxoc", model.iotHubResourceId()); - Assertions.assertEquals("ullojk", model.consumerGroup()); - Assertions.assertEquals("yhgww", model.tableName()); - Assertions.assertEquals("uxdbdljzgdyrcvuq", model.mappingRuleName()); - Assertions.assertEquals(IotHubDataFormat.TXT, model.dataFormat()); - Assertions.assertEquals("rqhbjnqogdxwbsfp", model.eventSystemProperties().get(0)); - Assertions.assertEquals("xxtjlflecomi", model.sharedAccessPolicyName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IotHubConnectionProperties model = new IotHubConnectionProperties().withIotHubResourceId("ncfgybmxsnxoc") - .withConsumerGroup("ullojk") - .withTableName("yhgww") - .withMappingRuleName("uxdbdljzgdyrcvuq") - .withDataFormat(IotHubDataFormat.TXT) - .withEventSystemProperties(Arrays.asList("rqhbjnqogdxwbsfp")) - .withSharedAccessPolicyName("xxtjlflecomi"); - model = BinaryData.fromObject(model).toObject(IotHubConnectionProperties.class); - Assertions.assertEquals("ncfgybmxsnxoc", model.iotHubResourceId()); - Assertions.assertEquals("ullojk", model.consumerGroup()); - Assertions.assertEquals("yhgww", model.tableName()); - Assertions.assertEquals("uxdbdljzgdyrcvuq", model.mappingRuleName()); - Assertions.assertEquals(IotHubDataFormat.TXT, model.dataFormat()); - Assertions.assertEquals("rqhbjnqogdxwbsfp", model.eventSystemProperties().get(0)); - Assertions.assertEquals("xxtjlflecomi", model.sharedAccessPolicyName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubDataConnectionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubDataConnectionTests.java deleted file mode 100644 index e75816b21e7a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubDataConnectionTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IotHubDataConnection; -import com.azure.resourcemanager.synapse.models.IotHubDataFormat; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IotHubDataConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IotHubDataConnection model = BinaryData.fromString( - "{\"kind\":\"IotHub\",\"properties\":{\"iotHubResourceId\":\"etjdvqydieqqkwa\",\"consumerGroup\":\"uwdxvqzxoebwgj\",\"tableName\":\"ibanb\",\"mappingRuleName\":\"pwtzvpakloz\",\"dataFormat\":\"PSV\",\"eventSystemProperties\":[\"pejplssa\",\"bttt\"],\"sharedAccessPolicyName\":\"gs\",\"provisioningState\":\"Running\"},\"location\":\"rswgkpjhboyikeb\",\"id\":\"hkslgwlokhueoij\",\"name\":\"zcqypzqzufgsyf\",\"type\":\"jyvdwtfxptpqayam\"}") - .toObject(IotHubDataConnection.class); - Assertions.assertEquals("rswgkpjhboyikeb", model.location()); - Assertions.assertEquals("etjdvqydieqqkwa", model.iotHubResourceId()); - Assertions.assertEquals("uwdxvqzxoebwgj", model.consumerGroup()); - Assertions.assertEquals("ibanb", model.tableName()); - Assertions.assertEquals("pwtzvpakloz", model.mappingRuleName()); - Assertions.assertEquals(IotHubDataFormat.PSV, model.dataFormat()); - Assertions.assertEquals("pejplssa", model.eventSystemProperties().get(0)); - Assertions.assertEquals("gs", model.sharedAccessPolicyName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IotHubDataConnection model = new IotHubDataConnection().withLocation("rswgkpjhboyikeb") - .withIotHubResourceId("etjdvqydieqqkwa") - .withConsumerGroup("uwdxvqzxoebwgj") - .withTableName("ibanb") - .withMappingRuleName("pwtzvpakloz") - .withDataFormat(IotHubDataFormat.PSV) - .withEventSystemProperties(Arrays.asList("pejplssa", "bttt")) - .withSharedAccessPolicyName("gs"); - model = BinaryData.fromObject(model).toObject(IotHubDataConnection.class); - Assertions.assertEquals("rswgkpjhboyikeb", model.location()); - Assertions.assertEquals("etjdvqydieqqkwa", model.iotHubResourceId()); - Assertions.assertEquals("uwdxvqzxoebwgj", model.consumerGroup()); - Assertions.assertEquals("ibanb", model.tableName()); - Assertions.assertEquals("pwtzvpakloz", model.mappingRuleName()); - Assertions.assertEquals(IotHubDataFormat.PSV, model.dataFormat()); - Assertions.assertEquals("pejplssa", model.eventSystemProperties().get(0)); - Assertions.assertEquals("gs", model.sharedAccessPolicyName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoInnerTests.java index 54b757a2442c..79c66196df41 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoInnerTests.java @@ -12,18 +12,17 @@ public final class IpFirewallRuleInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IpFirewallRuleInfoInner model = BinaryData.fromString( - "{\"properties\":{\"endIpAddress\":\"kuksjtxukcdm\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"ryuanzwuxzdxtay\"},\"id\":\"lhmwhfpmrqobm\",\"name\":\"u\",\"type\":\"knryrtihfxtij\"}") + "{\"properties\":{\"endIpAddress\":\"b\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"jj\"},\"id\":\"zvdudgwdslfhotwm\",\"name\":\"ynpwlbj\",\"type\":\"pgacftadehxnlty\"}") .toObject(IpFirewallRuleInfoInner.class); - Assertions.assertEquals("kuksjtxukcdm", model.endIpAddress()); - Assertions.assertEquals("ryuanzwuxzdxtay", model.startIpAddress()); + Assertions.assertEquals("b", model.endIpAddress()); + Assertions.assertEquals("jj", model.startIpAddress()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IpFirewallRuleInfoInner model - = new IpFirewallRuleInfoInner().withEndIpAddress("kuksjtxukcdm").withStartIpAddress("ryuanzwuxzdxtay"); + IpFirewallRuleInfoInner model = new IpFirewallRuleInfoInner().withEndIpAddress("b").withStartIpAddress("jj"); model = BinaryData.fromObject(model).toObject(IpFirewallRuleInfoInner.class); - Assertions.assertEquals("kuksjtxukcdm", model.endIpAddress()); - Assertions.assertEquals("ryuanzwuxzdxtay", model.startIpAddress()); + Assertions.assertEquals("b", model.endIpAddress()); + Assertions.assertEquals("jj", model.startIpAddress()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoListResultTests.java index 7dbd51878fb5..546e19f9ec8c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoListResultTests.java @@ -14,22 +14,22 @@ public final class IpFirewallRuleInfoListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IpFirewallRuleInfoListResult model = BinaryData.fromString( - "{\"nextLink\":\"ifsqesaagdfmg\",\"value\":[{\"properties\":{\"endIpAddress\":\"xrifkwmrvkts\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"ocipaouajpsqucm\"},\"id\":\"o\",\"name\":\"fdkfogk\",\"type\":\"ygjofjdd\"},{\"properties\":{\"endIpAddress\":\"rd\",\"provisioningState\":\"Deleting\",\"startIpAddress\":\"wnw\"},\"id\":\"eitjz\",\"name\":\"flusarhmof\",\"type\":\"qhsmyurkdtml\"}]}") + "{\"nextLink\":\"ebxetqgtzxdp\",\"value\":[{\"properties\":{\"endIpAddress\":\"wxrjfeallnwsub\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"ampmngnz\"},\"id\":\"c\",\"name\":\"aqw\",\"type\":\"ochcbonqvpkvl\"},{\"properties\":{\"endIpAddress\":\"jease\",\"provisioningState\":\"Failed\",\"startIpAddress\":\"oflokey\"},\"id\":\"ienjbdlwtgr\",\"name\":\"pdjpjumasxazjp\",\"type\":\"yegu\"}]}") .toObject(IpFirewallRuleInfoListResult.class); - Assertions.assertEquals("ifsqesaagdfmg", model.nextLink()); - Assertions.assertEquals("xrifkwmrvkts", model.value().get(0).endIpAddress()); - Assertions.assertEquals("ocipaouajpsqucm", model.value().get(0).startIpAddress()); + Assertions.assertEquals("ebxetqgtzxdp", model.nextLink()); + Assertions.assertEquals("wxrjfeallnwsub", model.value().get(0).endIpAddress()); + Assertions.assertEquals("ampmngnz", model.value().get(0).startIpAddress()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IpFirewallRuleInfoListResult model = new IpFirewallRuleInfoListResult().withNextLink("ifsqesaagdfmg") + IpFirewallRuleInfoListResult model = new IpFirewallRuleInfoListResult().withNextLink("ebxetqgtzxdp") .withValue(Arrays.asList( - new IpFirewallRuleInfoInner().withEndIpAddress("xrifkwmrvkts").withStartIpAddress("ocipaouajpsqucm"), - new IpFirewallRuleInfoInner().withEndIpAddress("rd").withStartIpAddress("wnw"))); + new IpFirewallRuleInfoInner().withEndIpAddress("wxrjfeallnwsub").withStartIpAddress("ampmngnz"), + new IpFirewallRuleInfoInner().withEndIpAddress("jease").withStartIpAddress("oflokey"))); model = BinaryData.fromObject(model).toObject(IpFirewallRuleInfoListResult.class); - Assertions.assertEquals("ifsqesaagdfmg", model.nextLink()); - Assertions.assertEquals("xrifkwmrvkts", model.value().get(0).endIpAddress()); - Assertions.assertEquals("ocipaouajpsqucm", model.value().get(0).startIpAddress()); + Assertions.assertEquals("ebxetqgtzxdp", model.nextLink()); + Assertions.assertEquals("wxrjfeallnwsub", model.value().get(0).endIpAddress()); + Assertions.assertEquals("ampmngnz", model.value().get(0).startIpAddress()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulePropertiesTests.java index fe2e679bb560..4684c9fcf8a4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulePropertiesTests.java @@ -11,19 +11,20 @@ public final class IpFirewallRulePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IpFirewallRuleProperties model = BinaryData.fromString( - "{\"endIpAddress\":\"zvgnwzs\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"zufcyzkohdbi\"}") + IpFirewallRuleProperties model = BinaryData + .fromString( + "{\"endIpAddress\":\"oppusuesnzw\",\"provisioningState\":\"Deleting\",\"startIpAddress\":\"avo\"}") .toObject(IpFirewallRuleProperties.class); - Assertions.assertEquals("zvgnwzs", model.endIpAddress()); - Assertions.assertEquals("zufcyzkohdbi", model.startIpAddress()); + Assertions.assertEquals("oppusuesnzw", model.endIpAddress()); + Assertions.assertEquals("avo", model.startIpAddress()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IpFirewallRuleProperties model - = new IpFirewallRuleProperties().withEndIpAddress("zvgnwzs").withStartIpAddress("zufcyzkohdbi"); + = new IpFirewallRuleProperties().withEndIpAddress("oppusuesnzw").withStartIpAddress("avo"); model = BinaryData.fromObject(model).toObject(IpFirewallRuleProperties.class); - Assertions.assertEquals("zvgnwzs", model.endIpAddress()); - Assertions.assertEquals("zufcyzkohdbi", model.startIpAddress()); + Assertions.assertEquals("oppusuesnzw", model.endIpAddress()); + Assertions.assertEquals("avo", model.startIpAddress()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateMockTests.java index 9a07829f626f..b16467aab33a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateMockTests.java @@ -21,7 +21,7 @@ public final class IpFirewallRulesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"endIpAddress\":\"jxlehzlx\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"uwzpwiibelwcerw\"},\"id\":\"w\",\"name\":\"pjxljtxb\",\"type\":\"sqtbxxniu\"}"; + = "{\"properties\":{\"endIpAddress\":\"naie\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"skndnelqkaadlknw\"},\"id\":\"oanniyopetxi\",\"name\":\"cnrly\",\"type\":\"nucaephblkwqpat\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,13 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IpFirewallRuleInfo response = manager.ipFirewallRules() - .define("ztr") - .withExistingWorkspace("jrostvrje", "mtzzbeq") - .withEndIpAddress("xrd") - .withStartIpAddress("rwrsnrhpqatiwk") + .define("l") + .withExistingWorkspace("upxvpifd", "aifyzyzeyuubeids") + .withEndIpAddress("oithg") + .withStartIpAddress("ltgvdihoynkrx") .create(); - Assertions.assertEquals("jxlehzlx", response.endIpAddress()); - Assertions.assertEquals("uwzpwiibelwcerw", response.startIpAddress()); + Assertions.assertEquals("naie", response.endIpAddress()); + Assertions.assertEquals("skndnelqkaadlknw", response.startIpAddress()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteMockTests.java index ecb311ab9052..d227a40b1b66 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteMockTests.java @@ -10,18 +10,15 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IpFirewallRuleInfo; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; public final class IpFirewallRulesDeleteMockTests { @Test public void testDelete() throws Exception { - String responseStr - = "{\"properties\":{\"endIpAddress\":\"xwgiks\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"ooxr\"},\"id\":\"ogwp\",\"name\":\"chgjtnhtukfacih\",\"type\":\"bfntumeezbxvq\"}"; + String responseStr = "\"datazagxnvhycvdi\""; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,10 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - IpFirewallRuleInfo response = manager.ipFirewallRules() - .delete("zfbmjxuv", "ipfdvhaxdvwzaehp", "hthdklmvetatlakf", com.azure.core.util.Context.NONE); + Object response = manager.ipFirewallRules() + .delete("yqwixvcpwnkwywzw", "falickduoiqtamty", "sknxrwzawnvsbcf", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xwgiks", response.endIpAddress()); - Assertions.assertEquals("ooxr", response.startIpAddress()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetWithResponseMockTests.java index 5b0d8240316f..3704e7940f27 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IpFirewallRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"endIpAddress\":\"khtgfredmlscgrll\",\"provisioningState\":\"Deleting\",\"startIpAddress\":\"ovjowazhpabacom\"},\"id\":\"yotgkwsxnsrqorc\",\"name\":\"enmvcebxeetq\",\"type\":\"jxcxxq\"}"; + = "{\"properties\":{\"endIpAddress\":\"eotta\",\"provisioningState\":\"Deleting\",\"startIpAddress\":\"sxwwhnhjtf\"},\"id\":\"p\",\"name\":\"dpmiljpn\",\"type\":\"ynudqllzsa\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IpFirewallRuleInfo response = manager.ipFirewallRules() - .getWithResponse("bnuvwcg", "sgomtmjz", "xuqgovsxpwwztj", com.azure.core.util.Context.NONE) + .getWithResponse("wrzregzgyufu", "rw", "weryekzk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("khtgfredmlscgrll", response.endIpAddress()); - Assertions.assertEquals("ovjowazhpabacom", response.startIpAddress()); + Assertions.assertEquals("eotta", response.endIpAddress()); + Assertions.assertEquals("sxwwhnhjtf", response.startIpAddress()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceMockTests.java index d26f9456cc28..11984b4461e2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceMockTests.java @@ -22,7 +22,7 @@ public final class IpFirewallRulesListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"endIpAddress\":\"p\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"ttqhnmhkrezsds\"},\"id\":\"xheq\",\"name\":\"gcruxspinym\",\"type\":\"qgwokmikp\"}]}"; + = "{\"value\":[{\"properties\":{\"endIpAddress\":\"fwwvuatbwbqam\",\"provisioningState\":\"Failed\",\"startIpAddress\":\"iyslpkcvmwfaux\"},\"id\":\"epmywbormcqm\",\"name\":\"ciijqpkzfbojxj\",\"type\":\"cs\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testListByWorkspace() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.ipFirewallRules() - .listByWorkspace("obfelhldiuhz", "gqlmfaewzgi", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.ipFirewallRules().listByWorkspace("jdnrqjbt", "jeaoqaqbz", com.azure.core.util.Context.NONE); - Assertions.assertEquals("p", response.iterator().next().endIpAddress()); - Assertions.assertEquals("ttqhnmhkrezsds", response.iterator().next().startIpAddress()); + Assertions.assertEquals("fwwvuatbwbqam", response.iterator().next().endIpAddress()); + Assertions.assertEquals("iyslpkcvmwfaux", response.iterator().next().startIpAddress()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllMockTests.java index 99e5cd8ab1be..b36bb9925d0c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllMockTests.java @@ -24,7 +24,7 @@ public final class IpFirewallRulesReplaceAllMockTests { @Test public void testReplaceAll() throws Exception { - String responseStr = "{\"operationId\":\"ejrthcfjzhxlyub\"}"; + String responseStr = "{\"operationId\":\"xvkqm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,12 +34,16 @@ public void testReplaceAll() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ReplaceAllFirewallRulesOperationResponse response = manager.ipFirewallRules() - .replaceAll("dcqjkedwqurc", "ojmrvvxwjongzse", - new ReplaceAllIpFirewallRulesRequest().withIpFirewallRules(mapOf("bvriaqgvtojrulfu", - new IpFirewallRuleProperties().withEndIpAddress("silc").withStartIpAddress("xxkan"))), + .replaceAll("zp", "lxeehuxiq", new ReplaceAllIpFirewallRulesRequest().withIpFirewallRules(mapOf("fdsajred", + new IpFirewallRuleProperties().withEndIpAddress("aymezx").withStartIpAddress("hmx"), "zdyi", + new IpFirewallRuleProperties().withEndIpAddress("yyshtuwgmevua").withStartIpAddress("yifrkgwltxeqipx"), + "vwjtqpkevmyltjc", + new IpFirewallRuleProperties().withEndIpAddress("fayorpravkjoges") + .withStartIpAddress("smjkwynqxaekqsy"), + "osewxi", new IpFirewallRuleProperties().withEndIpAddress("pxklurccl").withStartIpAddress("nnnoytz"))), com.azure.core.util.Context.NONE); - Assertions.assertEquals("ejrthcfjzhxlyub", response.operationId()); + Assertions.assertEquals("xvkqm", response.operationId()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KekIdentityPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KekIdentityPropertiesTests.java deleted file mode 100644 index 019e3b33a591..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KekIdentityPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.KekIdentityProperties; -import org.junit.jupiter.api.Assertions; - -public final class KekIdentityPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KekIdentityProperties model = BinaryData - .fromString("{\"userAssignedIdentity\":\"vodhtn\",\"useSystemAssignedIdentity\":\"datarudhzmmesckdl\"}") - .toObject(KekIdentityProperties.class); - Assertions.assertEquals("vodhtn", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KekIdentityProperties model = new KekIdentityProperties().withUserAssignedIdentity("vodhtn") - .withUseSystemAssignedIdentity("datarudhzmmesckdl"); - model = BinaryData.fromObject(model).toObject(KekIdentityProperties.class); - Assertions.assertEquals("vodhtn", model.userAssignedIdentity()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListMockTests.java deleted file mode 100644 index f45bf08bd842..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.Operation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoOperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"lwalaossnqe\",\"display\":{\"provider\":\"tbptgcsma\",\"operation\":\"xrwqfmd\",\"resource\":\"cvtamqwzmnobfe\",\"description\":\"psibxovuqo\"},\"origin\":\"rkblndyclw\",\"properties\":\"datacvtqnzjcyqqzhemb\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoOperations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lwalaossnqe", response.iterator().next().name()); - Assertions.assertEquals("tbptgcsma", response.iterator().next().display().provider()); - Assertions.assertEquals("xrwqfmd", response.iterator().next().display().operation()); - Assertions.assertEquals("cvtamqwzmnobfe", response.iterator().next().display().resource()); - Assertions.assertEquals("psibxovuqo", response.iterator().next().display().description()); - Assertions.assertEquals("rkblndyclw", response.iterator().next().origin()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests.java deleted file mode 100644 index ebe4f63ee56a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"location\":\"hihqknlvkmnbzko\",\"properties\":{\"provisioningState\":\"Succeeded\",\"databaseName\":\"ldcpudkhquxsyj\",\"clusterResourceId\":\"fpgvedrobujnjgyb\",\"attachedDatabaseNames\":[\"qx\"],\"defaultPrincipalsModificationKind\":\"Replace\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"llnjg\",\"pskgrhn\",\"tslgsazuqznghx\",\"kyqzjsdkpvnr\"],\"tablesToExclude\":[\"pffxsfyb\",\"tmveho\",\"flyuvbgtz\"],\"externalTablesToInclude\":[\"weuydyb\",\"airvhpqsv\"],\"externalTablesToExclude\":[\"ogeatrcnqnvn\"],\"materializedViewsToInclude\":[\"fcsjvjnk\"],\"materializedViewsToExclude\":[\"nzs\"]}},\"id\":\"ibaaugicovjtm\",\"name\":\"wr\",\"type\":\"jxyvuo\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AttachedDatabaseConfiguration response = manager.kustoPoolAttachedDatabaseConfigurations() - .define("ybcelfjnxodnjy") - .withExistingKustoPool("qlqac", "fqbir", "zfaxskdvu") - .withRegion("umo") - .withDatabaseName("qxsorchaz") - .withKustoPoolResourceId("qoxzyhlbeqvhskb") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.REPLACE) - .withTableLevelSharingProperties(new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("uydwiurnicu", "dyttq", "iuvjplosebmhhtuq")) - .withTablesToExclude(Arrays.asList("ynoflqobfixngxe", "i")) - .withExternalTablesToInclude(Arrays.asList("hnkingiqcdol", "pgup", "jlbsmndafbncuyj")) - .withExternalTablesToExclude(Arrays.asList("cnhpplzhcfzxjzi", "ucrln", "wnuwkkfzzetl")) - .withMaterializedViewsToInclude(Arrays.asList("yxzlv", "ywj", "rlgqp")) - .withMaterializedViewsToExclude(Arrays.asList("zpddarcbcdwhs", "xeba", "adknmstb"))) - .create(); - - Assertions.assertEquals("hihqknlvkmnbzko", response.location()); - Assertions.assertEquals("ldcpudkhquxsyj", response.databaseName()); - Assertions.assertEquals("fpgvedrobujnjgyb", response.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, - response.defaultPrincipalsModificationKind()); - Assertions.assertEquals("llnjg", response.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("pffxsfyb", response.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("weuydyb", response.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("ogeatrcnqnvn", - response.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("fcsjvjnk", response.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("nzs", response.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests.java deleted file mode 100644 index 661090379a67..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"location\":\"bgchcgsfzhbjkiy\",\"properties\":{\"provisioningState\":\"Deleting\",\"databaseName\":\"sdjpgxe\",\"clusterResourceId\":\"sgw\",\"attachedDatabaseNames\":[\"ferznzcbivoveomk\",\"f\"],\"defaultPrincipalsModificationKind\":\"Replace\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"plfpohimgckycjp\",\"ebznbznxsulout\"],\"tablesToExclude\":[\"mxooqohgpncdm\",\"khupfhsldqdzau\"],\"externalTablesToInclude\":[\"yevdy\",\"dsytcikswhcam\",\"uynfxkcgsfcmvh\",\"drp\"],\"externalTablesToExclude\":[\"vyrkljqkq\",\"sy\",\"tvjkowggxawwdm\"],\"materializedViewsToInclude\":[\"nkteiidlbovwbclp\",\"g\",\"gani\",\"kjcnerek\"],\"materializedViewsToExclude\":[\"l\"]}},\"id\":\"wwnqhqlqgpw\",\"name\":\"tvceba\",\"type\":\"vbvx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AttachedDatabaseConfiguration response = manager.kustoPoolAttachedDatabaseConfigurations() - .getWithResponse("qmzxsyaks", "npaami", "wb", "hvwt", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("bgchcgsfzhbjkiy", response.location()); - Assertions.assertEquals("sdjpgxe", response.databaseName()); - Assertions.assertEquals("sgw", response.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, - response.defaultPrincipalsModificationKind()); - Assertions.assertEquals("plfpohimgckycjp", response.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("mxooqohgpncdm", response.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("yevdy", response.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("vyrkljqkq", response.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("nkteiidlbovwbclp", - response.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("l", response.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests.java deleted file mode 100644 index b54a543d78e6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests { - @Test - public void testListByKustoPool() throws Exception { - String responseStr - = "{\"value\":[{\"location\":\"wsbzrhdugquhtr\",\"properties\":{\"provisioningState\":\"Moving\",\"databaseName\":\"unjf\",\"clusterResourceId\":\"rjhiycbauseqnczk\",\"attachedDatabaseNames\":[\"vtuwyjsqwzszosz\",\"gzunkfnyskwwunqh\",\"za\",\"ojmslhip\"],\"defaultPrincipalsModificationKind\":\"Replace\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"ljpx\"],\"tablesToExclude\":[\"vchyluqalpcufj\",\"f\",\"tiztqds\"],\"externalTablesToInclude\":[\"hhsaa\"],\"externalTablesToExclude\":[\"ritrcwb\",\"aesyyefm\"],\"materializedViewsToInclude\":[\"qotiiqbgpa\",\"rv\",\"mtistyikjh\",\"rlx\"],\"materializedViewsToExclude\":[\"pkenn\"]}},\"id\":\"ntrqxxwtdmb\",\"name\":\"jtsuhqh\",\"type\":\"oxtdyqavfx\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPoolAttachedDatabaseConfigurations() - .listByKustoPool("zkqmx", "poriwbwggijtspzj", "rrh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wsbzrhdugquhtr", response.iterator().next().location()); - Assertions.assertEquals("unjf", response.iterator().next().databaseName()); - Assertions.assertEquals("rjhiycbauseqnczk", response.iterator().next().kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, - response.iterator().next().defaultPrincipalsModificationKind()); - Assertions.assertEquals("ljpx", - response.iterator().next().tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("vchyluqalpcufj", - response.iterator().next().tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("hhsaa", - response.iterator().next().tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("ritrcwb", - response.iterator().next().tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("qotiiqbgpa", - response.iterator().next().tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("pkenn", - response.iterator().next().tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolCheckNameRequestTests.java deleted file mode 100644 index 5be87295964e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolCheckNameRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolCheckNameRequest model - = BinaryData.fromString("{\"name\":\"mjnlexwhcb\"}").toObject(KustoPoolCheckNameRequest.class); - Assertions.assertEquals("mjnlexwhcb", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolCheckNameRequest model = new KustoPoolCheckNameRequest().withName("mjnlexwhcb"); - model = BinaryData.fromObject(model).toObject(KustoPoolCheckNameRequest.class); - Assertions.assertEquals("mjnlexwhcb", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index 56c3639f1e57..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import com.azure.resourcemanager.synapse.models.Type; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr - = "{\"nameAvailable\":true,\"name\":\"fhsovadkrmjxmwq\",\"message\":\"kes\",\"reason\":\"Invalid\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = manager.kustoPoolChildResources() - .checkNameAvailabilityWithResponse("kgpogplbjuvlnh", "nrnjhinaeg", "sbxnep", - new DatabaseCheckNameRequest().withName("mjmoplu") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals("fhsovadkrmjxmwq", response.name()); - Assertions.assertEquals("kes", response.message()); - Assertions.assertEquals(Reason.INVALID, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index d782a48c0e02..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr - = "{\"nameAvailable\":true,\"name\":\"gsapleqfgkxen\",\"message\":\"z\",\"reason\":\"Invalid\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = manager.kustoPoolDataConnections() - .checkNameAvailabilityWithResponse("xtuuci", "gvkdlhuduk", "bjoaf", "jfexulvoepkna", - new DataConnectionCheckNameRequest().withName("seiancsqoac"), com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals("gsapleqfgkxen", response.name()); - Assertions.assertEquals("z", response.message()); - Assertions.assertEquals(Reason.INVALID, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateMockTests.java deleted file mode 100644 index 7c1724e2c827..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.models.DataConnection; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"kind\":\"DataConnection\",\"location\":\"qregfurdpagknx\",\"id\":\"ovrgih\",\"name\":\"nzf\",\"type\":\"ewvqkycjcgeip\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataConnection response = manager.kustoPoolDataConnections() - .createOrUpdate("jjrnogykugdlavsa", "gthkslgeu", "fkbzbfbxjblajy", "dnbycsbtoisa", "dj", - new DataConnectionInner().withLocation("fsvpzxg"), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qregfurdpagknx", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationMockTests.java deleted file mode 100644 index c56fb6804605..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationListResult; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsDataConnectionValidationMockTests { - @Test - public void testDataConnectionValidation() throws Exception { - String responseStr - = "{\"value\":[{\"errorMessage\":\"zwefiktlhqas\"},{\"errorMessage\":\"ostjixyz\"},{\"errorMessage\":\"cigz\"},{\"errorMessage\":\"wjtacfvv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataConnectionValidationListResult response = manager.kustoPoolDataConnections() - .dataConnectionValidation("yakeszsu", "vulaqcwggc", "xvlqgfbrve", "icaovphirlzbipi", - new DataConnectionValidationInner().withDataConnectionName("nepk") - .withProperties(new DataConnectionInner().withLocation("zkueruwcjomipvw")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zwefiktlhqas", response.value().get(0).errorMessage()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteMockTests.java deleted file mode 100644 index 55e686df8ff5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPoolDataConnections() - .delete("qbjxgjwsrerukbuu", "ri", "wkwkjxlaacedikqe", "ssybzbe", "gbnrommkiqhypwt", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetWithResponseMockTests.java deleted file mode 100644 index f85ac843914c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataConnection; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"kind\":\"DataConnection\",\"location\":\"tizsyqagqllc\",\"id\":\"vaidy\",\"name\":\"kyhtrrqwfyyb\",\"type\":\"t\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataConnection response = manager.kustoPoolDataConnections() - .getWithResponse("qomaqsyilpzzbrw", "rzozsxagyso", "liiksybv", "rbnhylsbhu", "cydyllmxv", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("tizsyqagqllc", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseMockTests.java deleted file mode 100644 index f39102ad15f9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataConnection; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsListByDatabaseMockTests { - @Test - public void testListByDatabase() throws Exception { - String responseStr - = "{\"value\":[{\"kind\":\"DataConnection\",\"location\":\"hkl\",\"id\":\"hcvasyy\",\"name\":\"gqokjbmsrk\",\"type\":\"xyxxhwr\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPoolDataConnections() - .listByDatabase("dp", "bpzfomcsaugbrh", "iw", "tkfysunt", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hkl", response.iterator().next().location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateMockTests.java deleted file mode 100644 index c994c6fcab8c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.models.DataConnection; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsUpdateMockTests { - @Test - public void testUpdate() throws Exception { - String responseStr - = "{\"kind\":\"DataConnection\",\"location\":\"lydsnjzpchiypbf\",\"id\":\"i\",\"name\":\"iktqozewbrsrj\",\"type\":\"gkbrauxboufqn\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataConnection response = manager.kustoPoolDataConnections() - .update("xxsdyafwtydsmmab", "gcl", "jqzhpvhxpba", "jzeu", "lgfyogtq", - new DataConnectionInner().withLocation("jpvqerqxko"), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lydsnjzpchiypbf", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index a5a3fcc15b69..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"name\":\"b\",\"message\":\"ew\",\"reason\":\"Invalid\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = manager.kustoPoolDatabasePrincipalAssignments() - .checkNameAvailabilityWithResponse("urmd", "a", "ntjna", "fhvqiias", - new DatabasePrincipalAssignmentCheckNameRequest().withName("twskkfkuyikmxhh"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals("b", response.name()); - Assertions.assertEquals("ew", response.message()); - Assertions.assertEquals(Reason.INVALID, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests.java deleted file mode 100644 index 2328e2043f5c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"principalId\":\"lsxfk\",\"role\":\"Viewer\",\"tenantId\":\"tirjvqxvwkiocxo\",\"principalType\":\"App\",\"tenantName\":\"wbuocqflmnlrlqx\",\"principalName\":\"tatezyozd\",\"provisioningState\":\"Succeeded\",\"aadObjectId\":\"nlsjxcscnitodmra\"},\"id\":\"jido\",\"name\":\"nvlt\",\"type\":\"vmah\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DatabasePrincipalAssignment response = manager.kustoPoolDatabasePrincipalAssignments() - .define("wgetfig") - .withExistingDatabase("zy", "qxse", "wycuhyt", "n") - .withPrincipalId("jxzi") - .withRole(DatabasePrincipalRole.INGESTOR) - .withTenantId("jrahgdstu") - .withPrincipalType(PrincipalType.USER) - .create(); - - Assertions.assertEquals("lsxfk", response.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.VIEWER, response.role()); - Assertions.assertEquals("tirjvqxvwkiocxo", response.tenantId()); - Assertions.assertEquals(PrincipalType.APP, response.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteMockTests.java deleted file mode 100644 index 018ed300e10c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPoolDatabasePrincipalAssignments() - .delete("hrfbrj", "kjwqdmraqnilp", "qcaig", "zwfwlrfdjwlzseod", "qfdrs", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests.java deleted file mode 100644 index 7cc0863d5c64..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"principalId\":\"fmxgl\",\"role\":\"Viewer\",\"tenantId\":\"jrau\",\"principalType\":\"User\",\"tenantName\":\"hznurttu\",\"principalName\":\"aaxxdcdjmdkqtxfr\",\"provisioningState\":\"Creating\",\"aadObjectId\":\"xstowagehxuihwes\"},\"id\":\"jaqgblkkn\",\"name\":\"ypmte\",\"type\":\"spsaneyvaerpiob\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DatabasePrincipalAssignment response = manager.kustoPoolDatabasePrincipalAssignments() - .getWithResponse("rgyzcslazp", "kqoyimxpggk", "teagbgac", "qpjuytvude", "lpbybkisb", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("fmxgl", response.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.VIEWER, response.role()); - Assertions.assertEquals("jrau", response.tenantId()); - Assertions.assertEquals(PrincipalType.USER, response.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListMockTests.java deleted file mode 100644 index 038ee138d815..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"principalId\":\"pjrrhpgsjbioag\",\"role\":\"Admin\",\"tenantId\":\"qehmdqvaol\",\"principalType\":\"User\",\"tenantName\":\"dfs\",\"principalName\":\"k\",\"provisioningState\":\"Running\",\"aadObjectId\":\"brsvxphtjnhp\"},\"id\":\"lrkdcyzhimm\",\"name\":\"dtdtft\",\"type\":\"izuzjd\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPoolDatabasePrincipalAssignments() - .list("lbqtrefeclflxc", "ffzw", "cvdefxonztpcjpt", "ntqrcjqpzj", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pjrrhpgsjbioag", response.iterator().next().principalId()); - Assertions.assertEquals(DatabasePrincipalRole.ADMIN, response.iterator().next().role()); - Assertions.assertEquals("qehmdqvaol", response.iterator().next().tenantId()); - Assertions.assertEquals(PrincipalType.USER, response.iterator().next().principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateMockTests.java deleted file mode 100644 index e84b83236a63..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.Database; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"kind\":\"Database\",\"location\":\"ifkfrpmplu\",\"id\":\"ebrmjjnfp\",\"name\":\"htbttpkimskhnkkh\",\"type\":\"ykrsm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Database response = manager.kustoPoolDatabases() - .createOrUpdate("lbzdlbybpaxh", "zyso", "snwbhanzgesfhsha", "pahnezp", - new DatabaseInner().withLocation("fyvynpmgg"), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ifkfrpmplu", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteMockTests.java deleted file mode 100644 index 58840ca47b4d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPoolDatabases() - .delete("nbwhiieyoz", "r", "wfpucwnbcgqe", "gzjvbxqcbgoa", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetWithResponseMockTests.java deleted file mode 100644 index c34a91269b96..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.Database; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"kind\":\"Database\",\"location\":\"aevhgsulwvg\",\"id\":\"ufigvfjjuzki\",\"name\":\"mciwu\",\"type\":\"yzekypyovl\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Database response = manager.kustoPoolDatabases() - .getWithResponse("biywevs", "gdrmnszdosmjsqsv", "v", "xtcwgh", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("aevhgsulwvg", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolMockTests.java deleted file mode 100644 index 59743b2b86f7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.Database; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesListByKustoPoolMockTests { - @Test - public void testListByKustoPool() throws Exception { - String responseStr - = "{\"value\":[{\"kind\":\"Database\",\"location\":\"h\",\"id\":\"uvsqj\",\"name\":\"rvjnqtaqgxqb\",\"type\":\"kceincnrec\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPoolDatabases() - .listByKustoPool("nxczbassqfyy", "wppeygk", "zbloasybxhqvovd", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("h", response.iterator().next().location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateMockTests.java deleted file mode 100644 index d9f9b448f0c3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.Database; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesUpdateMockTests { - @Test - public void testUpdate() throws Exception { - String responseStr - = "{\"kind\":\"Database\",\"location\":\"kx\",\"id\":\"qaygas\",\"name\":\"kvc\",\"type\":\"wpvlcjbvyezjwjkq\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Database response = manager.kustoPoolDatabases() - .update("rcmelycpgokut", "rvybnz", "nv", "sh", new DatabaseInner().withLocation("zzlapyixlvzc"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kx", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolInnerTests.java deleted file mode 100644 index bef8ad17b6c8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolInnerTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolInner model = BinaryData.fromString( - "{\"sku\":{\"name\":\"Compute optimized\",\"capacity\":1648089745,\"size\":\"Small\"},\"properties\":{\"state\":\"Stopped\",\"provisioningState\":\"Succeeded\",\"uri\":\"foyzbamwineof\",\"dataIngestionUri\":\"kak\",\"stateReason\":\"ldtve\",\"optimizedAutoscale\":{\"version\":1479898890,\"isEnabled\":false,\"minimum\":330899196,\"maximum\":452091482},\"enableStreamingIngest\":false,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{\"languageExtensionName\":\"PYTHON\"},{\"languageExtensionName\":\"R\"},{\"languageExtensionName\":\"PYTHON\"}]},\"workspaceUID\":\"nrup\"},\"etag\":\"amrdixtrekidswys\",\"location\":\"ruffgllukk\",\"tags\":{\"hvmblcouqehbhbc\":\"lxhrp\",\"blto\":\"sziryrandoyp\",\"g\":\"rmkfqlwxldykals\",\"sjjx\":\"olnjpnnbmjksibj\"},\"id\":\"ahmrnadzyqegxyi\",\"name\":\"pinbmhwbjijkgqxn\",\"type\":\"mbk\"}") - .toObject(KustoPoolInner.class); - Assertions.assertEquals("ruffgllukk", model.location()); - Assertions.assertEquals("lxhrp", model.tags().get("hvmblcouqehbhbc")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(1648089745, model.sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.sku().size()); - Assertions.assertEquals(1479898890, model.optimizedAutoscale().version()); - Assertions.assertEquals(false, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(330899196, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(452091482, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, model.enableStreamingIngest()); - Assertions.assertEquals(true, model.enablePurge()); - Assertions.assertEquals("nrup", model.workspaceUid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolInner model = new KustoPoolInner().withLocation("ruffgllukk") - .withTags(mapOf("hvmblcouqehbhbc", "lxhrp", "blto", "sziryrandoyp", "g", "rmkfqlwxldykals", "sjjx", - "olnjpnnbmjksibj")) - .withSku( - new AzureSku().withName(SkuName.COMPUTE_OPTIMIZED).withCapacity(1648089745).withSize(SkuSize.SMALL)) - .withOptimizedAutoscale(new OptimizedAutoscale().withVersion(1479898890) - .withIsEnabled(false) - .withMinimum(330899196) - .withMaximum(452091482)) - .withEnableStreamingIngest(false) - .withEnablePurge(true) - .withWorkspaceUid("nrup"); - model = BinaryData.fromObject(model).toObject(KustoPoolInner.class); - Assertions.assertEquals("ruffgllukk", model.location()); - Assertions.assertEquals("lxhrp", model.tags().get("hvmblcouqehbhbc")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(1648089745, model.sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.sku().size()); - Assertions.assertEquals(1479898890, model.optimizedAutoscale().version()); - Assertions.assertEquals(false, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(330899196, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(452091482, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, model.enableStreamingIngest()); - Assertions.assertEquals(true, model.enablePurge()); - Assertions.assertEquals("nrup", model.workspaceUid()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolListResultInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolListResultInnerTests.java deleted file mode 100644 index 6edf6a2d0f58..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolListResultInnerTests.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolListResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolListResultInner model = BinaryData.fromString( - "{\"value\":[{\"sku\":{\"name\":\"Compute optimized\",\"capacity\":1494340900,\"size\":\"Extra small\"},\"properties\":{\"state\":\"Running\",\"provisioningState\":\"Succeeded\",\"uri\":\"brlc\",\"dataIngestionUri\":\"duczkgof\",\"stateReason\":\"fsrucv\",\"optimizedAutoscale\":{\"version\":1881322830,\"isEnabled\":true,\"minimum\":1764052687,\"maximum\":1614382020},\"enableStreamingIngest\":true,\"enablePurge\":false,\"languageExtensions\":{\"value\":[{}]},\"workspaceUID\":\"aqnrmvvfkoxmlg\"},\"etag\":\"tuidvrmazlpd\",\"location\":\"exymzvla\",\"tags\":{\"uzivensrpmeyyvp\":\"bhpwvqsgnyy\"},\"id\":\"patlbijp\",\"name\":\"gsksrfhf\",\"type\":\"olmk\"},{\"sku\":{\"name\":\"Compute optimized\",\"capacity\":1673744879,\"size\":\"Medium\"},\"properties\":{\"state\":\"Running\",\"provisioningState\":\"Deleting\",\"uri\":\"vfqawzfgbrttuiac\",\"dataIngestionUri\":\"iexhajl\",\"stateReason\":\"t\",\"optimizedAutoscale\":{\"version\":1682611856,\"isEnabled\":false,\"minimum\":2025473151,\"maximum\":69460429},\"enableStreamingIngest\":false,\"enablePurge\":false,\"languageExtensions\":{\"value\":[{}]},\"workspaceUID\":\"vnwsw\"},\"etag\":\"xkyctwwgzwx\",\"location\":\"mecvogygzyvneeza\",\"tags\":{\"jjjavfqnvhnq\":\"htmoqqtlffhzbkr\"},\"id\":\"ewdogiyetesy\",\"name\":\"vidbztjhqtfb\",\"type\":\"vnynkb\"},{\"sku\":{\"name\":\"Storage optimized\",\"capacity\":835275806,\"size\":\"Medium\"},\"properties\":{\"state\":\"Stopped\",\"provisioningState\":\"Deleting\",\"uri\":\"kzyaup\",\"dataIngestionUri\":\"ccxnafbwqroohtuo\",\"stateReason\":\"aonurjtumg\",\"optimizedAutoscale\":{\"version\":784380912,\"isEnabled\":false,\"minimum\":410392818,\"maximum\":118637187},\"enableStreamingIngest\":true,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{}]},\"workspaceUID\":\"yjxltbsjusc\"},\"etag\":\"f\",\"location\":\"gctmgxuupbezq\",\"tags\":{\"ukdqkkyihztg\":\"drtc\",\"qzgwldoychil\":\"qm\"},\"id\":\"cecfehuwaoaguh\",\"name\":\"cqlliz\",\"type\":\"tac\"},{\"sku\":{\"name\":\"Compute optimized\",\"capacity\":2124357758,\"size\":\"Small\"},\"properties\":{\"state\":\"Unavailable\",\"provisioningState\":\"Creating\",\"uri\":\"qejpmvssehaepwa\",\"dataIngestionUri\":\"xtczhupeuknijd\",\"stateReason\":\"yespydjfbocyv\",\"optimizedAutoscale\":{\"version\":629630238,\"isEnabled\":true,\"minimum\":1075169547,\"maximum\":1596124539},\"enableStreamingIngest\":false,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{}]},\"workspaceUID\":\"akuflgbhgauacdix\"},\"etag\":\"ufr\",\"location\":\"yjq\",\"tags\":{\"efgwbmqjc\":\"fnozoeoqbvjh\",\"pzealbmqkyojw\":\"ntasfaymxbu\",\"mbtsuahxsg\":\"vf\"},\"id\":\"jcmmzrrscub\",\"name\":\"wsdrnpxqwodif\",\"type\":\"jxcjrmmuabwib\"}]}") - .toObject(KustoPoolListResultInner.class); - Assertions.assertEquals("exymzvla", model.value().get(0).location()); - Assertions.assertEquals("bhpwvqsgnyy", model.value().get(0).tags().get("uzivensrpmeyyvp")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.value().get(0).sku().name()); - Assertions.assertEquals(1494340900, model.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, model.value().get(0).sku().size()); - Assertions.assertEquals(1881322830, model.value().get(0).optimizedAutoscale().version()); - Assertions.assertEquals(true, model.value().get(0).optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1764052687, model.value().get(0).optimizedAutoscale().minimum()); - Assertions.assertEquals(1614382020, model.value().get(0).optimizedAutoscale().maximum()); - Assertions.assertEquals(true, model.value().get(0).enableStreamingIngest()); - Assertions.assertEquals(false, model.value().get(0).enablePurge()); - Assertions.assertEquals("aqnrmvvfkoxmlg", model.value().get(0).workspaceUid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolListResultInner model = new KustoPoolListResultInner().withValue(Arrays.asList( - new KustoPoolInner().withLocation("exymzvla") - .withTags(mapOf("uzivensrpmeyyvp", "bhpwvqsgnyy")) - .withSku(new AzureSku().withName(SkuName.COMPUTE_OPTIMIZED) - .withCapacity(1494340900) - .withSize(SkuSize.EXTRA_SMALL)) - .withOptimizedAutoscale(new OptimizedAutoscale().withVersion(1881322830) - .withIsEnabled(true) - .withMinimum(1764052687) - .withMaximum(1614382020)) - .withEnableStreamingIngest(true) - .withEnablePurge(false) - .withWorkspaceUid("aqnrmvvfkoxmlg"), - new KustoPoolInner().withLocation("mecvogygzyvneeza") - .withTags(mapOf("jjjavfqnvhnq", "htmoqqtlffhzbkr")) - .withSku(new AzureSku().withName(SkuName.COMPUTE_OPTIMIZED) - .withCapacity(1673744879) - .withSize(SkuSize.MEDIUM)) - .withOptimizedAutoscale(new OptimizedAutoscale().withVersion(1682611856) - .withIsEnabled(false) - .withMinimum(2025473151) - .withMaximum(69460429)) - .withEnableStreamingIngest(false) - .withEnablePurge(false) - .withWorkspaceUid("vnwsw"), - new KustoPoolInner().withLocation("gctmgxuupbezq") - .withTags(mapOf("ukdqkkyihztg", "drtc", "qzgwldoychil", "qm")) - .withSku( - new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(835275806).withSize(SkuSize.MEDIUM)) - .withOptimizedAutoscale(new OptimizedAutoscale().withVersion(784380912) - .withIsEnabled(false) - .withMinimum(410392818) - .withMaximum(118637187)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .withWorkspaceUid("yjxltbsjusc"), - new KustoPoolInner().withLocation("yjq") - .withTags(mapOf("efgwbmqjc", "fnozoeoqbvjh", "pzealbmqkyojw", "ntasfaymxbu", "mbtsuahxsg", "vf")) - .withSku( - new AzureSku().withName(SkuName.COMPUTE_OPTIMIZED).withCapacity(2124357758).withSize(SkuSize.SMALL)) - .withOptimizedAutoscale(new OptimizedAutoscale().withVersion(629630238) - .withIsEnabled(true) - .withMinimum(1075169547) - .withMaximum(1596124539)) - .withEnableStreamingIngest(false) - .withEnablePurge(true) - .withWorkspaceUid("akuflgbhgauacdix"))); - model = BinaryData.fromObject(model).toObject(KustoPoolListResultInner.class); - Assertions.assertEquals("exymzvla", model.value().get(0).location()); - Assertions.assertEquals("bhpwvqsgnyy", model.value().get(0).tags().get("uzivensrpmeyyvp")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.value().get(0).sku().name()); - Assertions.assertEquals(1494340900, model.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, model.value().get(0).sku().size()); - Assertions.assertEquals(1881322830, model.value().get(0).optimizedAutoscale().version()); - Assertions.assertEquals(true, model.value().get(0).optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1764052687, model.value().get(0).optimizedAutoscale().minimum()); - Assertions.assertEquals(1614382020, model.value().get(0).optimizedAutoscale().maximum()); - Assertions.assertEquals(true, model.value().get(0).enableStreamingIngest()); - Assertions.assertEquals(false, model.value().get(0).enablePurge()); - Assertions.assertEquals("aqnrmvvfkoxmlg", model.value().get(0).workspaceUid()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index b1c09fe258cb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr - = "{\"nameAvailable\":false,\"name\":\"i\",\"message\":\"cfqiywhx\",\"reason\":\"AlreadyExists\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = manager.kustoPoolPrincipalAssignments() - .checkNameAvailabilityWithResponse("zyjj", "u", "omzq", - new ClusterPrincipalAssignmentCheckNameRequest().withName("n"), com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals("i", response.name()); - Assertions.assertEquals("cfqiywhx", response.message()); - Assertions.assertEquals(Reason.ALREADY_EXISTS, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests.java deleted file mode 100644 index 3c1a55cce892..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"principalId\":\"vvyxtvvxnakzi\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"aybf\",\"principalType\":\"App\",\"tenantName\":\"gfwhrmvlaknujmwx\",\"principalName\":\"zblxna\",\"provisioningState\":\"Succeeded\",\"aadObjectId\":\"fndcbsyhlud\"},\"id\":\"kkovohwv\",\"name\":\"rj\",\"type\":\"dvt\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ClusterPrincipalAssignment response = manager.kustoPoolPrincipalAssignments() - .define("izej") - .withExistingKustoPool("hheuyuun", "myevyigdeipn", "li") - .withPrincipalId("cndjzwhajo") - .withRole(ClusterPrincipalRole.ALL_DATABASES_VIEWER) - .withTenantId("qokhdyncradxs") - .withPrincipalType(PrincipalType.GROUP) - .create(); - - Assertions.assertEquals("vvyxtvvxnakzi", response.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, response.role()); - Assertions.assertEquals("aybf", response.tenantId()); - Assertions.assertEquals(PrincipalType.APP, response.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteMockTests.java deleted file mode 100644 index 34922bc0cec1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPoolPrincipalAssignments() - .delete("d", "zigecwsad", "qyuddk", "wqdm", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetWithResponseMockTests.java deleted file mode 100644 index 086479b32bc4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetWithResponseMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"principalId\":\"akrxi\",\"role\":\"AllDatabasesViewer\",\"tenantId\":\"fforxsqtzngxbs\",\"principalType\":\"App\",\"tenantName\":\"wguxcmmhipbvskci\",\"principalName\":\"y\",\"provisioningState\":\"Deleting\",\"aadObjectId\":\"saangfgbmcvmh\"},\"id\":\"yliuajklnacg\",\"name\":\"nxq\",\"type\":\"onmzrjjaojpzn\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ClusterPrincipalAssignment response = manager.kustoPoolPrincipalAssignments() - .getWithResponse("xz", "jwyfi", "irgcjfai", "ulp", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("akrxi", response.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_VIEWER, response.role()); - Assertions.assertEquals("fforxsqtzngxbs", response.tenantId()); - Assertions.assertEquals(PrincipalType.APP, response.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListMockTests.java deleted file mode 100644 index 9b03ff323a5d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"principalId\":\"ah\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"knfmkc\",\"principalType\":\"Group\",\"tenantName\":\"hdgwuzrono\",\"principalName\":\"hz\",\"provisioningState\":\"Running\",\"aadObjectId\":\"wysodcikgx\"},\"id\":\"zzfzdjek\",\"name\":\"b\",\"type\":\"w\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPoolPrincipalAssignments() - .list("apialezaydpuzu", "egefxlieggot", "smhssfnwh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ah", response.iterator().next().principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, response.iterator().next().role()); - Assertions.assertEquals("knfmkc", response.iterator().next().tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, response.iterator().next().principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesInnerTests.java deleted file mode 100644 index e071761f3f99..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; - -public final class KustoPoolPrivateLinkResourcesInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolPrivateLinkResourcesInner model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"ratqxmbjro\",\"requiredMembers\":[\"znv\",\"l\"],\"requiredZoneNames\":[\"huzgfxo\",\"jtpusllywpvtiotz\",\"pdbollg\",\"yfqiuasig\"],\"provisioningState\":\"Running\"},\"id\":\"ocnequygdjboqgrm\",\"name\":\"qjkqevadrmmwi\",\"type\":\"awvcmjzkxiid\"}") - .toObject(KustoPoolPrivateLinkResourcesInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolPrivateLinkResourcesInner model = new KustoPoolPrivateLinkResourcesInner(); - model = BinaryData.fromObject(model).toObject(KustoPoolPrivateLinkResourcesInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationsListMockTests.java deleted file mode 100644 index 80e5a12f209b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationsListMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.KustoPoolPrivateLinkResources; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrivateLinkResourcesOperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"rcqd\",\"requiredMembers\":[\"ifn\",\"hlsforsimtf\",\"qmmyn\"],\"requiredZoneNames\":[\"elpfijtezgxmpes\",\"amadlerzi\",\"f\",\"ivczktllxswtdap\"],\"provisioningState\":\"Failed\"},\"id\":\"mnrijefmrtw\",\"name\":\"c\",\"type\":\"vdsp\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPoolPrivateLinkResourcesOperations() - .list("uwkup", "bnhi", "lh", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPropertiesTests.java deleted file mode 100644 index d273102e82b8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolProperties; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolProperties model = BinaryData.fromString( - "{\"state\":\"Stopped\",\"provisioningState\":\"Running\",\"uri\":\"nnggiycwkdtaawxw\",\"dataIngestionUri\":\"ka\",\"stateReason\":\"rrqmbzmqk\",\"optimizedAutoscale\":{\"version\":294632549,\"isEnabled\":true,\"minimum\":1369142351,\"maximum\":1303745431},\"enableStreamingIngest\":false,\"enablePurge\":false,\"languageExtensions\":{\"value\":[{\"languageExtensionName\":\"PYTHON\"},{\"languageExtensionName\":\"PYTHON\"},{\"languageExtensionName\":\"PYTHON\"}]},\"workspaceUID\":\"okdgoge\"}") - .toObject(KustoPoolProperties.class); - Assertions.assertEquals(294632549, model.optimizedAutoscale().version()); - Assertions.assertEquals(true, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1369142351, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(1303745431, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, model.enableStreamingIngest()); - Assertions.assertEquals(false, model.enablePurge()); - Assertions.assertEquals("okdgoge", model.workspaceUid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolProperties model = new KustoPoolProperties() - .withOptimizedAutoscale(new OptimizedAutoscale().withVersion(294632549) - .withIsEnabled(true) - .withMinimum(1369142351) - .withMaximum(1303745431)) - .withEnableStreamingIngest(false) - .withEnablePurge(false) - .withWorkspaceUid("okdgoge"); - model = BinaryData.fromObject(model).toObject(KustoPoolProperties.class); - Assertions.assertEquals(294632549, model.optimizedAutoscale().version()); - Assertions.assertEquals(true, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1369142351, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(1303745431, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, model.enableStreamingIngest()); - Assertions.assertEquals(false, model.enablePurge()); - Assertions.assertEquals("okdgoge", model.workspaceUid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolUpdateTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolUpdateTests.java deleted file mode 100644 index 2bef5defbdb7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolUpdateTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.KustoPoolUpdate; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolUpdate model = BinaryData.fromString( - "{\"tags\":{\"zhhh\":\"ewnf\",\"mffjkutycyarn\":\"o\",\"pyc\":\"oohguabzoghkt\",\"ot\":\"hcoeocnhzq\"},\"sku\":{\"name\":\"Storage optimized\",\"capacity\":1955213837,\"size\":\"Extra small\"},\"properties\":{\"state\":\"Creating\",\"provisioningState\":\"Running\",\"uri\":\"lohap\",\"dataIngestionUri\":\"nfszpyglqdhmrjz\",\"stateReason\":\"l\",\"optimizedAutoscale\":{\"version\":968773203,\"isEnabled\":false,\"minimum\":1606890839,\"maximum\":2002700390},\"enableStreamingIngest\":true,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{\"languageExtensionName\":\"PYTHON\"},{\"languageExtensionName\":\"R\"},{\"languageExtensionName\":\"PYTHON\"},{\"languageExtensionName\":\"PYTHON\"}]},\"workspaceUID\":\"vsqxfxjelgcmpzqj\"},\"id\":\"hhqxuwyvcacoyviv\",\"name\":\"s\",\"type\":\"zusjsz\"}") - .toObject(KustoPoolUpdate.class); - Assertions.assertEquals("ewnf", model.tags().get("zhhh")); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(1955213837, model.sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, model.sku().size()); - Assertions.assertEquals(968773203, model.optimizedAutoscale().version()); - Assertions.assertEquals(false, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1606890839, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(2002700390, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(true, model.enableStreamingIngest()); - Assertions.assertEquals(true, model.enablePurge()); - Assertions.assertEquals("vsqxfxjelgcmpzqj", model.workspaceUid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolUpdate model = new KustoPoolUpdate() - .withTags(mapOf("zhhh", "ewnf", "mffjkutycyarn", "o", "pyc", "oohguabzoghkt", "ot", "hcoeocnhzq")) - .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED) - .withCapacity(1955213837) - .withSize(SkuSize.EXTRA_SMALL)) - .withOptimizedAutoscale(new OptimizedAutoscale().withVersion(968773203) - .withIsEnabled(false) - .withMinimum(1606890839) - .withMaximum(2002700390)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .withWorkspaceUid("vsqxfxjelgcmpzqj"); - model = BinaryData.fromObject(model).toObject(KustoPoolUpdate.class); - Assertions.assertEquals("ewnf", model.tags().get("zhhh")); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(1955213837, model.sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, model.sku().size()); - Assertions.assertEquals(968773203, model.optimizedAutoscale().version()); - Assertions.assertEquals(false, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1606890839, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(2002700390, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(true, model.enableStreamingIngest()); - Assertions.assertEquals(true, model.enablePurge()); - Assertions.assertEquals("vsqxfxjelgcmpzqj", model.workspaceUid()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsMockTests.java deleted file mode 100644 index 1ccbafd3fde1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsAddLanguageExtensionsMockTests { - @Test - public void testAddLanguageExtensions() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPools() - .addLanguageExtensions("bmitaftazgcxsvq", "cqufylam", "ow", - new LanguageExtensionsList().withValue( - Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index eb63ab93bcf8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr - = "{\"nameAvailable\":true,\"name\":\"snqpljpete\",\"message\":\"tikelpmwgr\",\"reason\":\"AlreadyExists\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = manager.kustoPools() - .checkNameAvailabilityWithResponse("rogeuvmkrspnr", new KustoPoolCheckNameRequest().withName("jseml"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals("snqpljpete", response.name()); - Assertions.assertEquals("tikelpmwgr", response.message()); - Assertions.assertEquals(Reason.ALREADY_EXISTS, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateMockTests.java deleted file mode 100644 index 5dbc15aa899c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"sku\":{\"name\":\"Storage optimized\",\"capacity\":138676999,\"size\":\"Extra small\"},\"properties\":{\"state\":\"Updating\",\"provisioningState\":\"Succeeded\",\"uri\":\"mxnhtm\",\"dataIngestionUri\":\"tqlfxolrwvtl\",\"stateReason\":\"yfjswequf\",\"optimizedAutoscale\":{\"version\":982342998,\"isEnabled\":false,\"minimum\":378103748,\"maximum\":357909165},\"enableStreamingIngest\":true,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{\"languageExtensionName\":\"R\"},{\"languageExtensionName\":\"PYTHON\"}]},\"workspaceUID\":\"tbvufrkwjiemim\"},\"etag\":\"npow\",\"location\":\"jskreeedddrft\",\"tags\":{\"uwbrnqyxfedqne\":\"ulpclhsiige\",\"nxoqgv\":\"dqw\"},\"id\":\"zp\",\"name\":\"gp\",\"type\":\"meyobqajejirvavr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - KustoPool response = manager.kustoPools() - .define("byjecrq") - .withRegion("helhbimyi") - .withExistingWorkspace("ifqhdx", "wwulkrybpaevy") - .withSku( - new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(1214865889).withSize(SkuSize.SMALL)) - .withTags(mapOf("cthtpq", "a", "zkdiuvflgzhcw", "fzdos", "g", "gwahcrxo")) - .withOptimizedAutoscale(new OptimizedAutoscale().withVersion(405918188) - .withIsEnabled(true) - .withMinimum(342377991) - .withMaximum(1407841877)) - .withEnableStreamingIngest(true) - .withEnablePurge(false) - .withWorkspaceUid("ollcshjucihby") - .withIfMatch("ghhh") - .withIfNoneMatch("vnnjd") - .create(); - - Assertions.assertEquals("jskreeedddrft", response.location()); - Assertions.assertEquals("ulpclhsiige", response.tags().get("uwbrnqyxfedqne")); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, response.sku().name()); - Assertions.assertEquals(138676999, response.sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, response.sku().size()); - Assertions.assertEquals(982342998, response.optimizedAutoscale().version()); - Assertions.assertEquals(false, response.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(378103748, response.optimizedAutoscale().minimum()); - Assertions.assertEquals(357909165, response.optimizedAutoscale().maximum()); - Assertions.assertEquals(true, response.enableStreamingIngest()); - Assertions.assertEquals(true, response.enablePurge()); - Assertions.assertEquals("tbvufrkwjiemim", response.workspaceUid()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesMockTests.java deleted file mode 100644 index f7cdac7c6729..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsDetachFollowerDatabasesMockTests { - @Test - public void testDetachFollowerDatabases() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPools() - .detachFollowerDatabases("zsnfzyviiwsuanzh", "syuifkzqqhbtflo", "lmkf", - new FollowerDatabaseDefinitionInner().withKustoPoolResourceId("eoiipjpngvyvu") - .withAttachedDatabaseConfigurationName("ikdlpsxntugfwimq"), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetWithResponseMockTests.java deleted file mode 100644 index 0dfeeab186ed..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"sku\":{\"name\":\"Compute optimized\",\"capacity\":1789917841,\"size\":\"Large\"},\"properties\":{\"state\":\"Deleted\",\"provisioningState\":\"Running\",\"uri\":\"aqwmwqo\",\"dataIngestionUri\":\"flteatnegef\",\"stateReason\":\"xnjtqbgysib\",\"optimizedAutoscale\":{\"version\":2133577099,\"isEnabled\":false,\"minimum\":1403266090,\"maximum\":635241954},\"enableStreamingIngest\":true,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{\"languageExtensionName\":\"R\"},{\"languageExtensionName\":\"PYTHON\"},{\"languageExtensionName\":\"R\"}]},\"workspaceUID\":\"xu\"},\"etag\":\"aujqgbbjv\",\"location\":\"oawh\",\"tags\":{\"e\":\"mbcsloygsabdgd\",\"zvzuat\":\"onsdunr\",\"bqskgqjbvitptpvs\":\"hgzuyxtrvf\"},\"id\":\"favdhpiwrm\",\"name\":\"wkgjwb\",\"type\":\"fdwfbwxy\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - KustoPool response = manager.kustoPools() - .getWithResponse("uynf", "kyvnhiysdhork", "lhr", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("oawh", response.location()); - Assertions.assertEquals("mbcsloygsabdgd", response.tags().get("e")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, response.sku().name()); - Assertions.assertEquals(1789917841, response.sku().capacity()); - Assertions.assertEquals(SkuSize.LARGE, response.sku().size()); - Assertions.assertEquals(2133577099, response.optimizedAutoscale().version()); - Assertions.assertEquals(false, response.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1403266090, response.optimizedAutoscale().minimum()); - Assertions.assertEquals(635241954, response.optimizedAutoscale().maximum()); - Assertions.assertEquals(true, response.enableStreamingIngest()); - Assertions.assertEquals(true, response.enablePurge()); - Assertions.assertEquals("xu", response.workspaceUid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceWithResponseMockTests.java deleted file mode 100644 index 257981fe52d6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceWithResponseMockTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.KustoPoolListResult; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListByWorkspaceWithResponseMockTests { - @Test - public void testListByWorkspaceWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"sku\":{\"name\":\"Compute optimized\",\"capacity\":1330095429,\"size\":\"Large\"},\"properties\":{\"state\":\"Deleting\",\"provisioningState\":\"Moving\",\"uri\":\"dfwgqjhewcffrx\",\"dataIngestionUri\":\"ezkhzp\",\"stateReason\":\"qissen\",\"optimizedAutoscale\":{\"version\":1824938735,\"isEnabled\":true,\"minimum\":1906202000,\"maximum\":1806204309},\"enableStreamingIngest\":true,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{},{},{}]},\"workspaceUID\":\"n\"},\"etag\":\"kplujyduon\",\"location\":\"awsaoplvvmnbkx\",\"tags\":{\"xqkdyqjvzvcgrds\":\"sbbdddwokqxai\",\"hvzf\":\"zesfkqqx\"},\"id\":\"brouszxac\",\"name\":\"wukokgoojj\",\"type\":\"uktubcmunhgbtzv\"},{\"sku\":{\"name\":\"Compute optimized\",\"capacity\":861082551,\"size\":\"Medium\"},\"properties\":{\"state\":\"Starting\",\"provisioningState\":\"Moving\",\"uri\":\"fnkcnihkswxm\",\"dataIngestionUri\":\"rqmwmwwpn\",\"stateReason\":\"motahbqsvnk\",\"optimizedAutoscale\":{\"version\":143583752,\"isEnabled\":true,\"minimum\":1027927355,\"maximum\":215079538},\"enableStreamingIngest\":false,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{},{},{},{}]},\"workspaceUID\":\"cqmyrhkvxzz\"},\"etag\":\"emqyftgpqoswgfq\",\"location\":\"mghpakbqyh\",\"tags\":{\"jm\":\"rnfbmeqagkn\",\"mqmbwpp\":\"bnyevztnjawrhule\"},\"id\":\"irxbkitzmnhit\",\"name\":\"xjucl\",\"type\":\"j\"},{\"sku\":{\"name\":\"Storage optimized\",\"capacity\":936714724,\"size\":\"Large\"},\"properties\":{\"state\":\"Updating\",\"provisioningState\":\"Running\",\"uri\":\"dvyljubvfjy\",\"dataIngestionUri\":\"f\",\"stateReason\":\"ifnivlut\",\"optimizedAutoscale\":{\"version\":932860252,\"isEnabled\":true,\"minimum\":1427315085,\"maximum\":1903854968},\"enableStreamingIngest\":true,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{},{},{}]},\"workspaceUID\":\"xhklsqxt\"},\"etag\":\"yygktsrjyxxoxwf\",\"location\":\"kvecnxfx\",\"tags\":{\"vuwmsumustihtgr\":\"owbebsnbwut\",\"czvogtd\":\"fjajvkyxmm\"},\"id\":\"rjenn\",\"name\":\"kvaeuwqdwxhhlbm\",\"type\":\"phfxnrpdhewoky\"},{\"sku\":{\"name\":\"Compute optimized\",\"capacity\":530619554,\"size\":\"Small\"},\"properties\":{\"state\":\"Stopping\",\"provisioningState\":\"Running\",\"uri\":\"hqbtodjfyxbvkv\",\"dataIngestionUri\":\"dmv\",\"stateReason\":\"qwcrugyo\",\"optimizedAutoscale\":{\"version\":388406043,\"isEnabled\":true,\"minimum\":18905408,\"maximum\":1117163209},\"enableStreamingIngest\":true,\"enablePurge\":false,\"languageExtensions\":{\"value\":[{},{}]},\"workspaceUID\":\"c\"},\"etag\":\"kvx\",\"location\":\"dqzbvbpsuvqhx\",\"tags\":{\"rklpiigfuzk\":\"fgdkwbk\",\"jclzjwaqdzqydewu\":\"utui\"},\"id\":\"xyll\",\"name\":\"zzevtzqwczochwb\",\"type\":\"k\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - KustoPoolListResult response = manager.kustoPools() - .listByWorkspaceWithResponse("wu", "hvo", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("awsaoplvvmnbkx", response.value().get(0).location()); - Assertions.assertEquals("sbbdddwokqxai", response.value().get(0).tags().get("xqkdyqjvzvcgrds")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, response.value().get(0).sku().name()); - Assertions.assertEquals(1330095429, response.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.LARGE, response.value().get(0).sku().size()); - Assertions.assertEquals(1824938735, response.value().get(0).optimizedAutoscale().version()); - Assertions.assertEquals(true, response.value().get(0).optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1906202000, response.value().get(0).optimizedAutoscale().minimum()); - Assertions.assertEquals(1806204309, response.value().get(0).optimizedAutoscale().maximum()); - Assertions.assertEquals(true, response.value().get(0).enableStreamingIngest()); - Assertions.assertEquals(true, response.value().get(0).enablePurge()); - Assertions.assertEquals("n", response.value().get(0).workspaceUid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesMockTests.java deleted file mode 100644 index 33d96781beb3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.FollowerDatabaseDefinition; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListFollowerDatabasesMockTests { - @Test - public void testListFollowerDatabases() throws Exception { - String responseStr - = "{\"value\":[{\"clusterResourceId\":\"i\",\"attachedDatabaseConfigurationName\":\"wsunjzijaciwmmpd\",\"databaseName\":\"donb\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPools() - .listFollowerDatabases("cekggvmfnnb", "xn", "dfkkedeetxtpwcv", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("i", response.iterator().next().kustoPoolResourceId()); - Assertions.assertEquals("wsunjzijaciwmmpd", response.iterator().next().attachedDatabaseConfigurationName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsMockTests.java deleted file mode 100644 index b7f49131ce3d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.LanguageExtension; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListLanguageExtensionsMockTests { - @Test - public void testListLanguageExtensions() throws Exception { - String responseStr = "{\"value\":[{\"languageExtensionName\":\"R\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.kustoPools().listLanguageExtensions("bq", "dqk", "sb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(LanguageExtensionName.R, response.iterator().next().languageExtensionName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListMockTests.java deleted file mode 100644 index 495807bcdad3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SkuDescription; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"resourceType\":\"wnalbadpis\",\"name\":\"leajvmvvlooub\",\"size\":\"xipjeopskgocjom\",\"locations\":[\"f\",\"zusj\"],\"locationInfo\":[{\"location\":\"uslgdwzrgdqyx\",\"zones\":[\"lgrcavqcwyzoqzkm\",\"cwwsj\"]},{\"location\":\"kiixepbntqqwwgfg\",\"zones\":[\"ilefej\",\"ewrznequqynttw\",\"nhajksbsyogjmq\",\"hgcydijnmcvj\"]}],\"restrictions\":[\"datafcriqxzix\",\"datadlxwmvc\",\"datakucpxpyafrwrg\"]}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPools().list(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceMockTests.java deleted file mode 100644 index 50b0aa3d368a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureResourceSku; -import com.azure.resourcemanager.synapse.models.AzureScaleType; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListSkusByResourceMockTests { - @Test - public void testListSkusByResource() throws Exception { - String responseStr - = "{\"value\":[{\"resourceType\":\"j\",\"sku\":{\"name\":\"Storage optimized\",\"capacity\":87921864,\"size\":\"Extra small\"},\"capacity\":{\"scaleType\":\"automatic\",\"minimum\":1304026371,\"maximum\":1331546381,\"default\":936439234}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.kustoPools().listSkusByResource("p", "hm", "qibtblmc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("j", response.iterator().next().resourceType()); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, response.iterator().next().sku().name()); - Assertions.assertEquals(87921864, response.iterator().next().sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, response.iterator().next().sku().size()); - Assertions.assertEquals(AzureScaleType.AUTOMATIC, response.iterator().next().capacity().scaleType()); - Assertions.assertEquals(1304026371, response.iterator().next().capacity().minimum()); - Assertions.assertEquals(1331546381, response.iterator().next().capacity().maximum()); - Assertions.assertEquals(936439234, response.iterator().next().capacity().defaultProperty()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsMockTests.java deleted file mode 100644 index 9e1a079eec95..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsRemoveLanguageExtensionsMockTests { - @Test - public void testRemoveLanguageExtensions() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPools() - .removeLanguageExtensions("kar", "tipquks", "iknsgo", - new LanguageExtensionsList().withValue( - Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON))), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartMockTests.java deleted file mode 100644 index 7c284f66d9f5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsStartMockTests { - @Test - public void testStart() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPools().start("xxkdevpxim", "iizm", "qmduvtvodqx", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopMockTests.java deleted file mode 100644 index 2ccf08250176..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class KustoPoolsStopMockTests { - @Test - public void testStop() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPools().stop("l", "upqscoobkjlcax", "qcomjiqiince", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionInnerTests.java deleted file mode 100644 index c02f2fe3a7ef..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionInnerTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import org.junit.jupiter.api.Assertions; - -public final class LanguageExtensionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LanguageExtensionInner model - = BinaryData.fromString("{\"languageExtensionName\":\"PYTHON\"}").toObject(LanguageExtensionInner.class); - Assertions.assertEquals(LanguageExtensionName.PYTHON, model.languageExtensionName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LanguageExtensionInner model - = new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON); - model = BinaryData.fromObject(model).toObject(LanguageExtensionInner.class); - Assertions.assertEquals(LanguageExtensionName.PYTHON, model.languageExtensionName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionsListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionsListTests.java deleted file mode 100644 index d2155ba63cd6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionsListTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LanguageExtensionsListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LanguageExtensionsList model = BinaryData - .fromString("{\"value\":[{\"languageExtensionName\":\"R\"},{\"languageExtensionName\":\"PYTHON\"}]}") - .toObject(LanguageExtensionsList.class); - Assertions.assertEquals(LanguageExtensionName.R, model.value().get(0).languageExtensionName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LanguageExtensionsList model = new LanguageExtensionsList() - .withValue(Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON))); - model = BinaryData.fromObject(model).toObject(LanguageExtensionsList.class); - Assertions.assertEquals(LanguageExtensionName.R, model.value().get(0).languageExtensionName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesGetWithResponseMockTests.java index 649265013cdd..e30207da9978 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class LibrariesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"name\":\"kchkapit\",\"path\":\"shfyf\",\"containerName\":\"ibjepzwhj\",\"uploadedTimestamp\":\"2021-08-24T15:34:55Z\",\"type\":\"gbggcjx\",\"provisioningStatus\":\"blivw\",\"creatorId\":\"sudy\"},\"etag\":\"mbhdo\",\"id\":\"m\",\"name\":\"ngkqlgxzduvxd\",\"type\":\"xexatmdmnrs\"}"; + = "{\"properties\":{\"name\":\"zxlhdjzqdcadwv\",\"path\":\"ozjiihj\",\"containerName\":\"ybmrzoepnxwd\",\"uploadedTimestamp\":\"2021-01-21T04:01:58Z\",\"type\":\"kgvfnmxaursqf\",\"provisioningStatus\":\"btyi\",\"creatorId\":\"yvp\"},\"etag\":\"fqjpnqno\",\"id\":\"w\",\"name\":\"bedenrexkx\",\"type\":\"hxvucnu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); LibraryResource response = manager.libraries() - .getWithResponse("pnbn", "gyweo", "bepgcmahiwfry", com.azure.core.util.Context.NONE) + .getWithResponse("xomeikjclwzacn", "wpfsuqtaaz", "qbxyxoyfpuqqi", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("kchkapit", response.namePropertiesName()); - Assertions.assertEquals("shfyf", response.path()); - Assertions.assertEquals("ibjepzwhj", response.containerName()); - Assertions.assertEquals("gbggcjx", response.typePropertiesType()); + Assertions.assertEquals("zxlhdjzqdcadwv", response.namePropertiesName()); + Assertions.assertEquals("ozjiihj", response.path()); + Assertions.assertEquals("ybmrzoepnxwd", response.containerName()); + Assertions.assertEquals("kgvfnmxaursqf", response.typePropertiesType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationsListByWorkspaceMockTests.java index 70d69d8c8513..f95de42dcc9d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationsListByWorkspaceMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationsListByWorkspaceMockTests.java @@ -22,7 +22,7 @@ public final class LibrariesOperationsListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"name\":\"zsoxznntwgk\",\"path\":\"oh\",\"containerName\":\"apzupz\",\"uploadedTimestamp\":\"2021-11-05T19:38:44Z\",\"type\":\"bdjzghximkg\",\"provisioningStatus\":\"xpqkjnpy\",\"creatorId\":\"wntotcxmmqmt\"},\"etag\":\"ky\",\"id\":\"rexw\",\"name\":\"onbexft\",\"type\":\"daubheeggzgr\"}]}"; + = "{\"value\":[{\"properties\":{\"name\":\"kskmqozzkivyhjrl\",\"path\":\"zji\",\"containerName\":\"qfhefkwabsol\",\"uploadedTimestamp\":\"2020-12-25T14:58:24Z\",\"type\":\"qlmgnlqxsjxt\",\"provisioningStatus\":\"exhvuqbozoolz\",\"creatorId\":\"carkuzlb\"},\"etag\":\"ndtsnxawqytll\",\"id\":\"dyz\",\"name\":\"yckzex\",\"type\":\"xak\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.librariesOperations().listByWorkspace("nxoirxy", "dmiplois", com.azure.core.util.Context.NONE); + = manager.librariesOperations().listByWorkspace("gmnhjevd", "znfaj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("zsoxznntwgk", response.iterator().next().namePropertiesName()); - Assertions.assertEquals("oh", response.iterator().next().path()); - Assertions.assertEquals("apzupz", response.iterator().next().containerName()); - Assertions.assertEquals("bdjzghximkg", response.iterator().next().typePropertiesType()); + Assertions.assertEquals("kskmqozzkivyhjrl", response.iterator().next().namePropertiesName()); + Assertions.assertEquals("zji", response.iterator().next().path()); + Assertions.assertEquals("qfhefkwabsol", response.iterator().next().containerName()); + Assertions.assertEquals("qlmgnlqxsjxt", response.iterator().next().typePropertiesType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryInfoTests.java index 8cd21e264b83..32c6f1b38fdf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryInfoTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryInfoTests.java @@ -12,24 +12,22 @@ public final class LibraryInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LibraryInfo model = BinaryData.fromString( - "{\"name\":\"qxtbjwgnyf\",\"path\":\"fzsvtuikzh\",\"containerName\":\"qglcfhmlrqryxynq\",\"uploadedTimestamp\":\"2021-09-26T14:22:07Z\",\"type\":\"p\",\"provisioningStatus\":\"vwxzn\",\"creatorId\":\"goeiybbabpfhvfsl\"}") + "{\"name\":\"o\",\"path\":\"si\",\"containerName\":\"evcciqihnhun\",\"uploadedTimestamp\":\"2021-08-15T16:10:49Z\",\"type\":\"zrnf\",\"provisioningStatus\":\"xgispemvtzfkufu\",\"creatorId\":\"jofxqe\"}") .toObject(LibraryInfo.class); - Assertions.assertEquals("qxtbjwgnyf", model.name()); - Assertions.assertEquals("fzsvtuikzh", model.path()); - Assertions.assertEquals("qglcfhmlrqryxynq", model.containerName()); - Assertions.assertEquals("p", model.type()); + Assertions.assertEquals("o", model.name()); + Assertions.assertEquals("si", model.path()); + Assertions.assertEquals("evcciqihnhun", model.containerName()); + Assertions.assertEquals("zrnf", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LibraryInfo model = new LibraryInfo().withName("qxtbjwgnyf") - .withPath("fzsvtuikzh") - .withContainerName("qglcfhmlrqryxynq") - .withType("p"); + LibraryInfo model + = new LibraryInfo().withName("o").withPath("si").withContainerName("evcciqihnhun").withType("zrnf"); model = BinaryData.fromObject(model).toObject(LibraryInfo.class); - Assertions.assertEquals("qxtbjwgnyf", model.name()); - Assertions.assertEquals("fzsvtuikzh", model.path()); - Assertions.assertEquals("qglcfhmlrqryxynq", model.containerName()); - Assertions.assertEquals("p", model.type()); + Assertions.assertEquals("o", model.name()); + Assertions.assertEquals("si", model.path()); + Assertions.assertEquals("evcciqihnhun", model.containerName()); + Assertions.assertEquals("zrnf", model.type()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryListResponseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryListResponseTests.java index 10b68328d794..e081664954b1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryListResponseTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryListResponseTests.java @@ -14,40 +14,36 @@ public final class LibraryListResponseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LibraryListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"name\":\"pubowsepdfg\",\"path\":\"tdherngbtcjuahok\",\"containerName\":\"obkauxofsh\",\"uploadedTimestamp\":\"2021-10-19T08:31:07Z\",\"type\":\"pnulaiywzej\",\"provisioningStatus\":\"hs\",\"creatorId\":\"koj\"},\"etag\":\"l\",\"id\":\"dnpdwrpqaf\",\"name\":\"fugsnnfhyetefy\",\"type\":\"oc\"},{\"properties\":{\"name\":\"tfjgt\",\"path\":\"rjvzuyt\",\"containerName\":\"mlmuowol\",\"uploadedTimestamp\":\"2021-10-18T09:49:12Z\",\"type\":\"ropions\",\"provisioningStatus\":\"nw\",\"creatorId\":\"gajinnixjawrtmj\"},\"etag\":\"myccx\",\"id\":\"zhcoxovnekhe\",\"name\":\"lusfnrdtjxtxrdcq\",\"type\":\"jvidttge\"},{\"properties\":{\"name\":\"slvyjtcvuwkasi\",\"path\":\"esfuught\",\"containerName\":\"fecjxeygtuhx\",\"uploadedTimestamp\":\"2021-01-12T18:06:14Z\",\"type\":\"uewmrswnjlxuzrhw\",\"provisioningStatus\":\"sxjb\",\"creatorId\":\"ehgpdohzjqatu\"},\"etag\":\"igebxncnwfepb\",\"id\":\"wgfmx\",\"name\":\"gcgbjb\",\"type\":\"dlfgtdysnaq\"},{\"properties\":{\"name\":\"lqbctqhamzjrw\",\"path\":\"qzeqyjleziunjxdf\",\"containerName\":\"ntkwcegy\",\"uploadedTimestamp\":\"2021-02-09T22:26:38Z\",\"type\":\"nseqacjjvp\",\"provisioningStatus\":\"guooqjagmdit\",\"creatorId\":\"eiookjbsah\"},\"etag\":\"dt\",\"id\":\"delqacslmoto\",\"name\":\"bnfxofvc\",\"type\":\"k\"}],\"nextLink\":\"irazftxejwabmd\"}") + "{\"value\":[{\"properties\":{\"name\":\"jawgqwg\",\"path\":\"ni\",\"containerName\":\"x\",\"uploadedTimestamp\":\"2021-09-13T09:37:01Z\",\"type\":\"y\",\"provisioningStatus\":\"klwndnhjdauwhv\",\"creatorId\":\"wzbtdhxu\"},\"etag\":\"nbmpowuwprzq\",\"id\":\"veual\",\"name\":\"pjmkhfxobbc\",\"type\":\"wsrtjriplrbpbe\"},{\"properties\":{\"name\":\"ghfg\",\"path\":\"c\",\"containerName\":\"xzvlvqhjkbegib\",\"uploadedTimestamp\":\"2021-07-17T08:56:43Z\",\"type\":\"iebwwaloayqcgwrt\",\"provisioningStatus\":\"uzgwyzmhtx\",\"creatorId\":\"gmtsavjcbpwxqpsr\"},\"etag\":\"ftguv\",\"id\":\"iuhprwmdyvxqta\",\"name\":\"riwwroy\",\"type\":\"bexrmcq\"},{\"properties\":{\"name\":\"ycnojvknmefqsg\",\"path\":\"ah\",\"containerName\":\"jyzhpvgq\",\"uploadedTimestamp\":\"2021-04-06T16:15:02Z\",\"type\":\"vxdjzlmwlxkvugf\",\"provisioningStatus\":\"ovawjvzunlu\",\"creatorId\":\"nnprn\"},\"etag\":\"peilpjzuaejxdu\",\"id\":\"tskzbbtdzumveek\",\"name\":\"pwo\",\"type\":\"uh\"}],\"nextLink\":\"p\"}") .toObject(LibraryListResponse.class); - Assertions.assertEquals("pubowsepdfg", model.value().get(0).namePropertiesName()); - Assertions.assertEquals("tdherngbtcjuahok", model.value().get(0).path()); - Assertions.assertEquals("obkauxofsh", model.value().get(0).containerName()); - Assertions.assertEquals("pnulaiywzej", model.value().get(0).typePropertiesType()); - Assertions.assertEquals("irazftxejwabmd", model.nextLink()); + Assertions.assertEquals("jawgqwg", model.value().get(0).namePropertiesName()); + Assertions.assertEquals("ni", model.value().get(0).path()); + Assertions.assertEquals("x", model.value().get(0).containerName()); + Assertions.assertEquals("y", model.value().get(0).typePropertiesType()); + Assertions.assertEquals("p", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LibraryListResponse model = new LibraryListResponse().withValue(Arrays.asList( - new LibraryResourceInner().withNamePropertiesName("pubowsepdfg") - .withPath("tdherngbtcjuahok") - .withContainerName("obkauxofsh") - .withTypePropertiesType("pnulaiywzej"), - new LibraryResourceInner().withNamePropertiesName("tfjgt") - .withPath("rjvzuyt") - .withContainerName("mlmuowol") - .withTypePropertiesType("ropions"), - new LibraryResourceInner().withNamePropertiesName("slvyjtcvuwkasi") - .withPath("esfuught") - .withContainerName("fecjxeygtuhx") - .withTypePropertiesType("uewmrswnjlxuzrhw"), - new LibraryResourceInner().withNamePropertiesName("lqbctqhamzjrw") - .withPath("qzeqyjleziunjxdf") - .withContainerName("ntkwcegy") - .withTypePropertiesType("nseqacjjvp"))) - .withNextLink("irazftxejwabmd"); + new LibraryResourceInner().withNamePropertiesName("jawgqwg") + .withPath("ni") + .withContainerName("x") + .withTypePropertiesType("y"), + new LibraryResourceInner().withNamePropertiesName("ghfg") + .withPath("c") + .withContainerName("xzvlvqhjkbegib") + .withTypePropertiesType("iebwwaloayqcgwrt"), + new LibraryResourceInner().withNamePropertiesName("ycnojvknmefqsg") + .withPath("ah") + .withContainerName("jyzhpvgq") + .withTypePropertiesType("vxdjzlmwlxkvugf"))) + .withNextLink("p"); model = BinaryData.fromObject(model).toObject(LibraryListResponse.class); - Assertions.assertEquals("pubowsepdfg", model.value().get(0).namePropertiesName()); - Assertions.assertEquals("tdherngbtcjuahok", model.value().get(0).path()); - Assertions.assertEquals("obkauxofsh", model.value().get(0).containerName()); - Assertions.assertEquals("pnulaiywzej", model.value().get(0).typePropertiesType()); - Assertions.assertEquals("irazftxejwabmd", model.nextLink()); + Assertions.assertEquals("jawgqwg", model.value().get(0).namePropertiesName()); + Assertions.assertEquals("ni", model.value().get(0).path()); + Assertions.assertEquals("x", model.value().get(0).containerName()); + Assertions.assertEquals("y", model.value().get(0).typePropertiesType()); + Assertions.assertEquals("p", model.nextLink()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryRequirementsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryRequirementsTests.java index 96a905cd5940..42193d8b6f58 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryRequirementsTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryRequirementsTests.java @@ -11,18 +11,18 @@ public final class LibraryRequirementsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - LibraryRequirements model - = BinaryData.fromString("{\"time\":\"2021-01-26T18:01:46Z\",\"content\":\"nqnm\",\"filename\":\"ngz\"}") - .toObject(LibraryRequirements.class); - Assertions.assertEquals("nqnm", model.content()); - Assertions.assertEquals("ngz", model.filename()); + LibraryRequirements model = BinaryData + .fromString("{\"time\":\"2021-06-07T12:27:36Z\",\"content\":\"depoog\",\"filename\":\"uvamiheognarxzxt\"}") + .toObject(LibraryRequirements.class); + Assertions.assertEquals("depoog", model.content()); + Assertions.assertEquals("uvamiheognarxzxt", model.filename()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LibraryRequirements model = new LibraryRequirements().withContent("nqnm").withFilename("ngz"); + LibraryRequirements model = new LibraryRequirements().withContent("depoog").withFilename("uvamiheognarxzxt"); model = BinaryData.fromObject(model).toObject(LibraryRequirements.class); - Assertions.assertEquals("nqnm", model.content()); - Assertions.assertEquals("ngz", model.filename()); + Assertions.assertEquals("depoog", model.content()); + Assertions.assertEquals("uvamiheognarxzxt", model.filename()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryResourceInnerTests.java index 729e06b390e7..783e15cf0228 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryResourceInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryResourceInnerTests.java @@ -12,24 +12,24 @@ public final class LibraryResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LibraryResourceInner model = BinaryData.fromString( - "{\"properties\":{\"name\":\"eiknpgo\",\"path\":\"jiuqhibtozi\",\"containerName\":\"wjedmurrxxgew\",\"uploadedTimestamp\":\"2021-06-22T20:24:57Z\",\"type\":\"ylkmqp\",\"provisioningStatus\":\"yhlfb\",\"creatorId\":\"wgcloxoebqinji\"},\"etag\":\"wjfuj\",\"id\":\"lafcbahh\",\"name\":\"zpofoiyjwpfilk\",\"type\":\"kkholvdndvia\"}") + "{\"properties\":{\"name\":\"misgwbnb\",\"path\":\"ldawkzbaliourqha\",\"containerName\":\"uhashsfwx\",\"uploadedTimestamp\":\"2021-10-19T13:09:56Z\",\"type\":\"z\",\"provisioningStatus\":\"ugicjooxdjebw\",\"creatorId\":\"cwwfvovbvme\"},\"etag\":\"civyhzceuo\",\"id\":\"gjrwjueiotwmcdyt\",\"name\":\"x\",\"type\":\"it\"}") .toObject(LibraryResourceInner.class); - Assertions.assertEquals("eiknpgo", model.namePropertiesName()); - Assertions.assertEquals("jiuqhibtozi", model.path()); - Assertions.assertEquals("wjedmurrxxgew", model.containerName()); - Assertions.assertEquals("ylkmqp", model.typePropertiesType()); + Assertions.assertEquals("misgwbnb", model.namePropertiesName()); + Assertions.assertEquals("ldawkzbaliourqha", model.path()); + Assertions.assertEquals("uhashsfwx", model.containerName()); + Assertions.assertEquals("z", model.typePropertiesType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LibraryResourceInner model = new LibraryResourceInner().withNamePropertiesName("eiknpgo") - .withPath("jiuqhibtozi") - .withContainerName("wjedmurrxxgew") - .withTypePropertiesType("ylkmqp"); + LibraryResourceInner model = new LibraryResourceInner().withNamePropertiesName("misgwbnb") + .withPath("ldawkzbaliourqha") + .withContainerName("uhashsfwx") + .withTypePropertiesType("z"); model = BinaryData.fromObject(model).toObject(LibraryResourceInner.class); - Assertions.assertEquals("eiknpgo", model.namePropertiesName()); - Assertions.assertEquals("jiuqhibtozi", model.path()); - Assertions.assertEquals("wjedmurrxxgew", model.containerName()); - Assertions.assertEquals("ylkmqp", model.typePropertiesType()); + Assertions.assertEquals("misgwbnb", model.namePropertiesName()); + Assertions.assertEquals("ldawkzbaliourqha", model.path()); + Assertions.assertEquals("uhashsfwx", model.containerName()); + Assertions.assertEquals("z", model.typePropertiesType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTests.java index fc6a0df87f43..749eb0695e33 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTests.java @@ -11,7 +11,7 @@ public final class LinkedIntegrationRuntimeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LinkedIntegrationRuntime model = BinaryData.fromString( - "{\"name\":\"sbpkf\",\"subscriptionId\":\"nfkgxsyaowuzowpu\",\"dataFactoryName\":\"dkcprg\",\"dataFactoryLocation\":\"xrztiochlu\",\"createTime\":\"2021-01-23T01:31:30Z\"}") + "{\"name\":\"qofu\",\"subscriptionId\":\"pmjnlexwhcb\",\"dataFactoryName\":\"ibkeph\",\"dataFactoryLocation\":\"uerct\",\"createTime\":\"2021-01-12T12:08:31Z\"}") .toObject(LinkedIntegrationRuntime.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ListResourceSkusResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ListResourceSkusResultTests.java deleted file mode 100644 index 569a1d94d4f7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ListResourceSkusResultTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.azure.resourcemanager.synapse.models.AzureCapacity; -import com.azure.resourcemanager.synapse.models.AzureScaleType; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.ListResourceSkusResult; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListResourceSkusResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListResourceSkusResult model = BinaryData.fromString( - "{\"value\":[{\"resourceType\":\"mnlzijiufehgmvf\",\"sku\":{\"name\":\"Compute optimized\",\"capacity\":200709545,\"size\":\"Small\"},\"capacity\":{\"scaleType\":\"none\",\"minimum\":1693891675,\"maximum\":925629911,\"default\":1520441581}},{\"resourceType\":\"niylyly\",\"sku\":{\"name\":\"Storage optimized\",\"capacity\":2143700986,\"size\":\"Medium\"},\"capacity\":{\"scaleType\":\"manual\",\"minimum\":350411524,\"maximum\":1491604791,\"default\":1687298742}},{\"resourceType\":\"gh\",\"sku\":{\"name\":\"Storage optimized\",\"capacity\":1199746224,\"size\":\"Large\"},\"capacity\":{\"scaleType\":\"automatic\",\"minimum\":874230435,\"maximum\":486003369,\"default\":1034131495}}]}") - .toObject(ListResourceSkusResult.class); - Assertions.assertEquals("mnlzijiufehgmvf", model.value().get(0).resourceType()); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.value().get(0).sku().name()); - Assertions.assertEquals(200709545, model.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.value().get(0).sku().size()); - Assertions.assertEquals(AzureScaleType.NONE, model.value().get(0).capacity().scaleType()); - Assertions.assertEquals(1693891675, model.value().get(0).capacity().minimum()); - Assertions.assertEquals(925629911, model.value().get(0).capacity().maximum()); - Assertions.assertEquals(1520441581, model.value().get(0).capacity().defaultProperty()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListResourceSkusResult model = new ListResourceSkusResult().withValue(Arrays.asList( - new AzureResourceSkuInner().withResourceType("mnlzijiufehgmvf") - .withSku( - new AzureSku().withName(SkuName.COMPUTE_OPTIMIZED).withCapacity(200709545).withSize(SkuSize.SMALL)) - .withCapacity(new AzureCapacity().withScaleType(AzureScaleType.NONE) - .withMinimum(1693891675) - .withMaximum(925629911) - .withDefaultProperty(1520441581)), - new AzureResourceSkuInner().withResourceType("niylyly") - .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED) - .withCapacity(2143700986) - .withSize(SkuSize.MEDIUM)) - .withCapacity(new AzureCapacity().withScaleType(AzureScaleType.MANUAL) - .withMinimum(350411524) - .withMaximum(1491604791) - .withDefaultProperty(1687298742)), - new AzureResourceSkuInner().withResourceType("gh") - .withSku( - new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(1199746224).withSize(SkuSize.LARGE)) - .withCapacity(new AzureCapacity().withScaleType(AzureScaleType.AUTOMATIC) - .withMinimum(874230435) - .withMaximum(486003369) - .withDefaultProperty(1034131495)))); - model = BinaryData.fromObject(model).toObject(ListResourceSkusResult.class); - Assertions.assertEquals("mnlzijiufehgmvf", model.value().get(0).resourceType()); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.value().get(0).sku().name()); - Assertions.assertEquals(200709545, model.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.value().get(0).sku().size()); - Assertions.assertEquals(AzureScaleType.NONE, model.value().get(0).capacity().scaleType()); - Assertions.assertEquals(1693891675, model.value().get(0).capacity().minimum()); - Assertions.assertEquals(925629911, model.value().get(0).capacity().maximum()); - Assertions.assertEquals(1520441581, model.value().get(0).capacity().defaultProperty()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsInnerTests.java index 716e40b1d243..88a35f5902bc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsInnerTests.java @@ -15,40 +15,46 @@ public final class MaintenanceWindowOptionsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MaintenanceWindowOptionsInner model = BinaryData.fromString( - "{\"properties\":{\"isEnabled\":false,\"maintenanceWindowCycles\":[{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"dxbjhwuaanozj\",\"duration\":\"ph\"}],\"minDurationInMinutes\":1172987793,\"defaultDurationInMinutes\":2134334822,\"minCycles\":1679765822,\"timeGranularityInMinutes\":946948591,\"allowMultipleMaintenanceWindowsPerCycle\":true},\"id\":\"l\",\"name\":\"vimjwos\",\"type\":\"tx\"}") + "{\"properties\":{\"isEnabled\":true,\"maintenanceWindowCycles\":[{\"dayOfWeek\":\"Saturday\",\"startTime\":\"gzulwmmrqzzr\",\"duration\":\"vpglydz\"},{\"dayOfWeek\":\"Thursday\",\"startTime\":\"qeevt\",\"duration\":\"pryu\"},{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"tpzdmovzvfvaawzq\",\"duration\":\"f\"}],\"minDurationInMinutes\":97417905,\"defaultDurationInMinutes\":1828408441,\"minCycles\":1067396685,\"timeGranularityInMinutes\":60723986,\"allowMultipleMaintenanceWindowsPerCycle\":false},\"id\":\"xndticokpvzmlqtm\",\"name\":\"dgxobfircl\",\"type\":\"pkc\"}") .toObject(MaintenanceWindowOptionsInner.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("dxbjhwuaanozj", model.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("ph", model.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(1172987793, model.minDurationInMinutes()); - Assertions.assertEquals(2134334822, model.defaultDurationInMinutes()); - Assertions.assertEquals(1679765822, model.minCycles()); - Assertions.assertEquals(946948591, model.timeGranularityInMinutes()); - Assertions.assertEquals(true, model.allowMultipleMaintenanceWindowsPerCycle()); + Assertions.assertEquals(true, model.isEnabled()); + Assertions.assertEquals(DayOfWeek.SATURDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); + Assertions.assertEquals("gzulwmmrqzzr", model.maintenanceWindowCycles().get(0).startTime()); + Assertions.assertEquals("vpglydz", model.maintenanceWindowCycles().get(0).duration()); + Assertions.assertEquals(97417905, model.minDurationInMinutes()); + Assertions.assertEquals(1828408441, model.defaultDurationInMinutes()); + Assertions.assertEquals(1067396685, model.minCycles()); + Assertions.assertEquals(60723986, model.timeGranularityInMinutes()); + Assertions.assertEquals(false, model.allowMultipleMaintenanceWindowsPerCycle()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MaintenanceWindowOptionsInner model = new MaintenanceWindowOptionsInner().withIsEnabled(false) - .withMaintenanceWindowCycles( - Arrays.asList(new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.WEDNESDAY) - .withStartTime("dxbjhwuaanozj") - .withDuration("ph"))) - .withMinDurationInMinutes(1172987793) - .withDefaultDurationInMinutes(2134334822) - .withMinCycles(1679765822) - .withTimeGranularityInMinutes(946948591) - .withAllowMultipleMaintenanceWindowsPerCycle(true); + MaintenanceWindowOptionsInner model = new MaintenanceWindowOptionsInner().withIsEnabled(true) + .withMaintenanceWindowCycles(Arrays.asList( + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.SATURDAY) + .withStartTime("gzulwmmrqzzr") + .withDuration("vpglydz"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.THURSDAY) + .withStartTime("qeevt") + .withDuration("pryu"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.WEDNESDAY) + .withStartTime("tpzdmovzvfvaawzq") + .withDuration("f"))) + .withMinDurationInMinutes(97417905) + .withDefaultDurationInMinutes(1828408441) + .withMinCycles(1067396685) + .withTimeGranularityInMinutes(60723986) + .withAllowMultipleMaintenanceWindowsPerCycle(false); model = BinaryData.fromObject(model).toObject(MaintenanceWindowOptionsInner.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("dxbjhwuaanozj", model.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("ph", model.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(1172987793, model.minDurationInMinutes()); - Assertions.assertEquals(2134334822, model.defaultDurationInMinutes()); - Assertions.assertEquals(1679765822, model.minCycles()); - Assertions.assertEquals(946948591, model.timeGranularityInMinutes()); - Assertions.assertEquals(true, model.allowMultipleMaintenanceWindowsPerCycle()); + Assertions.assertEquals(true, model.isEnabled()); + Assertions.assertEquals(DayOfWeek.SATURDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); + Assertions.assertEquals("gzulwmmrqzzr", model.maintenanceWindowCycles().get(0).startTime()); + Assertions.assertEquals("vpglydz", model.maintenanceWindowCycles().get(0).duration()); + Assertions.assertEquals(97417905, model.minDurationInMinutes()); + Assertions.assertEquals(1828408441, model.defaultDurationInMinutes()); + Assertions.assertEquals(1067396685, model.minCycles()); + Assertions.assertEquals(60723986, model.timeGranularityInMinutes()); + Assertions.assertEquals(false, model.allowMultipleMaintenanceWindowsPerCycle()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsPropertiesTests.java index 4daaadadaed8..e2f0f7465478 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsPropertiesTests.java @@ -15,43 +15,49 @@ public final class MaintenanceWindowOptionsPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MaintenanceWindowOptionsProperties model = BinaryData.fromString( - "{\"isEnabled\":true,\"maintenanceWindowCycles\":[{\"dayOfWeek\":\"Friday\",\"startTime\":\"tq\",\"duration\":\"iekkezz\"},{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"yf\",\"duration\":\"dgqggebdu\"}],\"minDurationInMinutes\":253317009,\"defaultDurationInMinutes\":663695580,\"minCycles\":624778524,\"timeGranularityInMinutes\":2007776195,\"allowMultipleMaintenanceWindowsPerCycle\":true}") + "{\"isEnabled\":false,\"maintenanceWindowCycles\":[{\"dayOfWeek\":\"Monday\",\"startTime\":\"hya\",\"duration\":\"vjlboxqvk\"},{\"dayOfWeek\":\"Thursday\",\"startTime\":\"ho\",\"duration\":\"ynhdwdigum\"},{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"auzzptjazysd\",\"duration\":\"ezwwv\"},{\"dayOfWeek\":\"Friday\",\"startTime\":\"uvvfonkp\",\"duration\":\"qyikvy\"}],\"minDurationInMinutes\":1053518025,\"defaultDurationInMinutes\":239621224,\"minCycles\":2048419194,\"timeGranularityInMinutes\":712290061,\"allowMultipleMaintenanceWindowsPerCycle\":false}") .toObject(MaintenanceWindowOptionsProperties.class); - Assertions.assertEquals(true, model.isEnabled()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("tq", model.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("iekkezz", model.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(253317009, model.minDurationInMinutes()); - Assertions.assertEquals(663695580, model.defaultDurationInMinutes()); - Assertions.assertEquals(624778524, model.minCycles()); - Assertions.assertEquals(2007776195, model.timeGranularityInMinutes()); - Assertions.assertEquals(true, model.allowMultipleMaintenanceWindowsPerCycle()); + Assertions.assertEquals(false, model.isEnabled()); + Assertions.assertEquals(DayOfWeek.MONDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); + Assertions.assertEquals("hya", model.maintenanceWindowCycles().get(0).startTime()); + Assertions.assertEquals("vjlboxqvk", model.maintenanceWindowCycles().get(0).duration()); + Assertions.assertEquals(1053518025, model.minDurationInMinutes()); + Assertions.assertEquals(239621224, model.defaultDurationInMinutes()); + Assertions.assertEquals(2048419194, model.minCycles()); + Assertions.assertEquals(712290061, model.timeGranularityInMinutes()); + Assertions.assertEquals(false, model.allowMultipleMaintenanceWindowsPerCycle()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MaintenanceWindowOptionsProperties model = new MaintenanceWindowOptionsProperties().withIsEnabled(true) + MaintenanceWindowOptionsProperties model = new MaintenanceWindowOptionsProperties().withIsEnabled(false) .withMaintenanceWindowCycles(Arrays.asList( - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.FRIDAY) - .withStartTime("tq") - .withDuration("iekkezz"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.MONDAY) + .withStartTime("hya") + .withDuration("vjlboxqvk"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.THURSDAY) + .withStartTime("ho") + .withDuration("ynhdwdigum"), new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.TUESDAY) - .withStartTime("yf") - .withDuration("dgqggebdu"))) - .withMinDurationInMinutes(253317009) - .withDefaultDurationInMinutes(663695580) - .withMinCycles(624778524) - .withTimeGranularityInMinutes(2007776195) - .withAllowMultipleMaintenanceWindowsPerCycle(true); + .withStartTime("auzzptjazysd") + .withDuration("ezwwv"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.FRIDAY) + .withStartTime("uvvfonkp") + .withDuration("qyikvy"))) + .withMinDurationInMinutes(1053518025) + .withDefaultDurationInMinutes(239621224) + .withMinCycles(2048419194) + .withTimeGranularityInMinutes(712290061) + .withAllowMultipleMaintenanceWindowsPerCycle(false); model = BinaryData.fromObject(model).toObject(MaintenanceWindowOptionsProperties.class); - Assertions.assertEquals(true, model.isEnabled()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("tq", model.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("iekkezz", model.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(253317009, model.minDurationInMinutes()); - Assertions.assertEquals(663695580, model.defaultDurationInMinutes()); - Assertions.assertEquals(624778524, model.minCycles()); - Assertions.assertEquals(2007776195, model.timeGranularityInMinutes()); - Assertions.assertEquals(true, model.allowMultipleMaintenanceWindowsPerCycle()); + Assertions.assertEquals(false, model.isEnabled()); + Assertions.assertEquals(DayOfWeek.MONDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); + Assertions.assertEquals("hya", model.maintenanceWindowCycles().get(0).startTime()); + Assertions.assertEquals("vjlboxqvk", model.maintenanceWindowCycles().get(0).duration()); + Assertions.assertEquals(1053518025, model.minDurationInMinutes()); + Assertions.assertEquals(239621224, model.defaultDurationInMinutes()); + Assertions.assertEquals(2048419194, model.minCycles()); + Assertions.assertEquals(712290061, model.timeGranularityInMinutes()); + Assertions.assertEquals(false, model.allowMultipleMaintenanceWindowsPerCycle()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowTimeRangeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowTimeRangeTests.java index 4ef72a49d267..18bfee41acca 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowTimeRangeTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowTimeRangeTests.java @@ -12,22 +12,22 @@ public final class MaintenanceWindowTimeRangeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - MaintenanceWindowTimeRange model - = BinaryData.fromString("{\"dayOfWeek\":\"Friday\",\"startTime\":\"c\",\"duration\":\"elsfeaen\"}") - .toObject(MaintenanceWindowTimeRange.class); + MaintenanceWindowTimeRange model = BinaryData + .fromString("{\"dayOfWeek\":\"Friday\",\"startTime\":\"eewchpxlktw\",\"duration\":\"ziycslevufuztck\"}") + .toObject(MaintenanceWindowTimeRange.class); Assertions.assertEquals(DayOfWeek.FRIDAY, model.dayOfWeek()); - Assertions.assertEquals("c", model.startTime()); - Assertions.assertEquals("elsfeaen", model.duration()); + Assertions.assertEquals("eewchpxlktw", model.startTime()); + Assertions.assertEquals("ziycslevufuztck", model.duration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MaintenanceWindowTimeRange model = new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.FRIDAY) - .withStartTime("c") - .withDuration("elsfeaen"); + .withStartTime("eewchpxlktw") + .withDuration("ziycslevufuztck"); model = BinaryData.fromObject(model).toObject(MaintenanceWindowTimeRange.class); Assertions.assertEquals(DayOfWeek.FRIDAY, model.dayOfWeek()); - Assertions.assertEquals("c", model.startTime()); - Assertions.assertEquals("elsfeaen", model.duration()); + Assertions.assertEquals("eewchpxlktw", model.startTime()); + Assertions.assertEquals("ziycslevufuztck", model.duration()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsInnerTests.java index 3aaa0a7ff70e..e01878da693d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsInnerTests.java @@ -15,31 +15,31 @@ public final class MaintenanceWindowsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MaintenanceWindowsInner model = BinaryData.fromString( - "{\"properties\":{\"timeRanges\":[{\"dayOfWeek\":\"Monday\",\"startTime\":\"ogjltdtbnnhad\",\"duration\":\"crkvcikhnv\"},{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"gxqquezik\",\"duration\":\"ggxkallatmelwuip\"},{\"dayOfWeek\":\"Friday\",\"startTime\":\"zkzivgvvcnay\",\"duration\":\"yrnxxmueedn\"},{\"dayOfWeek\":\"Saturday\",\"startTime\":\"stkwqqtch\",\"duration\":\"lmfmtdaay\"}]},\"id\":\"dvwvgpio\",\"name\":\"g\",\"type\":\"xrtfudxep\"}") + "{\"properties\":{\"timeRanges\":[{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"lerchpq\",\"duration\":\"f\"},{\"dayOfWeek\":\"Thursday\",\"startTime\":\"bwidfcxsspuunn\",\"duration\":\"yhkx\"},{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"rihpfhoq\",\"duration\":\"a\"},{\"dayOfWeek\":\"Sunday\",\"startTime\":\"omdjvlpjxxkzbrm\",\"duration\":\"eivsiykzkdnc\"}]},\"id\":\"dxonbzoggculap\",\"name\":\"wyrpgogtqxepnyl\",\"type\":\"fuajly\"}") .toObject(MaintenanceWindowsInner.class); - Assertions.assertEquals(DayOfWeek.MONDAY, model.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("ogjltdtbnnhad", model.timeRanges().get(0).startTime()); - Assertions.assertEquals("crkvcikhnv", model.timeRanges().get(0).duration()); + Assertions.assertEquals(DayOfWeek.TUESDAY, model.timeRanges().get(0).dayOfWeek()); + Assertions.assertEquals("lerchpq", model.timeRanges().get(0).startTime()); + Assertions.assertEquals("f", model.timeRanges().get(0).duration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MaintenanceWindowsInner model = new MaintenanceWindowsInner().withTimeRanges(Arrays.asList( - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.MONDAY) - .withStartTime("ogjltdtbnnhad") - .withDuration("crkvcikhnv"), - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.WEDNESDAY) - .withStartTime("gxqquezik") - .withDuration("ggxkallatmelwuip"), - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.FRIDAY) - .withStartTime("zkzivgvvcnay") - .withDuration("yrnxxmueedn"), - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.SATURDAY) - .withStartTime("stkwqqtch") - .withDuration("lmfmtdaay"))); + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.TUESDAY) + .withStartTime("lerchpq") + .withDuration("f"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.THURSDAY) + .withStartTime("bwidfcxsspuunn") + .withDuration("yhkx"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.TUESDAY) + .withStartTime("rihpfhoq") + .withDuration("a"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.SUNDAY) + .withStartTime("omdjvlpjxxkzbrm") + .withDuration("eivsiykzkdnc"))); model = BinaryData.fromObject(model).toObject(MaintenanceWindowsInner.class); - Assertions.assertEquals(DayOfWeek.MONDAY, model.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("ogjltdtbnnhad", model.timeRanges().get(0).startTime()); - Assertions.assertEquals("crkvcikhnv", model.timeRanges().get(0).duration()); + Assertions.assertEquals(DayOfWeek.TUESDAY, model.timeRanges().get(0).dayOfWeek()); + Assertions.assertEquals("lerchpq", model.timeRanges().get(0).startTime()); + Assertions.assertEquals("f", model.timeRanges().get(0).duration()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsPropertiesTests.java index 6f1fe022dd05..b8b4a59583f1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsPropertiesTests.java @@ -15,25 +15,31 @@ public final class MaintenanceWindowsPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MaintenanceWindowsProperties model = BinaryData.fromString( - "{\"timeRanges\":[{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"vrvmnpkukghim\",\"duration\":\"lxgwimfnjhf\"},{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"szkkfoqre\",\"duration\":\"kzikfjawneaivxwc\"}]}") + "{\"timeRanges\":[{\"dayOfWeek\":\"Monday\",\"startTime\":\"qzhv\",\"duration\":\"ibyfmo\"},{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"kjpvdwxf\",\"duration\":\"iivwzjbhyzsxjrka\"},{\"dayOfWeek\":\"Saturday\",\"startTime\":\"negvmnvuqe\",\"duration\":\"lds\"},{\"dayOfWeek\":\"Monday\",\"startTime\":\"jbkkdmflvestmjl\",\"duration\":\"ril\"}]}") .toObject(MaintenanceWindowsProperties.class); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("vrvmnpkukghim", model.timeRanges().get(0).startTime()); - Assertions.assertEquals("lxgwimfnjhf", model.timeRanges().get(0).duration()); + Assertions.assertEquals(DayOfWeek.MONDAY, model.timeRanges().get(0).dayOfWeek()); + Assertions.assertEquals("qzhv", model.timeRanges().get(0).startTime()); + Assertions.assertEquals("ibyfmo", model.timeRanges().get(0).duration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MaintenanceWindowsProperties model = new MaintenanceWindowsProperties().withTimeRanges(Arrays.asList( - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.WEDNESDAY) - .withStartTime("vrvmnpkukghim") - .withDuration("lxgwimfnjhf"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.MONDAY) + .withStartTime("qzhv") + .withDuration("ibyfmo"), new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.TUESDAY) - .withStartTime("szkkfoqre") - .withDuration("kzikfjawneaivxwc"))); + .withStartTime("kjpvdwxf") + .withDuration("iivwzjbhyzsxjrka"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.SATURDAY) + .withStartTime("negvmnvuqe") + .withDuration("lds"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.MONDAY) + .withStartTime("jbkkdmflvestmjl") + .withDuration("ril"))); model = BinaryData.fromObject(model).toObject(MaintenanceWindowsProperties.class); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("vrvmnpkukghim", model.timeRanges().get(0).startTime()); - Assertions.assertEquals("lxgwimfnjhf", model.timeRanges().get(0).duration()); + Assertions.assertEquals(DayOfWeek.MONDAY, model.timeRanges().get(0).dayOfWeek()); + Assertions.assertEquals("qzhv", model.timeRanges().get(0).startTime()); + Assertions.assertEquals("ibyfmo", model.timeRanges().get(0).duration()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelInnerTests.java index 46546caa7621..05c46e607bd5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelInnerTests.java @@ -6,26 +6,30 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; import org.junit.jupiter.api.Assertions; public final class ManagedIdentitySqlControlSettingsModelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedIdentitySqlControlSettingsModelInner model = BinaryData.fromString( - "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Enabled\",\"actualState\":\"Enabled\"}},\"id\":\"hwtzolb\",\"name\":\"emwmdxmebwjs\",\"type\":\"jpahlxvea\"}") + "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Enabled\",\"actualState\":\"Unknown\"}},\"id\":\"sbcrymodizrxklo\",\"name\":\"d\",\"type\":\"nazpmk\"}") .toObject(ManagedIdentitySqlControlSettingsModelInner.class); - Assertions.assertEquals(DesiredState.ENABLED, model.grantSqlControlToManagedIdentity().desiredState()); + Assertions.assertEquals( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED, + model.grantSqlControlToManagedIdentity().desiredState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedIdentitySqlControlSettingsModelInner model = new ManagedIdentitySqlControlSettingsModelInner().withGrantSqlControlToManagedIdentity( - new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED)); + new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity().withDesiredState( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED)); model = BinaryData.fromObject(model).toObject(ManagedIdentitySqlControlSettingsModelInner.class); - Assertions.assertEquals(DesiredState.ENABLED, model.grantSqlControlToManagedIdentity().desiredState()); + Assertions.assertEquals( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED, + model.grantSqlControlToManagedIdentity().desiredState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests.java index 6218ead67736..136bb900742c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests.java @@ -5,26 +5,30 @@ package com.azure.resourcemanager.synapse.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; import org.junit.jupiter.api.Assertions; public final class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity model - = BinaryData.fromString("{\"desiredState\":\"Enabled\",\"actualState\":\"Disabling\"}") + = BinaryData.fromString("{\"desiredState\":\"Disabled\",\"actualState\":\"Disabled\"}") .toObject(ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.class); - Assertions.assertEquals(DesiredState.ENABLED, model.desiredState()); + Assertions.assertEquals( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.DISABLED, + model.desiredState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity model - = new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED); + = new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity().withDesiredState( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.DISABLED); model = BinaryData.fromObject(model) .toObject(ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.class); - Assertions.assertEquals(DesiredState.ENABLED, model.desiredState()); + Assertions.assertEquals( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.DISABLED, + model.desiredState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesTests.java index 4926cb16cd6a..9ee153516a2d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesTests.java @@ -6,8 +6,8 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelProperties; -import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; import org.junit.jupiter.api.Assertions; public final class ManagedIdentitySqlControlSettingsModelPropertiesTests { @@ -15,18 +15,22 @@ public final class ManagedIdentitySqlControlSettingsModelPropertiesTests { public void testDeserialize() throws Exception { ManagedIdentitySqlControlSettingsModelProperties model = BinaryData .fromString( - "{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Disabled\",\"actualState\":\"Enabling\"}}") + "{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Enabled\",\"actualState\":\"Disabled\"}}") .toObject(ManagedIdentitySqlControlSettingsModelProperties.class); - Assertions.assertEquals(DesiredState.DISABLED, model.grantSqlControlToManagedIdentity().desiredState()); + Assertions.assertEquals( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED, + model.grantSqlControlToManagedIdentity().desiredState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedIdentitySqlControlSettingsModelProperties model = new ManagedIdentitySqlControlSettingsModelProperties().withGrantSqlControlToManagedIdentity( - new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.DISABLED)); + new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity().withDesiredState( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED)); model = BinaryData.fromObject(model).toObject(ManagedIdentitySqlControlSettingsModelProperties.class); - Assertions.assertEquals(DesiredState.DISABLED, model.grantSqlControlToManagedIdentity().desiredState()); + Assertions.assertEquals( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED, + model.grantSqlControlToManagedIdentity().desiredState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentityTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentityTests.java index 2b28472a75de..e7012fabc8dd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentityTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentityTests.java @@ -7,39 +7,21 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.synapse.models.ManagedIdentity; import com.azure.resourcemanager.synapse.models.ResourceIdentityType; -import com.azure.resourcemanager.synapse.models.UserAssignedManagedIdentity; -import java.util.HashMap; -import java.util.Map; import org.junit.jupiter.api.Assertions; public final class ManagedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedIdentity model = BinaryData.fromString( - "{\"principalId\":\"c\",\"tenantId\":\"1185b137-d5c9-4519-8090-20a6441b26ca\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"nwm\":{\"clientId\":\"158cc437-d982-4223-95ed-a388559b7ce5\",\"principalId\":\"5cc29763-78c1-4d33-8020-5f4b98cb7e3b\"},\"vpdvjdhttzae\":{\"clientId\":\"c86377e8-2a5b-41f1-81c2-091ffba8b0f8\",\"principalId\":\"57eb69e6-0661-4d89-a11b-663c31dd52fb\"},\"x\":{\"clientId\":\"e57790e6-288b-4554-b5d3-f396bdebf6d4\",\"principalId\":\"20db2897-3bb7-49ec-ab5e-8db5f2432572\"},\"hrphkmcrjdqn\":{\"clientId\":\"c9708997-8dbf-40c5-bb1c-90bc64a43075\",\"principalId\":\"e0f28001-c74e-4a9c-8683-5de7c2a3934f\"}}}") + "{\"principalId\":\"yrneizjcpeo\",\"tenantId\":\"4085e026-7c97-47da-a3cd-da9dd8cf754a\",\"type\":\"None\"}") .toObject(ManagedIdentity.class); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ResourceIdentityType.NONE, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedIdentity model = new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities( - mapOf("nwm", new UserAssignedManagedIdentity(), "vpdvjdhttzae", new UserAssignedManagedIdentity(), "x", - new UserAssignedManagedIdentity(), "hrphkmcrjdqn", new UserAssignedManagedIdentity())); + ManagedIdentity model = new ManagedIdentity().withType(ResourceIdentityType.NONE); model = BinaryData.fromObject(model).toObject(ManagedIdentity.class); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + Assertions.assertEquals(ResourceIdentityType.NONE, model.type()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests.java deleted file mode 100644 index b97566733864..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeManagedVirtualNetworkReference; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIntegrationRuntimeManagedVirtualNetworkReference model - = BinaryData.fromString("{\"referenceName\":\"u\",\"type\":\"njizb\",\"id\":\"woiymrvz\"}") - .toObject(ManagedIntegrationRuntimeManagedVirtualNetworkReference.class); - Assertions.assertEquals("u", model.referenceName()); - Assertions.assertEquals("njizb", model.type()); - Assertions.assertEquals("woiymrvz", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIntegrationRuntimeManagedVirtualNetworkReference model - = new ManagedIntegrationRuntimeManagedVirtualNetworkReference().withReferenceName("u") - .withType("njizb") - .withId("woiymrvz"); - model = BinaryData.fromObject(model).toObject(ManagedIntegrationRuntimeManagedVirtualNetworkReference.class); - Assertions.assertEquals("u", model.referenceName()); - Assertions.assertEquals("njizb", model.type()); - Assertions.assertEquals("woiymrvz", model.id()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedVirtualNetworkSettingsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedVirtualNetworkSettingsTests.java index 05ae34922654..80211c8ca29b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedVirtualNetworkSettingsTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedVirtualNetworkSettingsTests.java @@ -13,21 +13,21 @@ public final class ManagedVirtualNetworkSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedVirtualNetworkSettings model = BinaryData.fromString( - "{\"preventDataExfiltration\":true,\"linkedAccessCheckOnTargetResource\":true,\"allowedAadTenantIdsForLinking\":[\"failcfx\"]}") + "{\"preventDataExfiltration\":true,\"linkedAccessCheckOnTargetResource\":false,\"allowedAadTenantIdsForLinking\":[\"j\",\"qrsxyp\",\"uuuybnchrsziz\"]}") .toObject(ManagedVirtualNetworkSettings.class); Assertions.assertEquals(true, model.preventDataExfiltration()); - Assertions.assertEquals(true, model.linkedAccessCheckOnTargetResource()); - Assertions.assertEquals("failcfx", model.allowedAadTenantIdsForLinking().get(0)); + Assertions.assertEquals(false, model.linkedAccessCheckOnTargetResource()); + Assertions.assertEquals("j", model.allowedAadTenantIdsForLinking().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedVirtualNetworkSettings model = new ManagedVirtualNetworkSettings().withPreventDataExfiltration(true) - .withLinkedAccessCheckOnTargetResource(true) - .withAllowedAadTenantIdsForLinking(Arrays.asList("failcfx")); + .withLinkedAccessCheckOnTargetResource(false) + .withAllowedAadTenantIdsForLinking(Arrays.asList("j", "qrsxyp", "uuuybnchrsziz")); model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkSettings.class); Assertions.assertEquals(true, model.preventDataExfiltration()); - Assertions.assertEquals(true, model.linkedAccessCheckOnTargetResource()); - Assertions.assertEquals("failcfx", model.allowedAadTenantIdsForLinking().get(0)); + Assertions.assertEquals(false, model.linkedAccessCheckOnTargetResource()); + Assertions.assertEquals("j", model.allowedAadTenantIdsForLinking().get(0)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigInnerTests.java index 16764ffefba4..0b551ad09df3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigInnerTests.java @@ -12,18 +12,18 @@ public final class MetadataSyncConfigInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MetadataSyncConfigInner model = BinaryData.fromString( - "{\"properties\":{\"enabled\":false,\"syncIntervalInMinutes\":1315398087},\"id\":\"ycduier\",\"name\":\"gccymvaolpssl\",\"type\":\"lfmmdnbbglzpswi\"}") + "{\"properties\":{\"enabled\":true,\"syncIntervalInMinutes\":635360833},\"id\":\"o\",\"name\":\"buffkmrqemvvhm\",\"type\":\"tdrjfutacoebj\"}") .toObject(MetadataSyncConfigInner.class); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals(1315398087, model.syncIntervalInMinutes()); + Assertions.assertEquals(true, model.enabled()); + Assertions.assertEquals(635360833, model.syncIntervalInMinutes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MetadataSyncConfigInner model - = new MetadataSyncConfigInner().withEnabled(false).withSyncIntervalInMinutes(1315398087); + = new MetadataSyncConfigInner().withEnabled(true).withSyncIntervalInMinutes(635360833); model = BinaryData.fromObject(model).toObject(MetadataSyncConfigInner.class); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals(1315398087, model.syncIntervalInMinutes()); + Assertions.assertEquals(true, model.enabled()); + Assertions.assertEquals(635360833, model.syncIntervalInMinutes()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigPropertiesTests.java index c75c70bc8f6d..e346dc9a19ed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigPropertiesTests.java @@ -12,18 +12,18 @@ public final class MetadataSyncConfigPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MetadataSyncConfigProperties model - = BinaryData.fromString("{\"enabled\":true,\"syncIntervalInMinutes\":1596263349}") + = BinaryData.fromString("{\"enabled\":true,\"syncIntervalInMinutes\":445879070}") .toObject(MetadataSyncConfigProperties.class); Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(1596263349, model.syncIntervalInMinutes()); + Assertions.assertEquals(445879070, model.syncIntervalInMinutes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MetadataSyncConfigProperties model - = new MetadataSyncConfigProperties().withEnabled(true).withSyncIntervalInMinutes(1596263349); + = new MetadataSyncConfigProperties().withEnabled(true).withSyncIntervalInMinutes(445879070); model = BinaryData.fromObject(model).toObject(MetadataSyncConfigProperties.class); Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(1596263349, model.syncIntervalInMinutes()); + Assertions.assertEquals(445879070, model.syncIntervalInMinutes()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationDisplayTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationDisplayTests.java deleted file mode 100644 index b302558ab913..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationDisplayTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData - .fromString( - "{\"provider\":\"lsbs\",\"operation\":\"qqagwwr\",\"resource\":\"omzisglrrcz\",\"description\":\"k\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("lsbs", model.provider()); - Assertions.assertEquals("qqagwwr", model.operation()); - Assertions.assertEquals("omzisglrrcz", model.resource()); - Assertions.assertEquals("k", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay().withProvider("lsbs") - .withOperation("qqagwwr") - .withResource("omzisglrrcz") - .withDescription("k"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("lsbs", model.provider()); - Assertions.assertEquals("qqagwwr", model.operation()); - Assertions.assertEquals("omzisglrrcz", model.resource()); - Assertions.assertEquals("k", model.description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationInnerTests.java deleted file mode 100644 index cc40d02995a7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationInnerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import com.azure.resourcemanager.synapse.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"nbkkjanurnnq\",\"display\":{\"provider\":\"bpizxqltgr\",\"operation\":\"gypxrxvbfihwuhvc\",\"resource\":\"fsrb\",\"description\":\"blml\"},\"origin\":\"wxihs\",\"properties\":\"dataxwqagnepzw\"}") - .toObject(OperationInner.class); - Assertions.assertEquals("nbkkjanurnnq", model.name()); - Assertions.assertEquals("bpizxqltgr", model.display().provider()); - Assertions.assertEquals("gypxrxvbfihwuhvc", model.display().operation()); - Assertions.assertEquals("fsrb", model.display().resource()); - Assertions.assertEquals("blml", model.display().description()); - Assertions.assertEquals("wxihs", model.origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withName("nbkkjanurnnq") - .withDisplay(new OperationDisplay().withProvider("bpizxqltgr") - .withOperation("gypxrxvbfihwuhvc") - .withResource("fsrb") - .withDescription("blml")) - .withOrigin("wxihs") - .withProperties("dataxwqagnepzw"); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("nbkkjanurnnq", model.name()); - Assertions.assertEquals("bpizxqltgr", model.display().provider()); - Assertions.assertEquals("gypxrxvbfihwuhvc", model.display().operation()); - Assertions.assertEquals("fsrb", model.display().resource()); - Assertions.assertEquals("blml", model.display().description()); - Assertions.assertEquals("wxihs", model.origin()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationListResultTests.java deleted file mode 100644 index 8a0b349ecd46..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationListResultTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import com.azure.resourcemanager.synapse.models.OperationDisplay; -import com.azure.resourcemanager.synapse.models.OperationListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"wmkoisq\",\"display\":{\"provider\":\"f\",\"operation\":\"uifmc\",\"resource\":\"p\",\"description\":\"kdqzrdzsylo\"},\"origin\":\"gtrczzydmxzjijpv\",\"properties\":\"dataurkihci\"}],\"nextLink\":\"defxrdc\"}") - .toObject(OperationListResult.class); - Assertions.assertEquals("wmkoisq", model.value().get(0).name()); - Assertions.assertEquals("f", model.value().get(0).display().provider()); - Assertions.assertEquals("uifmc", model.value().get(0).display().operation()); - Assertions.assertEquals("p", model.value().get(0).display().resource()); - Assertions.assertEquals("kdqzrdzsylo", model.value().get(0).display().description()); - Assertions.assertEquals("gtrczzydmxzjijpv", model.value().get(0).origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model - = new OperationListResult().withValue(Arrays.asList(new OperationInner().withName("wmkoisq") - .withDisplay(new OperationDisplay().withProvider("f") - .withOperation("uifmc") - .withResource("p") - .withDescription("kdqzrdzsylo")) - .withOrigin("gtrczzydmxzjijpv") - .withProperties("dataurkihci"))); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - Assertions.assertEquals("wmkoisq", model.value().get(0).name()); - Assertions.assertEquals("f", model.value().get(0).display().provider()); - Assertions.assertEquals("uifmc", model.value().get(0).display().operation()); - Assertions.assertEquals("p", model.value().get(0).display().resource()); - Assertions.assertEquals("kdqzrdzsylo", model.value().get(0).display().description()); - Assertions.assertEquals("gtrczzydmxzjijpv", model.value().get(0).origin()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaLogSpecificationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaLogSpecificationTests.java index 5af3f4252507..468a7bcd1817 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaLogSpecificationTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaLogSpecificationTests.java @@ -12,21 +12,21 @@ public final class OperationMetaLogSpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationMetaLogSpecification model = BinaryData - .fromString("{\"displayName\":\"asxazjpqyegualhb\",\"blobDuration\":\"hejjz\",\"name\":\"dudgwdslfhot\"}") + .fromString("{\"displayName\":\"jhhyxxrwlycoduhp\",\"blobDuration\":\"kgymareqnajxqug\",\"name\":\"ky\"}") .toObject(OperationMetaLogSpecification.class); - Assertions.assertEquals("asxazjpqyegualhb", model.displayName()); - Assertions.assertEquals("hejjz", model.blobDuration()); - Assertions.assertEquals("dudgwdslfhot", model.name()); + Assertions.assertEquals("jhhyxxrwlycoduhp", model.displayName()); + Assertions.assertEquals("kgymareqnajxqug", model.blobDuration()); + Assertions.assertEquals("ky", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OperationMetaLogSpecification model = new OperationMetaLogSpecification().withDisplayName("asxazjpqyegualhb") - .withBlobDuration("hejjz") - .withName("dudgwdslfhot"); + OperationMetaLogSpecification model = new OperationMetaLogSpecification().withDisplayName("jhhyxxrwlycoduhp") + .withBlobDuration("kgymareqnajxqug") + .withName("ky"); model = BinaryData.fromObject(model).toObject(OperationMetaLogSpecification.class); - Assertions.assertEquals("asxazjpqyegualhb", model.displayName()); - Assertions.assertEquals("hejjz", model.blobDuration()); - Assertions.assertEquals("dudgwdslfhot", model.name()); + Assertions.assertEquals("jhhyxxrwlycoduhp", model.displayName()); + Assertions.assertEquals("kgymareqnajxqug", model.blobDuration()); + Assertions.assertEquals("ky", model.name()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricDimensionSpecificationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricDimensionSpecificationTests.java index 1cd888fceb6c..796de28fd6bb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricDimensionSpecificationTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricDimensionSpecificationTests.java @@ -11,23 +11,23 @@ public final class OperationMetaMetricDimensionSpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - OperationMetaMetricDimensionSpecification model - = BinaryData.fromString("{\"displayName\":\"nj\",\"name\":\"lwtgrhpdj\",\"toBeExportedForShoebox\":true}") - .toObject(OperationMetaMetricDimensionSpecification.class); - Assertions.assertEquals("nj", model.displayName()); - Assertions.assertEquals("lwtgrhpdj", model.name()); - Assertions.assertEquals(true, model.toBeExportedForShoebox()); + OperationMetaMetricDimensionSpecification model = BinaryData + .fromString("{\"displayName\":\"llrxcyjmoad\",\"name\":\"varmywdmj\",\"toBeExportedForShoebox\":false}") + .toObject(OperationMetaMetricDimensionSpecification.class); + Assertions.assertEquals("llrxcyjmoad", model.displayName()); + Assertions.assertEquals("varmywdmj", model.name()); + Assertions.assertEquals(false, model.toBeExportedForShoebox()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { OperationMetaMetricDimensionSpecification model - = new OperationMetaMetricDimensionSpecification().withDisplayName("nj") - .withName("lwtgrhpdj") - .withToBeExportedForShoebox(true); + = new OperationMetaMetricDimensionSpecification().withDisplayName("llrxcyjmoad") + .withName("varmywdmj") + .withToBeExportedForShoebox(false); model = BinaryData.fromObject(model).toObject(OperationMetaMetricDimensionSpecification.class); - Assertions.assertEquals("nj", model.displayName()); - Assertions.assertEquals("lwtgrhpdj", model.name()); - Assertions.assertEquals(true, model.toBeExportedForShoebox()); + Assertions.assertEquals("llrxcyjmoad", model.displayName()); + Assertions.assertEquals("varmywdmj", model.name()); + Assertions.assertEquals(false, model.toBeExportedForShoebox()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricSpecificationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricSpecificationTests.java index e33b1cda0709..b982082a9d51 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricSpecificationTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricSpecificationTests.java @@ -14,61 +14,62 @@ public final class OperationMetaMetricSpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationMetaMetricSpecification model = BinaryData.fromString( - "{\"sourceMdmNamespace\":\"u\",\"displayName\":\"wgqyw\",\"name\":\"drvyn\",\"aggregationType\":\"gpphrcgyn\",\"displayDescription\":\"cpecfvmmcoofs\",\"sourceMdmAccount\":\"zevgb\",\"enableRegionalMdmAccount\":true,\"unit\":\"abcypmivk\",\"dimensions\":[{\"displayName\":\"vccfw\",\"name\":\"nbacfi\",\"toBeExportedForShoebox\":false},{\"displayName\":\"bxetqgtzxdpn\",\"name\":\"qqwx\",\"toBeExportedForShoebox\":true},{\"displayName\":\"al\",\"name\":\"wsubisnja\",\"toBeExportedForShoebox\":true},{\"displayName\":\"gnzscxaqwo\",\"name\":\"hcbonqvpkvlr\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"eipheoflokeyy\"}") + "{\"sourceMdmNamespace\":\"epxgyqagvr\",\"displayName\":\"npkukghimdblx\",\"name\":\"imfnjhfjx\",\"aggregationType\":\"szkkfoqre\",\"displayDescription\":\"kzikfjawneaivxwc\",\"sourceMdmAccount\":\"lpcirelsf\",\"enableRegionalMdmAccount\":true,\"unit\":\"wabfatkl\",\"dimensions\":[{\"displayName\":\"jhwuaanozjos\",\"name\":\"youlp\",\"toBeExportedForShoebox\":false},{\"displayName\":\"ag\",\"name\":\"vimjwos\",\"toBeExportedForShoebox\":false},{\"displayName\":\"tcs\",\"name\":\"cktqumiekkezzi\",\"toBeExportedForShoebox\":false},{\"displayName\":\"fjhdg\",\"name\":\"gebdunygaeq\",\"toBeExportedForShoebox\":true}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"t\"}") .toObject(OperationMetaMetricSpecification.class); - Assertions.assertEquals("u", model.sourceMdmNamespace()); - Assertions.assertEquals("wgqyw", model.displayName()); - Assertions.assertEquals("drvyn", model.name()); - Assertions.assertEquals("gpphrcgyn", model.aggregationType()); - Assertions.assertEquals("cpecfvmmcoofs", model.displayDescription()); - Assertions.assertEquals("zevgb", model.sourceMdmAccount()); + Assertions.assertEquals("epxgyqagvr", model.sourceMdmNamespace()); + Assertions.assertEquals("npkukghimdblx", model.displayName()); + Assertions.assertEquals("imfnjhfjx", model.name()); + Assertions.assertEquals("szkkfoqre", model.aggregationType()); + Assertions.assertEquals("kzikfjawneaivxwc", model.displayDescription()); + Assertions.assertEquals("lpcirelsf", model.sourceMdmAccount()); Assertions.assertEquals(true, model.enableRegionalMdmAccount()); - Assertions.assertEquals("abcypmivk", model.unit()); - Assertions.assertEquals("vccfw", model.dimensions().get(0).displayName()); - Assertions.assertEquals("nbacfi", model.dimensions().get(0).name()); + Assertions.assertEquals("wabfatkl", model.unit()); + Assertions.assertEquals("jhwuaanozjos", model.dimensions().get(0).displayName()); + Assertions.assertEquals("youlp", model.dimensions().get(0).name()); Assertions.assertEquals(false, model.dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals(false, model.supportsInstanceLevelAggregation()); - Assertions.assertEquals("eipheoflokeyy", model.metricFilterPattern()); + Assertions.assertEquals(true, model.supportsInstanceLevelAggregation()); + Assertions.assertEquals("t", model.metricFilterPattern()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OperationMetaMetricSpecification model = new OperationMetaMetricSpecification().withSourceMdmNamespace("u") - .withDisplayName("wgqyw") - .withName("drvyn") - .withAggregationType("gpphrcgyn") - .withDisplayDescription("cpecfvmmcoofs") - .withSourceMdmAccount("zevgb") - .withEnableRegionalMdmAccount(true) - .withUnit("abcypmivk") - .withDimensions(Arrays.asList( - new OperationMetaMetricDimensionSpecification().withDisplayName("vccfw") - .withName("nbacfi") - .withToBeExportedForShoebox(false), - new OperationMetaMetricDimensionSpecification().withDisplayName("bxetqgtzxdpn") - .withName("qqwx") - .withToBeExportedForShoebox(true), - new OperationMetaMetricDimensionSpecification().withDisplayName("al") - .withName("wsubisnja") - .withToBeExportedForShoebox(true), - new OperationMetaMetricDimensionSpecification().withDisplayName("gnzscxaqwo") - .withName("hcbonqvpkvlr") - .withToBeExportedForShoebox(false))) - .withSupportsInstanceLevelAggregation(false) - .withMetricFilterPattern("eipheoflokeyy"); + OperationMetaMetricSpecification model + = new OperationMetaMetricSpecification().withSourceMdmNamespace("epxgyqagvr") + .withDisplayName("npkukghimdblx") + .withName("imfnjhfjx") + .withAggregationType("szkkfoqre") + .withDisplayDescription("kzikfjawneaivxwc") + .withSourceMdmAccount("lpcirelsf") + .withEnableRegionalMdmAccount(true) + .withUnit("wabfatkl") + .withDimensions(Arrays.asList( + new OperationMetaMetricDimensionSpecification().withDisplayName("jhwuaanozjos") + .withName("youlp") + .withToBeExportedForShoebox(false), + new OperationMetaMetricDimensionSpecification().withDisplayName("ag") + .withName("vimjwos") + .withToBeExportedForShoebox(false), + new OperationMetaMetricDimensionSpecification().withDisplayName("tcs") + .withName("cktqumiekkezzi") + .withToBeExportedForShoebox(false), + new OperationMetaMetricDimensionSpecification().withDisplayName("fjhdg") + .withName("gebdunygaeq") + .withToBeExportedForShoebox(true))) + .withSupportsInstanceLevelAggregation(true) + .withMetricFilterPattern("t"); model = BinaryData.fromObject(model).toObject(OperationMetaMetricSpecification.class); - Assertions.assertEquals("u", model.sourceMdmNamespace()); - Assertions.assertEquals("wgqyw", model.displayName()); - Assertions.assertEquals("drvyn", model.name()); - Assertions.assertEquals("gpphrcgyn", model.aggregationType()); - Assertions.assertEquals("cpecfvmmcoofs", model.displayDescription()); - Assertions.assertEquals("zevgb", model.sourceMdmAccount()); + Assertions.assertEquals("epxgyqagvr", model.sourceMdmNamespace()); + Assertions.assertEquals("npkukghimdblx", model.displayName()); + Assertions.assertEquals("imfnjhfjx", model.name()); + Assertions.assertEquals("szkkfoqre", model.aggregationType()); + Assertions.assertEquals("kzikfjawneaivxwc", model.displayDescription()); + Assertions.assertEquals("lpcirelsf", model.sourceMdmAccount()); Assertions.assertEquals(true, model.enableRegionalMdmAccount()); - Assertions.assertEquals("abcypmivk", model.unit()); - Assertions.assertEquals("vccfw", model.dimensions().get(0).displayName()); - Assertions.assertEquals("nbacfi", model.dimensions().get(0).name()); + Assertions.assertEquals("wabfatkl", model.unit()); + Assertions.assertEquals("jhwuaanozjos", model.dimensions().get(0).displayName()); + Assertions.assertEquals("youlp", model.dimensions().get(0).name()); Assertions.assertEquals(false, model.dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals(false, model.supportsInstanceLevelAggregation()); - Assertions.assertEquals("eipheoflokeyy", model.metricFilterPattern()); + Assertions.assertEquals(true, model.supportsInstanceLevelAggregation()); + Assertions.assertEquals("t", model.metricFilterPattern()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaPropertyInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaPropertyInfoTests.java index aeabd897fd9e..4632246284a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaPropertyInfoTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaPropertyInfoTests.java @@ -17,33 +17,32 @@ public final class OperationMetaPropertyInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationMetaPropertyInfo model = BinaryData.fromString( - "{\"serviceSpecification\":{\"metricSpecifications\":[{\"sourceMdmNamespace\":\"giawx\",\"displayName\":\"ryplwckbasyypn\",\"name\":\"hsgcbacphejkot\",\"aggregationType\":\"qgoulznd\",\"displayDescription\":\"kwy\",\"sourceMdmAccount\":\"gfgibm\",\"enableRegionalMdmAccount\":false,\"unit\":\"keqsrxybzqqedq\",\"dimensions\":[{\"displayName\":\"iqfouflmmnkz\",\"name\":\"odmgl\",\"toBeExportedForShoebox\":true},{\"displayName\":\"b\",\"name\":\"tmut\",\"toBeExportedForShoebox\":true},{\"displayName\":\"ta\",\"name\":\"pwgcuertu\",\"toBeExportedForShoebox\":true}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"qw\"},{\"sourceMdmNamespace\":\"mdgbbjfdd\",\"displayName\":\"bmbexppbhtqqro\",\"name\":\"p\",\"aggregationType\":\"s\",\"displayDescription\":\"gbquxigj\",\"sourceMdmAccount\":\"gzjaoyfhrtxilne\",\"enableRegionalMdmAccount\":false,\"unit\":\"ysvlejuvf\",\"dimensions\":[{\"displayName\":\"lyxwjkcprbnwbx\",\"name\":\"vtb\",\"toBeExportedForShoebox\":true},{\"displayName\":\"szdnr\",\"name\":\"qguhmuo\",\"toBeExportedForShoebox\":false},{\"displayName\":\"rwzwbng\",\"name\":\"tnwu\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"ufizuckyf\"}],\"logSpecifications\":[{\"displayName\":\"idf\",\"blobDuration\":\"wdzuhtymwisd\",\"name\":\"thwxmnteiwaopvkm\"},{\"displayName\":\"c\",\"blobDuration\":\"xdcu\",\"name\":\"fsrpymzidnse\"},{\"displayName\":\"xtbzsgfyccsne\",\"blobDuration\":\"dwzjeiach\",\"name\":\"osfln\"}]}}") + "{\"serviceSpecification\":{\"metricSpecifications\":[{\"sourceMdmNamespace\":\"q\",\"displayName\":\"wpmqt\",\"name\":\"uoujmkcjhwqy\",\"aggregationType\":\"r\",\"displayDescription\":\"n\",\"sourceMdmAccount\":\"ewgdrjervn\",\"enableRegionalMdmAccount\":false,\"unit\":\"pehindoygm\",\"dimensions\":[{\"displayName\":\"nzdndslgna\",\"name\":\"igynduhavhqlk\",\"toBeExportedForShoebox\":false},{\"displayName\":\"aqolbgycduiertg\",\"name\":\"y\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"ssl\"},{\"sourceMdmNamespace\":\"fmmdnbbg\",\"displayName\":\"pswiydmcwyh\",\"name\":\"xssadbzmnvdf\",\"aggregationType\":\"ud\",\"displayDescription\":\"dvxzbncblylpst\",\"sourceMdmAccount\":\"hh\",\"enableRegionalMdmAccount\":true,\"unit\":\"dzu\",\"dimensions\":[{\"displayName\":\"cdntnevfiwjmy\",\"name\":\"dsslswt\",\"toBeExportedForShoebox\":true}],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"fzp\"},{\"sourceMdmNamespace\":\"semwabnet\",\"displayName\":\"hszhedplvwiwu\",\"name\":\"wmbesldnkw\",\"aggregationType\":\"pp\",\"displayDescription\":\"lcxog\",\"sourceMdmAccount\":\"konzmnsik\",\"enableRegionalMdmAccount\":false,\"unit\":\"ze\",\"dimensions\":[{\"displayName\":\"l\",\"name\":\"zxmhhvhgu\",\"toBeExportedForShoebox\":false},{\"displayName\":\"kwobdagxtibq\",\"name\":\"bxwakbog\",\"toBeExportedForShoebox\":true},{\"displayName\":\"lkzgxhuriplbp\",\"name\":\"xunkbebxmubyynt\",\"toBeExportedForShoebox\":false},{\"displayName\":\"qtkoievs\",\"name\":\"tgqr\",\"toBeExportedForShoebox\":true}],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"lauwzizxbmpgcjef\"},{\"sourceMdmNamespace\":\"muvp\",\"displayName\":\"tdum\",\"name\":\"p\",\"aggregationType\":\"ebmnzbtbhjpglk\",\"displayDescription\":\"ohdneuel\",\"sourceMdmAccount\":\"hsd\",\"enableRegionalMdmAccount\":false,\"unit\":\"zfikd\",\"dimensions\":[{\"displayName\":\"uuvxz\",\"name\":\"lvithhqzonosgg\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"wdsjnkalju\"}],\"logSpecifications\":[{\"displayName\":\"wacf\",\"blobDuration\":\"dkzzewkfvhqcrail\",\"name\":\"n\"},{\"displayName\":\"fuflrwdmhdlx\",\"blobDuration\":\"rxsagafcnihgwqa\",\"name\":\"edgfbcvkcvq\"}]}}") .toObject(OperationMetaPropertyInfo.class); - Assertions.assertEquals("giawx", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("ryplwckbasyypn", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("hsgcbacphejkot", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("qgoulznd", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("kwy", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("gfgibm", + Assertions.assertEquals("q", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); + Assertions.assertEquals("wpmqt", model.serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("uoujmkcjhwqy", model.serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("r", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("n", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); + Assertions.assertEquals("ewgdrjervn", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("keqsrxybzqqedq", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("iqfouflmmnkz", + Assertions.assertEquals("pehindoygm", model.serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("nzdndslgna", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("odmgl", + Assertions.assertEquals("igynduhavhqlk", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals(true, + Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals(true, + Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions.assertEquals("qw", model.serviceSpecification().metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("idf", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("wdzuhtymwisd", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("thwxmnteiwaopvkm", model.serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("ssl", + model.serviceSpecification().metricSpecifications().get(0).metricFilterPattern()); + Assertions.assertEquals("wacf", model.serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("dkzzewkfvhqcrail", + model.serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("n", model.serviceSpecification().logSpecifications().get(0).name()); } @org.junit.jupiter.api.Test @@ -51,81 +50,105 @@ public void testSerialize() throws Exception { OperationMetaPropertyInfo model = new OperationMetaPropertyInfo().withServiceSpecification(new OperationMetaServiceSpecification() .withMetricSpecifications(Arrays.asList( - new OperationMetaMetricSpecification().withSourceMdmNamespace("giawx") - .withDisplayName("ryplwckbasyypn") - .withName("hsgcbacphejkot") - .withAggregationType("qgoulznd") - .withDisplayDescription("kwy") - .withSourceMdmAccount("gfgibm") + new OperationMetaMetricSpecification().withSourceMdmNamespace("q") + .withDisplayName("wpmqt") + .withName("uoujmkcjhwqy") + .withAggregationType("r") + .withDisplayDescription("n") + .withSourceMdmAccount("ewgdrjervn") .withEnableRegionalMdmAccount(false) - .withUnit("keqsrxybzqqedq") + .withUnit("pehindoygm") .withDimensions(Arrays.asList( - new OperationMetaMetricDimensionSpecification().withDisplayName("iqfouflmmnkz") - .withName("odmgl") - .withToBeExportedForShoebox(true), - new OperationMetaMetricDimensionSpecification().withDisplayName("b") - .withName("tmut") - .withToBeExportedForShoebox(true), - new OperationMetaMetricDimensionSpecification().withDisplayName("ta") - .withName("pwgcuertu") + new OperationMetaMetricDimensionSpecification().withDisplayName("nzdndslgna") + .withName("igynduhavhqlk") + .withToBeExportedForShoebox(false), + new OperationMetaMetricDimensionSpecification().withDisplayName("aqolbgycduiertg") + .withName("y") + .withToBeExportedForShoebox(false))) + .withSupportsInstanceLevelAggregation(false) + .withMetricFilterPattern("ssl"), + new OperationMetaMetricSpecification().withSourceMdmNamespace("fmmdnbbg") + .withDisplayName("pswiydmcwyh") + .withName("xssadbzmnvdf") + .withAggregationType("ud") + .withDisplayDescription("dvxzbncblylpst") + .withSourceMdmAccount("hh") + .withEnableRegionalMdmAccount(true) + .withUnit("dzu") + .withDimensions(Arrays + .asList(new OperationMetaMetricDimensionSpecification().withDisplayName("cdntnevfiwjmy") + .withName("dsslswt") .withToBeExportedForShoebox(true))) - .withSupportsInstanceLevelAggregation(true) - .withMetricFilterPattern("qw"), - new OperationMetaMetricSpecification().withSourceMdmNamespace("mdgbbjfdd") - .withDisplayName("bmbexppbhtqqro") - .withName("p") - .withAggregationType("s") - .withDisplayDescription("gbquxigj") - .withSourceMdmAccount("gzjaoyfhrtxilne") + .withSupportsInstanceLevelAggregation(false) + .withMetricFilterPattern("fzp"), + new OperationMetaMetricSpecification().withSourceMdmNamespace("semwabnet") + .withDisplayName("hszhedplvwiwu") + .withName("wmbesldnkw") + .withAggregationType("pp") + .withDisplayDescription("lcxog") + .withSourceMdmAccount("konzmnsik") .withEnableRegionalMdmAccount(false) - .withUnit("ysvlejuvf") + .withUnit("ze") .withDimensions(Arrays.asList( - new OperationMetaMetricDimensionSpecification().withDisplayName("lyxwjkcprbnwbx") - .withName("vtb") + new OperationMetaMetricDimensionSpecification().withDisplayName("l") + .withName("zxmhhvhgu") + .withToBeExportedForShoebox(false), + new OperationMetaMetricDimensionSpecification().withDisplayName("kwobdagxtibq") + .withName("bxwakbog") .withToBeExportedForShoebox(true), - new OperationMetaMetricDimensionSpecification().withDisplayName("szdnr") - .withName("qguhmuo") + new OperationMetaMetricDimensionSpecification().withDisplayName("lkzgxhuriplbp") + .withName("xunkbebxmubyynt") .withToBeExportedForShoebox(false), - new OperationMetaMetricDimensionSpecification().withDisplayName("rwzwbng") - .withName("tnwu") - .withToBeExportedForShoebox(false))) + new OperationMetaMetricDimensionSpecification().withDisplayName("qtkoievs") + .withName("tgqr") + .withToBeExportedForShoebox(true))) .withSupportsInstanceLevelAggregation(false) - .withMetricFilterPattern("ufizuckyf"))) + .withMetricFilterPattern("lauwzizxbmpgcjef"), + new OperationMetaMetricSpecification().withSourceMdmNamespace("muvp") + .withDisplayName("tdum") + .withName("p") + .withAggregationType("ebmnzbtbhjpglk") + .withDisplayDescription("ohdneuel") + .withSourceMdmAccount("hsd") + .withEnableRegionalMdmAccount(false) + .withUnit("zfikd") + .withDimensions( + Arrays.asList(new OperationMetaMetricDimensionSpecification().withDisplayName("uuvxz") + .withName("lvithhqzonosgg") + .withToBeExportedForShoebox(false))) + .withSupportsInstanceLevelAggregation(true) + .withMetricFilterPattern("wdsjnkalju"))) .withLogSpecifications(Arrays.asList( - new OperationMetaLogSpecification().withDisplayName("idf") - .withBlobDuration("wdzuhtymwisd") - .withName("thwxmnteiwaopvkm"), - new OperationMetaLogSpecification().withDisplayName("c") - .withBlobDuration("xdcu") - .withName("fsrpymzidnse"), - new OperationMetaLogSpecification().withDisplayName("xtbzsgfyccsne") - .withBlobDuration("dwzjeiach") - .withName("osfln")))); + new OperationMetaLogSpecification().withDisplayName("wacf") + .withBlobDuration("dkzzewkfvhqcrail") + .withName("n"), + new OperationMetaLogSpecification().withDisplayName("fuflrwdmhdlx") + .withBlobDuration("rxsagafcnihgwqa") + .withName("edgfbcvkcvq")))); model = BinaryData.fromObject(model).toObject(OperationMetaPropertyInfo.class); - Assertions.assertEquals("giawx", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("ryplwckbasyypn", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("hsgcbacphejkot", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("qgoulznd", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("kwy", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("gfgibm", + Assertions.assertEquals("q", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); + Assertions.assertEquals("wpmqt", model.serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("uoujmkcjhwqy", model.serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("r", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("n", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); + Assertions.assertEquals("ewgdrjervn", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("keqsrxybzqqedq", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("iqfouflmmnkz", + Assertions.assertEquals("pehindoygm", model.serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("nzdndslgna", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("odmgl", + Assertions.assertEquals("igynduhavhqlk", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals(true, + Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals(true, + Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions.assertEquals("qw", model.serviceSpecification().metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("idf", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("wdzuhtymwisd", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("thwxmnteiwaopvkm", model.serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("ssl", + model.serviceSpecification().metricSpecifications().get(0).metricFilterPattern()); + Assertions.assertEquals("wacf", model.serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("dkzzewkfvhqcrail", + model.serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("n", model.serviceSpecification().logSpecifications().get(0).name()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaServiceSpecificationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaServiceSpecificationTests.java index aa7a3d0dfe6f..bd2e2890de13 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaServiceSpecificationTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaServiceSpecificationTests.java @@ -16,115 +16,134 @@ public final class OperationMetaServiceSpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationMetaServiceSpecification model = BinaryData.fromString( - "{\"metricSpecifications\":[{\"sourceMdmNamespace\":\"qpteeh\",\"displayName\":\"vypyqrimzinpv\",\"name\":\"jdkirsoodqx\",\"aggregationType\":\"rmnohj\",\"displayDescription\":\"kwh\",\"sourceMdmAccount\":\"oifiyipjxsqwpgr\",\"enableRegionalMdmAccount\":false,\"unit\":\"orcjxvsnby\",\"dimensions\":[{\"displayName\":\"nmoc\",\"name\":\"ysh\",\"toBeExportedForShoebox\":false},{\"displayName\":\"fblj\",\"name\":\"pbtoqcjmkl\",\"toBeExportedForShoebox\":false},{\"displayName\":\"qidtqajzyu\",\"name\":\"kudjkrlkhb\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"zgqexz\"},{\"sourceMdmNamespace\":\"c\",\"displayName\":\"c\",\"name\":\"ierhhbcsglummaj\",\"aggregationType\":\"aodxo\",\"displayDescription\":\"bdxkqpxokaj\",\"sourceMdmAccount\":\"npime\",\"enableRegionalMdmAccount\":false,\"unit\":\"xgcp\",\"dimensions\":[{\"displayName\":\"aajrm\",\"name\":\"jwzrl\",\"toBeExportedForShoebox\":false},{\"displayName\":\"lwhijcoejctbzaq\",\"name\":\"sycbkbfk\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"xxppofm\"},{\"sourceMdmNamespace\":\"x\",\"displayName\":\"jpgd\",\"name\":\"ocjjxhvpmouexh\",\"aggregationType\":\"xibqeojnx\",\"displayDescription\":\"zvddntwndeicbtwn\",\"sourceMdmAccount\":\"aoqvuh\",\"enableRegionalMdmAccount\":true,\"unit\":\"fcyddg\",\"dimensions\":[{\"displayName\":\"hjq\",\"name\":\"pyeicxm\",\"toBeExportedForShoebox\":false},{\"displayName\":\"q\",\"name\":\"khixuigdtopbo\",\"toBeExportedForShoebox\":false},{\"displayName\":\"hm\",\"name\":\"u\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"z\"}],\"logSpecifications\":[{\"displayName\":\"t\",\"blobDuration\":\"vdfgiotk\",\"name\":\"utqxlngx\"},{\"displayName\":\"fgugnxkrxdqmid\",\"blobDuration\":\"hzrvqd\",\"name\":\"bhj\"},{\"displayName\":\"igeho\",\"blobDuration\":\"bowsk\",\"name\":\"yktz\"}]}") + "{\"metricSpecifications\":[{\"sourceMdmNamespace\":\"qdcvdrhvoo\",\"displayName\":\"otbobzdopcj\",\"name\":\"nhdldwmgxcx\",\"aggregationType\":\"lpmutwuoegrpkhj\",\"displayDescription\":\"iyq\",\"sourceMdmAccount\":\"uicpd\",\"enableRegionalMdmAccount\":true,\"unit\":\"zl\",\"dimensions\":[{\"displayName\":\"paxmodfvuefywsb\",\"name\":\"vmwy\",\"toBeExportedForShoebox\":false},{\"displayName\":\"uyfta\",\"name\":\"cpwi\",\"toBeExportedForShoebox\":false},{\"displayName\":\"tmnubexkpzksmon\",\"name\":\"mquxvypo\",\"toBeExportedForShoebox\":true}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"whojvp\"},{\"sourceMdmNamespace\":\"qgxy\",\"displayName\":\"ocmbqfqvmkcxoza\",\"name\":\"helxprglya\",\"aggregationType\":\"dckcbc\",\"displayDescription\":\"jrjxgciqibrhosx\",\"sourceMdmAccount\":\"qrhzoymibmrqyib\",\"enableRegionalMdmAccount\":false,\"unit\":\"luszdtmhrkwof\",\"dimensions\":[{\"displayName\":\"qacpiex\",\"name\":\"tg\",\"toBeExportedForShoebox\":true},{\"displayName\":\"oenwashr\",\"name\":\"tkcnqxwb\",\"toBeExportedForShoebox\":true},{\"displayName\":\"lpiujwaa\",\"name\":\"pqiiobyuqe\",\"toBeExportedForShoebox\":true}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"wcciuqgbdbu\"},{\"sourceMdmNamespace\":\"uvfbtkuwh\",\"displayName\":\"hykojoxafnndlpic\",\"name\":\"o\",\"aggregationType\":\"kcdyhbpk\",\"displayDescription\":\"wdreqnovvqfovl\",\"sourceMdmAccount\":\"ywsuwsy\",\"enableRegionalMdmAccount\":true,\"unit\":\"sytgadgvraea\",\"dimensions\":[{\"displayName\":\"nzar\",\"name\":\"lquuijfqkacewii\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"ibwwiftohqkv\"},{\"sourceMdmNamespace\":\"vksgplsaknynfsy\",\"displayName\":\"jphuopxodlqi\",\"name\":\"torzih\",\"aggregationType\":\"osjswsr\",\"displayDescription\":\"lyzrpzbchckqqzqi\",\"sourceMdmAccount\":\"iysui\",\"enableRegionalMdmAccount\":true,\"unit\":\"ked\",\"dimensions\":[{\"displayName\":\"wyhqmibzyhwits\",\"name\":\"pyy\",\"toBeExportedForShoebox\":false},{\"displayName\":\"pumnz\",\"name\":\"wznm\",\"toBeExportedForShoebox\":true},{\"displayName\":\"nsorgjhxbldt\",\"name\":\"wrlkdmtn\",\"toBeExportedForShoebox\":false}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"llxdyhgs\"}],\"logSpecifications\":[{\"displayName\":\"gjltdtbnnhado\",\"blobDuration\":\"rkvcikhnvpa\",\"name\":\"gxqquezik\"},{\"displayName\":\"ggxkallatmelwuip\",\"blobDuration\":\"cjzkzivgvvcna\",\"name\":\"hyrnxxmu\"},{\"displayName\":\"dndrdvstkwqqtche\",\"blobDuration\":\"mfmtdaaygdvw\",\"name\":\"piohgwxrtfu\"}]}") .toObject(OperationMetaServiceSpecification.class); - Assertions.assertEquals("qpteeh", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("vypyqrimzinpv", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("jdkirsoodqx", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("rmnohj", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("kwh", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("oifiyipjxsqwpgr", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("orcjxvsnby", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("nmoc", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("ysh", model.metricSpecifications().get(0).dimensions().get(0).name()); + Assertions.assertEquals("qdcvdrhvoo", model.metricSpecifications().get(0).sourceMdmNamespace()); + Assertions.assertEquals("otbobzdopcj", model.metricSpecifications().get(0).displayName()); + Assertions.assertEquals("nhdldwmgxcx", model.metricSpecifications().get(0).name()); + Assertions.assertEquals("lpmutwuoegrpkhj", model.metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("iyq", model.metricSpecifications().get(0).displayDescription()); + Assertions.assertEquals("uicpd", model.metricSpecifications().get(0).sourceMdmAccount()); + Assertions.assertEquals(true, model.metricSpecifications().get(0).enableRegionalMdmAccount()); + Assertions.assertEquals("zl", model.metricSpecifications().get(0).unit()); + Assertions.assertEquals("paxmodfvuefywsb", + model.metricSpecifications().get(0).dimensions().get(0).displayName()); + Assertions.assertEquals("vmwy", model.metricSpecifications().get(0).dimensions().get(0).name()); Assertions.assertEquals(false, model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions.assertEquals("zgqexz", model.metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("t", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("vdfgiotk", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("utqxlngx", model.logSpecifications().get(0).name()); + Assertions.assertEquals(true, model.metricSpecifications().get(0).supportsInstanceLevelAggregation()); + Assertions.assertEquals("whojvp", model.metricSpecifications().get(0).metricFilterPattern()); + Assertions.assertEquals("gjltdtbnnhado", model.logSpecifications().get(0).displayName()); + Assertions.assertEquals("rkvcikhnvpa", model.logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("gxqquezik", model.logSpecifications().get(0).name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { OperationMetaServiceSpecification model = new OperationMetaServiceSpecification() .withMetricSpecifications(Arrays.asList( - new OperationMetaMetricSpecification().withSourceMdmNamespace("qpteeh") - .withDisplayName("vypyqrimzinpv") - .withName("jdkirsoodqx") - .withAggregationType("rmnohj") - .withDisplayDescription("kwh") - .withSourceMdmAccount("oifiyipjxsqwpgr") - .withEnableRegionalMdmAccount(false) - .withUnit("orcjxvsnby") + new OperationMetaMetricSpecification().withSourceMdmNamespace("qdcvdrhvoo") + .withDisplayName("otbobzdopcj") + .withName("nhdldwmgxcx") + .withAggregationType("lpmutwuoegrpkhj") + .withDisplayDescription("iyq") + .withSourceMdmAccount("uicpd") + .withEnableRegionalMdmAccount(true) + .withUnit("zl") .withDimensions(Arrays.asList( - new OperationMetaMetricDimensionSpecification().withDisplayName("nmoc") - .withName("ysh") + new OperationMetaMetricDimensionSpecification().withDisplayName("paxmodfvuefywsb") + .withName("vmwy") .withToBeExportedForShoebox(false), - new OperationMetaMetricDimensionSpecification().withDisplayName("fblj") - .withName("pbtoqcjmkl") + new OperationMetaMetricDimensionSpecification().withDisplayName("uyfta") + .withName("cpwi") .withToBeExportedForShoebox(false), - new OperationMetaMetricDimensionSpecification().withDisplayName("qidtqajzyu") - .withName("kudjkrlkhb") - .withToBeExportedForShoebox(false))) - .withSupportsInstanceLevelAggregation(false) - .withMetricFilterPattern("zgqexz"), - new OperationMetaMetricSpecification().withSourceMdmNamespace("c") - .withDisplayName("c") - .withName("ierhhbcsglummaj") - .withAggregationType("aodxo") - .withDisplayDescription("bdxkqpxokaj") - .withSourceMdmAccount("npime") + new OperationMetaMetricDimensionSpecification().withDisplayName("tmnubexkpzksmon") + .withName("mquxvypo") + .withToBeExportedForShoebox(true))) + .withSupportsInstanceLevelAggregation(true) + .withMetricFilterPattern("whojvp"), + new OperationMetaMetricSpecification().withSourceMdmNamespace("qgxy") + .withDisplayName("ocmbqfqvmkcxoza") + .withName("helxprglya") + .withAggregationType("dckcbc") + .withDisplayDescription("jrjxgciqibrhosx") + .withSourceMdmAccount("qrhzoymibmrqyib") .withEnableRegionalMdmAccount(false) - .withUnit("xgcp") + .withUnit("luszdtmhrkwof") .withDimensions(Arrays.asList( - new OperationMetaMetricDimensionSpecification().withDisplayName("aajrm") - .withName("jwzrl") - .withToBeExportedForShoebox(false), - new OperationMetaMetricDimensionSpecification().withDisplayName("lwhijcoejctbzaq") - .withName("sycbkbfk") + new OperationMetaMetricDimensionSpecification().withDisplayName("qacpiex") + .withName("tg") + .withToBeExportedForShoebox(true), + new OperationMetaMetricDimensionSpecification().withDisplayName("oenwashr") + .withName("tkcnqxwb") + .withToBeExportedForShoebox(true), + new OperationMetaMetricDimensionSpecification().withDisplayName("lpiujwaa") + .withName("pqiiobyuqe") + .withToBeExportedForShoebox(true))) + .withSupportsInstanceLevelAggregation(true) + .withMetricFilterPattern("wcciuqgbdbu"), + new OperationMetaMetricSpecification().withSourceMdmNamespace("uvfbtkuwh") + .withDisplayName("hykojoxafnndlpic") + .withName("o") + .withAggregationType("kcdyhbpk") + .withDisplayDescription("wdreqnovvqfovl") + .withSourceMdmAccount("ywsuwsy") + .withEnableRegionalMdmAccount(true) + .withUnit("sytgadgvraea") + .withDimensions( + Arrays.asList(new OperationMetaMetricDimensionSpecification().withDisplayName("nzar") + .withName("lquuijfqkacewii") .withToBeExportedForShoebox(false))) - .withSupportsInstanceLevelAggregation(false) - .withMetricFilterPattern("xxppofm"), - new OperationMetaMetricSpecification().withSourceMdmNamespace("x") - .withDisplayName("jpgd") - .withName("ocjjxhvpmouexh") - .withAggregationType("xibqeojnx") - .withDisplayDescription("zvddntwndeicbtwn") - .withSourceMdmAccount("aoqvuh") + .withSupportsInstanceLevelAggregation(true) + .withMetricFilterPattern("ibwwiftohqkv"), + new OperationMetaMetricSpecification().withSourceMdmNamespace("vksgplsaknynfsy") + .withDisplayName("jphuopxodlqi") + .withName("torzih") + .withAggregationType("osjswsr") + .withDisplayDescription("lyzrpzbchckqqzqi") + .withSourceMdmAccount("iysui") .withEnableRegionalMdmAccount(true) - .withUnit("fcyddg") + .withUnit("ked") .withDimensions(Arrays.asList( - new OperationMetaMetricDimensionSpecification().withDisplayName("hjq") - .withName("pyeicxm") - .withToBeExportedForShoebox(false), - new OperationMetaMetricDimensionSpecification().withDisplayName("q") - .withName("khixuigdtopbo") + new OperationMetaMetricDimensionSpecification().withDisplayName("wyhqmibzyhwits") + .withName("pyy") .withToBeExportedForShoebox(false), - new OperationMetaMetricDimensionSpecification().withDisplayName("hm") - .withName("u") + new OperationMetaMetricDimensionSpecification().withDisplayName("pumnz") + .withName("wznm") + .withToBeExportedForShoebox(true), + new OperationMetaMetricDimensionSpecification().withDisplayName("nsorgjhxbldt") + .withName("wrlkdmtn") .withToBeExportedForShoebox(false))) .withSupportsInstanceLevelAggregation(true) - .withMetricFilterPattern("z"))) + .withMetricFilterPattern("llxdyhgs"))) .withLogSpecifications(Arrays.asList( - new OperationMetaLogSpecification().withDisplayName("t") - .withBlobDuration("vdfgiotk") - .withName("utqxlngx"), - new OperationMetaLogSpecification().withDisplayName("fgugnxkrxdqmid") - .withBlobDuration("hzrvqd") - .withName("bhj"), - new OperationMetaLogSpecification().withDisplayName("igeho") - .withBlobDuration("bowsk") - .withName("yktz"))); + new OperationMetaLogSpecification().withDisplayName("gjltdtbnnhado") + .withBlobDuration("rkvcikhnvpa") + .withName("gxqquezik"), + new OperationMetaLogSpecification().withDisplayName("ggxkallatmelwuip") + .withBlobDuration("cjzkzivgvvcna") + .withName("hyrnxxmu"), + new OperationMetaLogSpecification().withDisplayName("dndrdvstkwqqtche") + .withBlobDuration("mfmtdaaygdvw") + .withName("piohgwxrtfu"))); model = BinaryData.fromObject(model).toObject(OperationMetaServiceSpecification.class); - Assertions.assertEquals("qpteeh", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("vypyqrimzinpv", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("jdkirsoodqx", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("rmnohj", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("kwh", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("oifiyipjxsqwpgr", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("orcjxvsnby", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("nmoc", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("ysh", model.metricSpecifications().get(0).dimensions().get(0).name()); + Assertions.assertEquals("qdcvdrhvoo", model.metricSpecifications().get(0).sourceMdmNamespace()); + Assertions.assertEquals("otbobzdopcj", model.metricSpecifications().get(0).displayName()); + Assertions.assertEquals("nhdldwmgxcx", model.metricSpecifications().get(0).name()); + Assertions.assertEquals("lpmutwuoegrpkhj", model.metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("iyq", model.metricSpecifications().get(0).displayDescription()); + Assertions.assertEquals("uicpd", model.metricSpecifications().get(0).sourceMdmAccount()); + Assertions.assertEquals(true, model.metricSpecifications().get(0).enableRegionalMdmAccount()); + Assertions.assertEquals("zl", model.metricSpecifications().get(0).unit()); + Assertions.assertEquals("paxmodfvuefywsb", + model.metricSpecifications().get(0).dimensions().get(0).displayName()); + Assertions.assertEquals("vmwy", model.metricSpecifications().get(0).dimensions().get(0).name()); Assertions.assertEquals(false, model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions.assertEquals("zgqexz", model.metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("t", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("vdfgiotk", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("utqxlngx", model.logSpecifications().get(0).name()); + Assertions.assertEquals(true, model.metricSpecifications().get(0).supportsInstanceLevelAggregation()); + Assertions.assertEquals("whojvp", model.metricSpecifications().get(0).metricFilterPattern()); + Assertions.assertEquals("gjltdtbnnhado", model.logSpecifications().get(0).displayName()); + Assertions.assertEquals("rkvcikhnvpa", model.logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("gxqquezik", model.logSpecifications().get(0).name()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java index b763dcd99aca..63b2c879eb68 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class OperationsCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { String responseStr - = "{\"message\":\"haitranize\",\"available\":true,\"reason\":\"dasmxu\",\"name\":\"fbngfcocef\"}"; + = "{\"message\":\"ffatsgftipw\",\"available\":true,\"reason\":\"ubhiqdxyur\",\"name\":\"nuhzafccnuh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { CheckNameAvailabilityResponse response = manager.operations() .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityRequest().withName("xudqyemebunaucmc").withType("tneemmjauwcgxef"), + new CheckNameAvailabilityRequest().withName("ckbbcc").withType("zpraoxn"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("haitranize", response.message()); + Assertions.assertEquals("ffatsgftipw", response.message()); Assertions.assertEquals(true, response.available()); - Assertions.assertEquals("dasmxu", response.reason()); - Assertions.assertEquals("fbngfcocef", response.name()); + Assertions.assertEquals("ubhiqdxyur", response.reason()); + Assertions.assertEquals("nuhzafccnuh", response.name()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultWithResponseMockTests.java index 30bf79917dab..6f369abae18b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testGetLocationHeaderResultWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.operations() - .getLocationHeaderResultWithResponse("pynwlslrcigtzjcv", "xqlaps", "ssov", + .getLocationHeaderResultWithResponse("opagttmvmmag", "aqylkjztji", "azjcgmxitpfin", com.azure.core.util.Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsListWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsListWithResponseMockTests.java index 35f0fe197089..4761cf382fb4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsListWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsListWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class OperationsListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "[{\"display\":{\"description\":\"y\",\"resource\":\"mpztraudsvhlc\",\"provider\":\"ul\",\"operation\":\"gpqtmo\"},\"isDataAction\":\"vr\",\"name\":\"nvgyshqrdgrtwme\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{}],\"logSpecifications\":[{},{}]}},\"origin\":\"fa\"},{\"display\":{\"description\":\"jcayerzrransyby\",\"resource\":\"ol\",\"provider\":\"rghsrleinkfsc\",\"operation\":\"ncjwvuag\"},\"isDataAction\":\"wtltngvmreuptrk\",\"name\":\"m\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{}],\"logSpecifications\":[{}]}},\"origin\":\"fsvagh\"}]"; + = "[{\"display\":{\"description\":\"yl\",\"resource\":\"igvxvatvcrk\",\"provider\":\"b\",\"operation\":\"qxvhcsyhzlwxa\"},\"isDataAction\":\"ov\",\"name\":\"exdnd\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{}],\"logSpecifications\":[{},{},{}]}},\"origin\":\"rzmwn\"}]"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,12 +34,12 @@ public void testListWithResponse() throws Exception { List response = manager.operations().listWithResponse(com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals("y", response.get(0).display().description()); - Assertions.assertEquals("mpztraudsvhlc", response.get(0).display().resource()); - Assertions.assertEquals("ul", response.get(0).display().provider()); - Assertions.assertEquals("gpqtmo", response.get(0).display().operation()); - Assertions.assertEquals("vr", response.get(0).isDataAction()); - Assertions.assertEquals("nvgyshqrdgrtwme", response.get(0).name()); - Assertions.assertEquals("fa", response.get(0).origin()); + Assertions.assertEquals("yl", response.get(0).display().description()); + Assertions.assertEquals("igvxvatvcrk", response.get(0).display().resource()); + Assertions.assertEquals("b", response.get(0).display().provider()); + Assertions.assertEquals("qxvhcsyhzlwxa", response.get(0).display().operation()); + Assertions.assertEquals("ov", response.get(0).isDataAction()); + Assertions.assertEquals("exdnd", response.get(0).name()); + Assertions.assertEquals("rzmwn", response.get(0).origin()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OptimizedAutoscaleTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OptimizedAutoscaleTests.java deleted file mode 100644 index 3908c9e48e8c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OptimizedAutoscaleTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import org.junit.jupiter.api.Assertions; - -public final class OptimizedAutoscaleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OptimizedAutoscale model = BinaryData - .fromString("{\"version\":1586844397,\"isEnabled\":false,\"minimum\":389477367,\"maximum\":888370469}") - .toObject(OptimizedAutoscale.class); - Assertions.assertEquals(1586844397, model.version()); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(389477367, model.minimum()); - Assertions.assertEquals(888370469, model.maximum()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OptimizedAutoscale model = new OptimizedAutoscale().withVersion(1586844397) - .withIsEnabled(false) - .withMinimum(389477367) - .withMaximum(888370469); - model = BinaryData.fromObject(model).toObject(OptimizedAutoscale.class); - Assertions.assertEquals(1586844397, model.version()); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(389477367, model.minimum()); - Assertions.assertEquals(888370469, model.maximum()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedTests.java index 4bb19cd3fe5e..5471750756a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedTests.java @@ -15,24 +15,24 @@ public final class PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedT @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated model = BinaryData.fromString( - "{\"id\":\"ivyhzceuojgjrwju\",\"properties\":{\"privateEndpoint\":{\"id\":\"wmcdytdxwi\"},\"privateLinkServiceConnectionState\":{\"status\":\"rjaw\",\"description\":\"wgxhn\",\"actionsRequired\":\"kxfbkpycgklwndn\"},\"provisioningState\":\"dauwhvylwzbtd\"}}") + "{\"id\":\"rpw\",\"properties\":{\"privateEndpoint\":{\"id\":\"noigbrnjwmwk\"},\"privateLinkServiceConnectionState\":{\"status\":\"saz\",\"description\":\"joqkagfhsxt\",\"actionsRequired\":\"ugzxnf\"},\"provisioningState\":\"zpxdt\"}}") .toObject(PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.class); - Assertions.assertEquals("ivyhzceuojgjrwju", model.id()); - Assertions.assertEquals("rjaw", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("wgxhn", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("rpw", model.id()); + Assertions.assertEquals("saz", model.properties().privateLinkServiceConnectionState().status()); + Assertions.assertEquals("joqkagfhsxt", model.properties().privateLinkServiceConnectionState().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated model - = new PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated().withId("ivyhzceuojgjrwju") + = new PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated().withId("rpw") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("rjaw").withDescription("wgxhn"))); + new PrivateLinkServiceConnectionState().withStatus("saz").withDescription("joqkagfhsxt"))); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.class); - Assertions.assertEquals("ivyhzceuojgjrwju", model.id()); - Assertions.assertEquals("rjaw", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("wgxhn", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("rpw", model.id()); + Assertions.assertEquals("saz", model.properties().privateLinkServiceConnectionState().status()); + Assertions.assertEquals("joqkagfhsxt", model.properties().privateLinkServiceConnectionState().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicTests.java index 61eb2e476a63..f43671b37a07 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicTests.java @@ -14,20 +14,20 @@ public final class PrivateEndpointConnectionForPrivateLinkHubBasicTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionForPrivateLinkHubBasic model = BinaryData.fromString( - "{\"id\":\"deoj\",\"properties\":{\"privateEndpoint\":{\"id\":\"khsmtxpsiebt\"},\"privateLinkServiceConnectionState\":{\"status\":\"pesapskrdqmhjj\",\"description\":\"tldwkyzxuutk\",\"actionsRequired\":\"ws\"},\"provisioningState\":\"svlxotogtwrup\"}}") + "{\"id\":\"ccelve\",\"properties\":{\"privateEndpoint\":{\"id\":\"qlmfeoker\"},\"privateLinkServiceConnectionState\":{\"status\":\"yhko\",\"description\":\"pg\",\"actionsRequired\":\"dkow\"},\"provisioningState\":\"bqpc\"}}") .toObject(PrivateEndpointConnectionForPrivateLinkHubBasic.class); - Assertions.assertEquals("pesapskrdqmhjj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("tldwkyzxuutk", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("yhko", model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("pg", model.privateLinkServiceConnectionState().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubBasic model = new PrivateEndpointConnectionForPrivateLinkHubBasic() - .withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("pesapskrdqmhjj").withDescription("tldwkyzxuutk")); + PrivateEndpointConnectionForPrivateLinkHubBasic model + = new PrivateEndpointConnectionForPrivateLinkHubBasic().withPrivateEndpoint(new PrivateEndpoint()) + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus("yhko").withDescription("pg")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionForPrivateLinkHubBasic.class); - Assertions.assertEquals("pesapskrdqmhjj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("tldwkyzxuutk", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("yhko", model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("pg", model.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubInnerTests.java index 65926c69f988..d1bacf4c235a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubInnerTests.java @@ -15,29 +15,29 @@ public final class PrivateEndpointConnectionForPrivateLinkHubInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionForPrivateLinkHubInner model = BinaryData.fromString( - "{\"name\":\"xqpvfadmw\",\"type\":\"crgvxpvgom\",\"id\":\"fmisg\",\"properties\":{\"privateEndpoint\":{\"id\":\"beldawkzbaliourq\"},\"privateLinkServiceConnectionState\":{\"status\":\"auhashsfwx\",\"description\":\"owzxcu\",\"actionsRequired\":\"cjooxdjebwpucwwf\"},\"provisioningState\":\"vbvmeu\"}}") + "{\"name\":\"oowvrv\",\"type\":\"gjqppy\",\"id\":\"tronzmyhgfi\",\"properties\":{\"privateEndpoint\":{\"id\":\"kmcwaekrrjreafx\"},\"privateLinkServiceConnectionState\":{\"status\":\"umh\",\"description\":\"lik\",\"actionsRequired\":\"wslolbqp\"},\"provisioningState\":\"zlmvfelfktgp\"}}") .toObject(PrivateEndpointConnectionForPrivateLinkHubInner.class); - Assertions.assertEquals("fmisg", model.id()); - Assertions.assertEquals("auhashsfwx", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("owzxcu", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("xqpvfadmw", model.name()); - Assertions.assertEquals("crgvxpvgom", model.type()); + Assertions.assertEquals("tronzmyhgfi", model.id()); + Assertions.assertEquals("umh", model.properties().privateLinkServiceConnectionState().status()); + Assertions.assertEquals("lik", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("oowvrv", model.name()); + Assertions.assertEquals("gjqppy", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnectionForPrivateLinkHubInner model - = new PrivateEndpointConnectionForPrivateLinkHubInner().withId("fmisg") + = new PrivateEndpointConnectionForPrivateLinkHubInner().withId("tronzmyhgfi") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("auhashsfwx").withDescription("owzxcu"))) - .withName("xqpvfadmw") - .withType("crgvxpvgom"); + new PrivateLinkServiceConnectionState().withStatus("umh").withDescription("lik"))) + .withName("oowvrv") + .withType("gjqppy"); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionForPrivateLinkHubInner.class); - Assertions.assertEquals("fmisg", model.id()); - Assertions.assertEquals("auhashsfwx", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("owzxcu", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("xqpvfadmw", model.name()); - Assertions.assertEquals("crgvxpvgom", model.type()); + Assertions.assertEquals("tronzmyhgfi", model.id()); + Assertions.assertEquals("umh", model.properties().privateLinkServiceConnectionState().status()); + Assertions.assertEquals("lik", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("oowvrv", model.name()); + Assertions.assertEquals("gjqppy", model.type()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseTests.java index 16f8403a5519..e07ca366a1bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseTests.java @@ -17,44 +17,42 @@ public final class PrivateEndpointConnectionForPrivateLinkHubResourceCollectionR @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse model = BinaryData.fromString( - "{\"value\":[{\"name\":\"hoxus\",\"type\":\"pabgyeps\",\"id\":\"tazqugxywpmueefj\",\"properties\":{\"privateEndpoint\":{\"id\":\"kqujidsuyono\"},\"privateLinkServiceConnectionState\":{\"status\":\"aocqxtccmgy\",\"description\":\"xy\",\"actionsRequired\":\"moyrxvwfudwpz\"},\"provisioningState\":\"xhdzhlrqjbhckf\"}},{\"name\":\"hrxsbk\",\"type\":\"pycanuzbpz\",\"id\":\"fkuwbcrnwbmehhse\",\"properties\":{\"privateEndpoint\":{\"id\":\"srtslhspkdeem\"},\"privateLinkServiceConnectionState\":{\"status\":\"mx\",\"description\":\"kv\",\"actionsRequired\":\"elmqk\"},\"provisioningState\":\"ahvljuaha\"}}],\"nextLink\":\"hcdhmdual\"}") + "{\"value\":[{\"name\":\"mdvy\",\"type\":\"ikdgszywkbir\",\"id\":\"uzhlhkjoqrv\",\"properties\":{\"privateEndpoint\":{\"id\":\"t\"},\"privateLinkServiceConnectionState\":{\"status\":\"rv\",\"description\":\"upmfiibfg\",\"actionsRequired\":\"ioolvrwxkvtkkgll\"},\"provisioningState\":\"jygvjayvbl\"}},{\"name\":\"vkzuhbxvvyhgso\",\"type\":\"yrqufegxuvwz\",\"id\":\"nhlmctlpdng\",\"properties\":{\"privateEndpoint\":{\"id\":\"bmhrixkwmyijejv\"},\"privateLinkServiceConnectionState\":{\"status\":\"hbpnaixexccbd\",\"description\":\"ax\",\"actionsRequired\":\"exdrrvqahqkg\"},\"provisioningState\":\"pwijnhy\"}}],\"nextLink\":\"vfycxzb\"}") .toObject(PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.class); - Assertions.assertEquals("tazqugxywpmueefj", model.value().get(0).id()); - Assertions.assertEquals("aocqxtccmgy", - model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xy", + Assertions.assertEquals("uzhlhkjoqrv", model.value().get(0).id()); + Assertions.assertEquals("rv", model.value().get(0).properties().privateLinkServiceConnectionState().status()); + Assertions.assertEquals("upmfiibfg", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("hoxus", model.value().get(0).name()); - Assertions.assertEquals("pabgyeps", model.value().get(0).type()); - Assertions.assertEquals("hcdhmdual", model.nextLink()); + Assertions.assertEquals("mdvy", model.value().get(0).name()); + Assertions.assertEquals("ikdgszywkbir", model.value().get(0).type()); + Assertions.assertEquals("vfycxzb", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse model = new PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse().withValue(Arrays.asList( - new PrivateEndpointConnectionForPrivateLinkHubInner().withId("tazqugxywpmueefj") + new PrivateEndpointConnectionForPrivateLinkHubInner().withId("uzhlhkjoqrv") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("aocqxtccmgy").withDescription("xy"))) - .withName("hoxus") - .withType("pabgyeps"), - new PrivateEndpointConnectionForPrivateLinkHubInner().withId("fkuwbcrnwbmehhse") + new PrivateLinkServiceConnectionState().withStatus("rv").withDescription("upmfiibfg"))) + .withName("mdvy") + .withType("ikdgszywkbir"), + new PrivateEndpointConnectionForPrivateLinkHubInner().withId("nhlmctlpdng") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("mx").withDescription("kv"))) - .withName("hrxsbk") - .withType("pycanuzbpz"))) - .withNextLink("hcdhmdual"); + new PrivateLinkServiceConnectionState().withStatus("hbpnaixexccbd").withDescription("ax"))) + .withName("vkzuhbxvvyhgso") + .withType("yrqufegxuvwz"))) + .withNextLink("vfycxzb"); model = BinaryData.fromObject(model) .toObject(PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.class); - Assertions.assertEquals("tazqugxywpmueefj", model.value().get(0).id()); - Assertions.assertEquals("aocqxtccmgy", - model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xy", + Assertions.assertEquals("uzhlhkjoqrv", model.value().get(0).id()); + Assertions.assertEquals("rv", model.value().get(0).properties().privateLinkServiceConnectionState().status()); + Assertions.assertEquals("upmfiibfg", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("hoxus", model.value().get(0).name()); - Assertions.assertEquals("pabgyeps", model.value().get(0).type()); - Assertions.assertEquals("hcdhmdual", model.nextLink()); + Assertions.assertEquals("mdvy", model.value().get(0).name()); + Assertions.assertEquals("ikdgszywkbir", model.value().get(0).type()); + Assertions.assertEquals("vfycxzb", model.nextLink()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionInnerTests.java index 69561352933c..c05630a1968f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionInnerTests.java @@ -14,10 +14,10 @@ public final class PrivateEndpointConnectionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionInner model = BinaryData.fromString( - "{\"properties\":{\"privateEndpoint\":{\"id\":\"vorxzdmohct\"},\"privateLinkServiceConnectionState\":{\"status\":\"udwxdndnvowguj\",\"description\":\"gwdkcglhsl\",\"actionsRequired\":\"jdyggdtji\"},\"provisioningState\":\"b\"},\"id\":\"uofqwe\",\"name\":\"kh\",\"type\":\"enevfyexfwhybci\"}") + "{\"properties\":{\"privateEndpoint\":{\"id\":\"exn\"},\"privateLinkServiceConnectionState\":{\"status\":\"dnw\",\"description\":\"mewzsyyc\",\"actionsRequired\":\"zsoibjudpfrxtr\"},\"provisioningState\":\"zvaytdwkqbr\"},\"id\":\"ubpaxhe\",\"name\":\"iilivpdtiirqtd\",\"type\":\"oaxoruzfgsqu\"}") .toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("udwxdndnvowguj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gwdkcglhsl", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("dnw", model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("mewzsyyc", model.privateLinkServiceConnectionState().description()); } @org.junit.jupiter.api.Test @@ -25,9 +25,9 @@ public void testSerialize() throws Exception { PrivateEndpointConnectionInner model = new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("udwxdndnvowguj").withDescription("gwdkcglhsl")); + new PrivateLinkServiceConnectionState().withStatus("dnw").withDescription("mewzsyyc")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("udwxdndnvowguj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gwdkcglhsl", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("dnw", model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("mewzsyyc", model.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionListTests.java index 515fd472aa09..0556d328bba1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionListTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionListTests.java @@ -11,7 +11,7 @@ public final class PrivateEndpointConnectionListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"q\"},\"privateLinkServiceConnectionState\":{\"status\":\"noae\",\"description\":\"fhyhltrpmopjmcma\",\"actionsRequired\":\"okth\"},\"provisioningState\":\"iuaod\"},\"id\":\"fcp\",\"name\":\"vxodpu\",\"type\":\"zmyzydagf\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"ezyiuokktwhrdxw\"},\"privateLinkServiceConnectionState\":{\"status\":\"q\",\"description\":\"bsureximo\",\"actionsRequired\":\"ocfs\"},\"provisioningState\":\"s\"},\"id\":\"mddystkiiux\",\"name\":\"qyud\",\"type\":\"o\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"b\"},\"privateLinkServiceConnectionState\":{\"status\":\"zvyifqrvkdvj\",\"description\":\"lrmv\",\"actionsRequired\":\"f\"},\"provisioningState\":\"t\"},\"id\":\"pnpulexxbczwtru\",\"name\":\"iqzbq\",\"type\":\"vsovmyokac\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"lhzdobp\"},\"privateLinkServiceConnectionState\":{\"status\":\"flbvvnchrkcciwwz\",\"description\":\"qkhr\",\"actionsRequired\":\"jiwkuofoskghsau\"},\"provisioningState\":\"mjmvxieduugidyjr\"},\"id\":\"f\",\"name\":\"y\",\"type\":\"osvexcsonpclhoc\"}],\"nextLink\":\"slkevle\"}") + "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"owpulpq\"},\"privateLinkServiceConnectionState\":{\"status\":\"lsyxkqjnsjervt\",\"description\":\"gxsds\",\"actionsRequired\":\"e\"},\"provisioningState\":\"sbzkf\"},\"id\":\"beyvpnqicvinvkjj\",\"name\":\"dxrbuukzcle\",\"type\":\"yhmlwpaztzp\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"ckw\"},\"privateLinkServiceConnectionState\":{\"status\":\"qwhxxbuyqaxzfeqz\",\"description\":\"priolx\",\"actionsRequired\":\"jaltolmnc\"},\"provisioningState\":\"obqwcsdbnwdcfh\"},\"id\":\"cqdpfuv\",\"name\":\"lsbjjcanvxbv\",\"type\":\"vudutncor\"}],\"nextLink\":\"lxqtvcofudfl\"}") .toObject(PrivateEndpointConnectionList.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionPropertiesTests.java index 9d5aa5d4b8f9..b1a06d58877b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionPropertiesTests.java @@ -14,10 +14,10 @@ public final class PrivateEndpointConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionProperties model = BinaryData.fromString( - "{\"privateEndpoint\":{\"id\":\"vdcsitynn\"},\"privateLinkServiceConnectionState\":{\"status\":\"dectehfiqsc\",\"description\":\"ypvhezrkg\",\"actionsRequired\":\"c\"},\"provisioningState\":\"efovgmk\"}") + "{\"privateEndpoint\":{\"id\":\"rxxle\"},\"privateLinkServiceConnectionState\":{\"status\":\"amxjezwlw\",\"description\":\"xuqlcvydypat\",\"actionsRequired\":\"oa\"},\"provisioningState\":\"kniod\"}") .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("dectehfiqsc", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ypvhezrkg", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("amxjezwlw", model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("xuqlcvydypat", model.privateLinkServiceConnectionState().description()); } @org.junit.jupiter.api.Test @@ -25,9 +25,9 @@ public void testSerialize() throws Exception { PrivateEndpointConnectionProperties model = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("dectehfiqsc").withDescription("ypvhezrkg")); + new PrivateLinkServiceConnectionState().withStatus("amxjezwlw").withDescription("xuqlcvydypat")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("dectehfiqsc", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ypvhezrkg", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("amxjezwlw", model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("xuqlcvydypat", model.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateMockTests.java index fdeb90ce5663..210f8ada5211 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateMockTests.java @@ -23,7 +23,7 @@ public final class PrivateEndpointConnectionsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"vstclg\"},\"privateLinkServiceConnectionState\":{\"status\":\"werfwx\",\"description\":\"mtbljjeh\",\"actionsRequired\":\"ifkwdvbtbrekqhs\"},\"provisioningState\":\"Succeeded\"},\"id\":\"qwdqi\",\"name\":\"mghg\",\"type\":\"nztxlujkh\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"hqxc\"},\"privateLinkServiceConnectionState\":{\"status\":\"tkbtnqlrngl\",\"description\":\"biipsnawwlqkznx\",\"actionsRequired\":\"llxricc\"},\"provisioningState\":\"Succeeded\"},\"id\":\"rwvaexhdc\",\"name\":\"rceqnkbrupob\",\"type\":\"hdmljz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .define("quvjez") - .withExistingWorkspace("qicladv", "tdavuqmcbymsfobj") + .define("uyld") + .withExistingWorkspace("etaoutnpdc", "uhspfefyihduy") .withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("mioyo").withDescription("l")) + new PrivateLinkServiceConnectionState().withStatus("x").withDescription("lf")) .create(); - Assertions.assertEquals("werfwx", response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("mtbljjeh", response.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("tkbtnqlrngl", response.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("biipsnawwlqkznx", response.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index 3a87974dded9..79a0665275c6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"jgmn\"},\"privateLinkServiceConnectionState\":{\"status\":\"t\",\"description\":\"rxkhlob\",\"actionsRequired\":\"jbhvhdiqayflu\"},\"provisioningState\":\"uosnuud\"},\"id\":\"elvhyibdrqrswh\",\"name\":\"uubpyrow\",\"type\":\"joxztfwfqchvczev\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"rra\"},\"privateLinkServiceConnectionState\":{\"status\":\"kcsueho\",\"description\":\"dac\",\"actionsRequired\":\"bgydlqidywm\"},\"provisioningState\":\"ptyrilkfbnrqqxv\"},\"id\":\"tpbnfnqtxjtoma\",\"name\":\"swbnfddepldwqjns\",\"type\":\"zygleexahvm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("ldbglzout", "aaqgzeka", "clyzgs", com.azure.core.util.Context.NONE) + .getWithResponse("kywymxgaabj", "dtfohfaog", "vkiwrsiwdyjqu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("t", response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rxkhlob", response.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("kcsueho", response.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("dac", response.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListMockTests.java index be893bf12a42..5a181275fe3a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"feeqgpkrietbgnix\"},\"privateLinkServiceConnectionState\":{\"status\":\"wzkyf\",\"description\":\"wpiwxeiicrmpep\",\"actionsRequired\":\"dm\"},\"provisioningState\":\"xijvskwsdgkjgyac\"},\"id\":\"rasek\",\"name\":\"efcvo\",\"type\":\"nwoqartwy\"}]}"; + = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"n\"},\"privateLinkServiceConnectionState\":{\"status\":\"mbpjptnvwjh\",\"description\":\"idqpxlbtpakftn\",\"actionsRequired\":\"twmykyut\"},\"provisioningState\":\"mdwmf\"},\"id\":\"hpycvjqdvdwkq\",\"name\":\"ldrlefgnaavua\",\"type\":\"n\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.privateEndpointConnections().list("lbciphmsexro", "rndktx", com.azure.core.util.Context.NONE); + = manager.privateEndpointConnections().list("dfpdqwtygevg", "mseharx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("wzkyf", response.iterator().next().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("wpiwxeiicrmpep", + Assertions.assertEquals("mbpjptnvwjh", response.iterator().next().privateLinkServiceConnectionState().status()); + Assertions.assertEquals("idqpxlbtpakftn", response.iterator().next().privateLinkServiceConnectionState().description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests.java deleted file mode 100644 index a8b0b75a08f4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHub; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"name\":\"erpi\",\"type\":\"tjzgczfcm\",\"id\":\"fbodetresrgvts\",\"properties\":{\"privateEndpoint\":{\"id\":\"t\"},\"privateLinkServiceConnectionState\":{\"status\":\"vmuqke\",\"description\":\"gjypanhxmpdxxze\",\"actionsRequired\":\"wzjwotnxlkfhg\"},\"provisioningState\":\"rfo\"}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnectionForPrivateLinkHub response = manager.privateEndpointConnectionsPrivateLinkHubs() - .getWithResponse("zuu", "ggzlf", "grdcgubsrtmdy", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("fbodetresrgvts", response.id()); - Assertions.assertEquals("vmuqke", response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gjypanhxmpdxxze", - response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("erpi", response.name()); - Assertions.assertEquals("tjzgczfcm", response.type()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsListMockTests.java index 537acc2091ac..43d465f8874e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsListMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsPrivateLinkHubsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"ffofwan\",\"type\":\"k\",\"id\":\"auwazcgwd\",\"properties\":{\"privateEndpoint\":{\"id\":\"gyb\"},\"privateLinkServiceConnectionState\":{\"status\":\"zokscvg\",\"description\":\"ixdgbyfgwewqkj\",\"actionsRequired\":\"prwpxsoohu\"},\"provisioningState\":\"lcsklt\"}}]}"; + = "{\"value\":[{\"name\":\"punytjl\",\"type\":\"smmpathubt\",\"id\":\"deani\",\"properties\":{\"privateEndpoint\":{\"id\":\"bvgwzsff\"},\"privateLinkServiceConnectionState\":{\"status\":\"ousnktjt\",\"description\":\"avaqogfkbebau\",\"actionsRequired\":\"qbtxxwpf\"},\"provisioningState\":\"jzudrtpzk\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testList() throws Exception { PagedIterable response = manager.privateEndpointConnectionsPrivateLinkHubs() - .list("ubjtvgjsxmtyjjv", "vdpwwobtdphti", com.azure.core.util.Context.NONE); + .list("h", "beivdlhydwbdbfg", com.azure.core.util.Context.NONE); - Assertions.assertEquals("auwazcgwd", response.iterator().next().id()); - Assertions.assertEquals("zokscvg", + Assertions.assertEquals("deani", response.iterator().next().id()); + Assertions.assertEquals("ousnktjt", response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ixdgbyfgwewqkj", + Assertions.assertEquals("avaqogfkbebau", response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ffofwan", response.iterator().next().name()); - Assertions.assertEquals("k", response.iterator().next().type()); + Assertions.assertEquals("punytjl", response.iterator().next().name()); + Assertions.assertEquals("smmpathubt", response.iterator().next().type()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointTests.java index 0e9d2cef0474..187b36e5a362 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointTests.java @@ -10,7 +10,7 @@ public final class PrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"leyyvx\"}").toObject(PrivateEndpoint.class); + PrivateEndpoint model = BinaryData.fromString("{\"id\":\"oebwnujhemms\"}").toObject(PrivateEndpoint.class); } @org.junit.jupiter.api.Test diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInfoListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInfoListResultTests.java index 655c4f4db63e..efc19aa8b207 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInfoListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInfoListResultTests.java @@ -16,25 +16,35 @@ public final class PrivateLinkHubInfoListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkHubInfoListResult model = BinaryData.fromString( - "{\"nextLink\":\"hxepcyvahfnlj\",\"value\":[{\"properties\":{\"provisioningState\":\"vuujq\",\"privateEndpointConnections\":[{\"id\":\"kgj\",\"properties\":{}},{\"id\":\"oxgvclt\",\"properties\":{}}]},\"location\":\"sncghkjeszz\",\"tags\":{\"mpvecxgodebfqk\":\"jhtxfvgxbfsmxne\",\"flz\":\"rbmpukgri\"},\"id\":\"fbxzpuzycisp\",\"name\":\"qzahmgkbrp\",\"type\":\"y\"}]}") + "{\"nextLink\":\"rwr\",\"value\":[{\"properties\":{\"provisioningState\":\"aenuuz\",\"privateEndpointConnections\":[{\"id\":\"minrfdw\",\"properties\":{}},{\"id\":\"hhziuief\",\"properties\":{}}]},\"location\":\"bhdmsmlmzqhof\",\"tags\":{\"u\":\"ae\",\"icslfaoq\":\"ah\",\"kaivwit\":\"piyylhalnswhccsp\",\"bwemhairs\":\"scywuggwoluhc\"},\"id\":\"rgzdwmsweyp\",\"name\":\"w\",\"type\":\"xggicccnxqhuexmk\"},{\"properties\":{\"provisioningState\":\"stvlzywemhzrnc\",\"privateEndpointConnections\":[{\"id\":\"lusiy\",\"properties\":{}},{\"id\":\"fgytguslfeadcyg\",\"properties\":{}},{\"id\":\"yhejhzisxgfp\",\"properties\":{}},{\"id\":\"lppvksrpq\",\"properties\":{}}]},\"location\":\"jzraehtwdwrf\",\"tags\":{\"cdl\":\"iby\"},\"id\":\"h\",\"name\":\"hfwpracstwit\",\"type\":\"khevxccedc\"},{\"properties\":{\"provisioningState\":\"dyodnwzxltj\",\"privateEndpointConnections\":[{\"id\":\"ltiugcxnavv\",\"properties\":{}},{\"id\":\"ibyqunyowxwlmdj\",\"properties\":{}},{\"id\":\"fgbvfvpdbo\",\"properties\":{}}]},\"location\":\"cizsjqlhkrribdei\",\"tags\":{\"kghv\":\"p\",\"pjorwkqnyhg\":\"ndzwmkrefa\",\"jivfxzsjabib\":\"ij\",\"jxbkzbzkdvn\":\"ystawfsdjpvkvp\"},\"id\":\"jabudurgkakmo\",\"name\":\"zhjjklffhmouwq\",\"type\":\"gzrf\"}]}") .toObject(PrivateLinkHubInfoListResult.class); - Assertions.assertEquals("hxepcyvahfnlj", model.nextLink()); - Assertions.assertEquals("sncghkjeszz", model.value().get(0).location()); - Assertions.assertEquals("jhtxfvgxbfsmxne", model.value().get(0).tags().get("mpvecxgodebfqk")); - Assertions.assertEquals("vuujq", model.value().get(0).provisioningState()); + Assertions.assertEquals("rwr", model.nextLink()); + Assertions.assertEquals("bhdmsmlmzqhof", model.value().get(0).location()); + Assertions.assertEquals("ae", model.value().get(0).tags().get("u")); + Assertions.assertEquals("aenuuz", model.value().get(0).provisioningState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateLinkHubInfoListResult model = new PrivateLinkHubInfoListResult().withNextLink("hxepcyvahfnlj") - .withValue(Arrays.asList(new PrivateLinkHubInner().withLocation("sncghkjeszz") - .withTags(mapOf("mpvecxgodebfqk", "jhtxfvgxbfsmxne", "flz", "rbmpukgri")) - .withProvisioningState("vuujq"))); + PrivateLinkHubInfoListResult model + = new PrivateLinkHubInfoListResult().withNextLink("rwr") + .withValue(Arrays.asList( + new PrivateLinkHubInner().withLocation("bhdmsmlmzqhof") + .withTags(mapOf("u", "ae", "icslfaoq", "ah", "kaivwit", "piyylhalnswhccsp", "bwemhairs", + "scywuggwoluhc")) + .withProvisioningState("aenuuz"), + new PrivateLinkHubInner().withLocation("jzraehtwdwrf") + .withTags(mapOf("cdl", "iby")) + .withProvisioningState("stvlzywemhzrnc"), + new PrivateLinkHubInner().withLocation("cizsjqlhkrribdei") + .withTags(mapOf("kghv", "p", "pjorwkqnyhg", "ndzwmkrefa", "jivfxzsjabib", "ij", "jxbkzbzkdvn", + "ystawfsdjpvkvp")) + .withProvisioningState("dyodnwzxltj"))); model = BinaryData.fromObject(model).toObject(PrivateLinkHubInfoListResult.class); - Assertions.assertEquals("hxepcyvahfnlj", model.nextLink()); - Assertions.assertEquals("sncghkjeszz", model.value().get(0).location()); - Assertions.assertEquals("jhtxfvgxbfsmxne", model.value().get(0).tags().get("mpvecxgodebfqk")); - Assertions.assertEquals("vuujq", model.value().get(0).provisioningState()); + Assertions.assertEquals("rwr", model.nextLink()); + Assertions.assertEquals("bhdmsmlmzqhof", model.value().get(0).location()); + Assertions.assertEquals("ae", model.value().get(0).tags().get("u")); + Assertions.assertEquals("aenuuz", model.value().get(0).provisioningState()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInnerTests.java index fbfbe1052a50..3397a4cb50f7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInnerTests.java @@ -14,22 +14,22 @@ public final class PrivateLinkHubInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkHubInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"bnuqqkpik\",\"privateEndpointConnections\":[{\"id\":\"vtq\",\"properties\":{\"privateEndpoint\":{\"id\":\"uynhijg\"},\"privateLinkServiceConnectionState\":{\"status\":\"bfs\",\"description\":\"rbu\",\"actionsRequired\":\"cvpnazzmhjrunmpx\"},\"provisioningState\":\"dbhrbnlankxm\"}},{\"id\":\"k\",\"properties\":{\"privateEndpoint\":{\"id\":\"nbtkcxywnytnr\"},\"privateLinkServiceConnectionState\":{\"status\":\"lqidyby\",\"description\":\"zfcl\",\"actionsRequired\":\"axdbabph\"},\"provisioningState\":\"rqlfktsthsucocmn\"}}]},\"location\":\"yazttbtwwrqpue\",\"tags\":{\"fey\":\"zywbiex\",\"ujwb\":\"eaxib\"},\"id\":\"qwalmuzyoxaepd\",\"name\":\"zjancuxr\",\"type\":\"d\"}") + "{\"properties\":{\"provisioningState\":\"yebizikayuh\",\"privateEndpointConnections\":[{\"id\":\"bs\",\"properties\":{\"privateEndpoint\":{\"id\":\"wrv\"},\"privateLinkServiceConnectionState\":{\"status\":\"gmfpgvmp\",\"description\":\"as\",\"actionsRequired\":\"haq\"},\"provisioningState\":\"ss\"}},{\"id\":\"u\",\"properties\":{\"privateEndpoint\":{\"id\":\"srezp\"},\"privateLinkServiceConnectionState\":{\"status\":\"neuyow\",\"description\":\"d\",\"actionsRequired\":\"t\"},\"provisioningState\":\"ib\"}}]},\"location\":\"rcgp\",\"tags\":{\"av\":\"zimejzanlfzx\",\"jq\":\"mbzonokix\",\"rlazszrnw\":\"irgzp\",\"fpwpjylwbt\":\"iin\"},\"id\":\"h\",\"name\":\"lsj\",\"type\":\"dhszfjv\"}") .toObject(PrivateLinkHubInner.class); - Assertions.assertEquals("yazttbtwwrqpue", model.location()); - Assertions.assertEquals("zywbiex", model.tags().get("fey")); - Assertions.assertEquals("bnuqqkpik", model.provisioningState()); + Assertions.assertEquals("rcgp", model.location()); + Assertions.assertEquals("zimejzanlfzx", model.tags().get("av")); + Assertions.assertEquals("yebizikayuh", model.provisioningState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateLinkHubInner model = new PrivateLinkHubInner().withLocation("yazttbtwwrqpue") - .withTags(mapOf("fey", "zywbiex", "ujwb", "eaxib")) - .withProvisioningState("bnuqqkpik"); + PrivateLinkHubInner model = new PrivateLinkHubInner().withLocation("rcgp") + .withTags(mapOf("av", "zimejzanlfzx", "jq", "mbzonokix", "rlazszrnw", "irgzp", "fpwpjylwbt", "iin")) + .withProvisioningState("yebizikayuh"); model = BinaryData.fromObject(model).toObject(PrivateLinkHubInner.class); - Assertions.assertEquals("yazttbtwwrqpue", model.location()); - Assertions.assertEquals("zywbiex", model.tags().get("fey")); - Assertions.assertEquals("bnuqqkpik", model.provisioningState()); + Assertions.assertEquals("rcgp", model.location()); + Assertions.assertEquals("zimejzanlfzx", model.tags().get("av")); + Assertions.assertEquals("yebizikayuh", model.provisioningState()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPatchInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPatchInfoTests.java index 5307f9cbbaaf..e04a724f6ffe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPatchInfoTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPatchInfoTests.java @@ -13,19 +13,18 @@ public final class PrivateLinkHubPatchInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateLinkHubPatchInfo model = BinaryData - .fromString( - "{\"tags\":{\"cykvceo\":\"vnm\",\"vnotyfjfcnj\":\"eil\",\"nxdhbt\":\"k\",\"nermcl\":\"kphywpnvjto\"}}") - .toObject(PrivateLinkHubPatchInfo.class); - Assertions.assertEquals("vnm", model.tags().get("cykvceo")); + PrivateLinkHubPatchInfo model + = BinaryData.fromString("{\"tags\":{\"ftnkhtj\":\"bwccsnjvcdwxlpqe\",\"ngwfqatm\":\"y\"}}") + .toObject(PrivateLinkHubPatchInfo.class); + Assertions.assertEquals("bwccsnjvcdwxlpqe", model.tags().get("ftnkhtj")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateLinkHubPatchInfo model = new PrivateLinkHubPatchInfo() - .withTags(mapOf("cykvceo", "vnm", "vnotyfjfcnj", "eil", "nxdhbt", "k", "nermcl", "kphywpnvjto")); + PrivateLinkHubPatchInfo model + = new PrivateLinkHubPatchInfo().withTags(mapOf("ftnkhtj", "bwccsnjvcdwxlpqe", "ngwfqatm", "y")); model = BinaryData.fromObject(model).toObject(PrivateLinkHubPatchInfo.class); - Assertions.assertEquals("vnm", model.tags().get("cykvceo")); + Assertions.assertEquals("bwccsnjvcdwxlpqe", model.tags().get("ftnkhtj")); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests.java index f048ed99fbfe..fd5357afdd1e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"groupId\":\"kya\",\"requiredMembers\":[\"ekdfqnhttwd\",\"wrczfjjnnuxxrk\",\"mhmnulwemp\"],\"requiredZoneNames\":[\"frhjulrsulwzp\",\"lusnawmhhgzotfr\",\"yrgkoekv\"]},\"id\":\"wxxyxhighctx\",\"name\":\"xmolpcqydeyk\",\"type\":\"skiczd\"}"; + = "{\"properties\":{\"groupId\":\"rquv\",\"requiredMembers\":[\"glpm\",\"rdcueljtiahx\",\"fqryarvsx\",\"qbglcjkaysp\"],\"requiredZoneNames\":[\"odubtlmjt\",\"blioskkfmkmf\"]},\"id\":\"jxyxgb\",\"name\":\"kqvjcteoedlr\",\"type\":\"lskkzpxvj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateLinkResource response = manager.privateLinkHubPrivateLinkResources() - .getWithResponse("ze", "ufgjblcdr", "yfcemftz", com.azure.core.util.Context.NONE) + .getWithResponse("txvcm", "funlcpxxvi", "yeyng", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListMockTests.java index 2c4ade4e33fe..d0b63a8fed72 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkHubPrivateLinkResourcesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"lcfn\",\"requiredMembers\":[\"hsurlgw\",\"kpmmz\",\"stauolawi\",\"bmom\"],\"requiredZoneNames\":[\"vjhvvlr\",\"ohewjj\",\"ajnkdflqionswae\",\"kzfzqxjosho\"]},\"id\":\"totryegpkhxrme\",\"name\":\"znlw\",\"type\":\"bfokxkhu\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"dexyionofninbdb\",\"requiredMembers\":[\"cw\",\"qrs\",\"pcbbprtugav\"],\"requiredZoneNames\":[\"cyksivmfo\",\"dr\",\"bfcmkrfts\"]},\"id\":\"cwjjxsgmbawvif\",\"name\":\"xkecifhocj\",\"type\":\"wkloozr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.privateLinkHubPrivateLinkResources().list("wjekptycaydbj", "c", com.azure.core.util.Context.NONE); + = manager.privateLinkHubPrivateLinkResources().list("i", "hwu", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPropertiesTests.java index d85bd5daddba..43d3058829a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPropertiesTests.java @@ -12,15 +12,15 @@ public final class PrivateLinkHubPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkHubProperties model = BinaryData.fromString( - "{\"provisioningState\":\"avxbniwdjswztsdb\",\"privateEndpointConnections\":[{\"id\":\"ytxhp\",\"properties\":{\"privateEndpoint\":{\"id\":\"pfza\"},\"privateLinkServiceConnectionState\":{\"status\":\"cuh\",\"description\":\"tcty\",\"actionsRequired\":\"klbb\"},\"provisioningState\":\"plwzbhvgyugu\"}},{\"id\":\"vmkfssxqu\",\"properties\":{\"privateEndpoint\":{\"id\":\"l\"},\"privateLinkServiceConnectionState\":{\"status\":\"sxnkjzkdeslpvlo\",\"description\":\"i\",\"actionsRequired\":\"ghxpkdw\"},\"provisioningState\":\"aiuebbaumnyqu\"}}]}") + "{\"provisioningState\":\"gofel\",\"privateEndpointConnections\":[{\"id\":\"qmqhldvriii\",\"properties\":{\"privateEndpoint\":{\"id\":\"lg\"},\"privateLinkServiceConnectionState\":{\"status\":\"vtvsexsowueluq\",\"description\":\"ahhxvrh\",\"actionsRequired\":\"kwpjgwwspughftqs\"},\"provisioningState\":\"qxujxukndxd\"}},{\"id\":\"rjguufzdmsyqtf\",\"properties\":{\"privateEndpoint\":{\"id\":\"botzingamvppho\"},\"privateLinkServiceConnectionState\":{\"status\":\"zudphqamvdkfw\",\"description\":\"wcvtbvkayhmtnvyq\",\"actionsRequired\":\"tkzwpcnpwzc\"},\"provisioningState\":\"esgvvsccyaj\"}},{\"id\":\"qfhwyg\",\"properties\":{\"privateEndpoint\":{\"id\":\"nk\"},\"privateLinkServiceConnectionState\":{\"status\":\"semdwzrmu\",\"description\":\"pfcqdp\",\"actionsRequired\":\"xqv\"},\"provisioningState\":\"vuoy\"}}]}") .toObject(PrivateLinkHubProperties.class); - Assertions.assertEquals("avxbniwdjswztsdb", model.provisioningState()); + Assertions.assertEquals("gofel", model.provisioningState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateLinkHubProperties model = new PrivateLinkHubProperties().withProvisioningState("avxbniwdjswztsdb"); + PrivateLinkHubProperties model = new PrivateLinkHubProperties().withProvisioningState("gofel"); model = BinaryData.fromObject(model).toObject(PrivateLinkHubProperties.class); - Assertions.assertEquals("avxbniwdjswztsdb", model.provisioningState()); + Assertions.assertEquals("gofel", model.provisioningState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateWithResponseMockTests.java index 7a7cb078966b..d6ef991d53ed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class PrivateLinkHubsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"vsaaxwsp\",\"privateEndpointConnections\":[{\"id\":\"khfjqebglcxkx\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"mvygysem\"}},{\"id\":\"esrfsvpinkzpatq\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"xspvckojazb\"}}]},\"location\":\"gspftesu\",\"tags\":{\"srfjbdxzfxnx\":\"vpvdylytcovqse\",\"kjmdihdcyy\":\"lbmuos\"},\"id\":\"zlwhbwzjnufzrfgm\",\"name\":\"qgnnbz\",\"type\":\"tftedz\"}"; + = "{\"properties\":{\"provisioningState\":\"eojhtollhsvi\",\"privateEndpointConnections\":[{\"id\":\"zln\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"ovyoanf\"}}]},\"location\":\"cswqa\",\"tags\":{\"tpgaeukya\":\"vtxigvjr\",\"csklhsidsjt\":\"ohpmwhqn\",\"gazlsvbz\":\"lpbnin\",\"e\":\"cpuo\"},\"id\":\"wjcciklhsy\",\"name\":\"krdre\",\"type\":\"xolriy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,16 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateLinkHub response = manager.privateLinkHubs() - .define("zhwilzzh") - .withRegion("rhwv") - .withExistingResourceGroup("ukhsusmmorf") - .withTags(mapOf("rcl", "qggljkybs", "hxpcvrdnyeita", "vtzqnrbctbhp")) - .withProvisioningState("mriprlk") + .define("asvvoqsbpkfl") + .withRegion("umzued") + .withExistingResourceGroup("guhfupe") + .withTags(mapOf("gvqrnhyhlwcj", "bfvxovqkxiuxq", "bxrqrkijp", "qggjhf", "qztvx", "uqlsdx")) + .withProvisioningState("k") .create(); - Assertions.assertEquals("gspftesu", response.location()); - Assertions.assertEquals("vpvdylytcovqse", response.tags().get("srfjbdxzfxnx")); - Assertions.assertEquals("vsaaxwsp", response.provisioningState()); + Assertions.assertEquals("cswqa", response.location()); + Assertions.assertEquals("vtxigvjr", response.tags().get("tpgaeukya")); + Assertions.assertEquals("eojhtollhsvi", response.provisioningState()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteMockTests.java index 14394aed5677..f30760bbc0fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.privateLinkHubs().delete("cjubkhjozfymcwm", "upyvqyvliq", com.azure.core.util.Context.NONE); + manager.privateLinkHubs().delete("obsmf", "wiyjvzuko", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupWithResponseMockTests.java index b2789c7be33d..d6f20218e298 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkHubsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"elyicghf\",\"privateEndpointConnections\":[{\"id\":\"ssjyghsfx\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"mmgmqf\"}},{\"id\":\"fgvqcpdw\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"weyslandkdcdjh\"}},{\"id\":\"hghcgawnrrnqu\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"ireimseobf\"}}]},\"location\":\"xstcyilbvzm\",\"tags\":{\"xokjxebj\":\"jzlquz\",\"inzabwmvoglj\":\"b\",\"pgidnw\":\"v\",\"qoqpepiaeap\":\"ehaqidoyzltgio\"},\"id\":\"sergdtpe\",\"name\":\"nacyheqwb\",\"type\":\"qq\"}"; + = "{\"properties\":{\"provisioningState\":\"rebluimmbwxsf\",\"privateEndpointConnections\":[{\"id\":\"b\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"aokqk\"}},{\"id\":\"dbtwaokbavly\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"nwfrkebsmhpd\"}},{\"id\":\"dig\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"ksc\"}}]},\"location\":\"ctnanqimwbzxp\",\"tags\":{\"imouxwksqmudmfco\":\"dpkawnsnl\",\"kbqsjhbtqqvyfscy\":\"bicziuswswj\",\"fuy\":\"fwbivqvo\"},\"id\":\"wvbhlimbyq\",\"name\":\"crood\",\"type\":\"ikcdrdaasax\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateLinkHub response = manager.privateLinkHubs() - .getByResourceGroupWithResponse("ihzbdnpxpk", "dpr", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("vqar", "z", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xstcyilbvzm", response.location()); - Assertions.assertEquals("jzlquz", response.tags().get("xokjxebj")); - Assertions.assertEquals("elyicghf", response.provisioningState()); + Assertions.assertEquals("ctnanqimwbzxp", response.location()); + Assertions.assertEquals("dpkawnsnl", response.tags().get("imouxwksqmudmfco")); + Assertions.assertEquals("rebluimmbwxsf", response.provisioningState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupMockTests.java index 7f048fc7ef8c..21339ef0a65d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupMockTests.java @@ -22,7 +22,7 @@ public final class PrivateLinkHubsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"boohxbms\",\"privateEndpointConnections\":[{\"id\":\"sx\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"wuyqaeo\"}},{\"id\":\"jh\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"vhhdaurgho\"}},{\"id\":\"aexbkhxjxjo\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"rkdknko\"}}]},\"location\":\"ektm\",\"tags\":{\"gwcd\":\"omtzamicb\"},\"id\":\"zseznuxkeuairaa\",\"name\":\"m\",\"type\":\"lqjbedpfixlhupmo\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"jhpcn\",\"privateEndpointConnections\":[{\"id\":\"fsnggytexvzilm\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"wwwncknr\"}},{\"id\":\"ajlskzptj\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"ucyrt\"}},{\"id\":\"qlehmcgcjeinu\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"mvfejvqnttmbqd\"}},{\"id\":\"zfivfokpysthhzag\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"rlhgenuze\"}}]},\"location\":\"gvkvebaqszll\",\"tags\":{\"gmihzpimcqr\":\"smmd\",\"svtzarhzv\":\"nxtminklog\",\"bjwzzos\":\"nsqktc\"},\"id\":\"pkybtgl\",\"name\":\"kzpgaj\",\"type\":\"qjcemqbmf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.privateLinkHubs().listByResourceGroup("rjeizik", com.azure.core.util.Context.NONE); + = manager.privateLinkHubs().listByResourceGroup("zdpv", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ektm", response.iterator().next().location()); - Assertions.assertEquals("omtzamicb", response.iterator().next().tags().get("gwcd")); - Assertions.assertEquals("boohxbms", response.iterator().next().provisioningState()); + Assertions.assertEquals("gvkvebaqszll", response.iterator().next().location()); + Assertions.assertEquals("smmd", response.iterator().next().tags().get("gmihzpimcqr")); + Assertions.assertEquals("jhpcn", response.iterator().next().provisioningState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListMockTests.java index 01fe61fda053..75711d887494 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListMockTests.java @@ -22,7 +22,7 @@ public final class PrivateLinkHubsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"sejb\",\"privateEndpointConnections\":[{\"id\":\"aieswhddzy\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"epywyjlnldpxottd\"}}]},\"location\":\"i\",\"tags\":{\"weebiphryv\":\"qibzji\",\"w\":\"jw\"},\"id\":\"qsratjhd\",\"name\":\"zybspijhfrzgdkk\",\"type\":\"gv\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"awn\",\"privateEndpointConnections\":[{\"id\":\"n\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"xvjabjq\"}},{\"id\":\"xuyvymcn\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"abhjx\"}},{\"id\":\"qweuip\",\"properties\":{\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"m\"}}]},\"location\":\"tnsqxtlt\",\"tags\":{\"frakkldgrc\":\"rdpqgfhy\",\"jajqmatxjt\":\"fcmfcn\",\"pqagynoiprn\":\"elnzqgxxgfbbmt\"},\"id\":\"calincryqxz\",\"name\":\"aqzi\",\"type\":\"mqimiymqru\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,8 +33,8 @@ public void testList() throws Exception { PagedIterable response = manager.privateLinkHubs().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("i", response.iterator().next().location()); - Assertions.assertEquals("qibzji", response.iterator().next().tags().get("weebiphryv")); - Assertions.assertEquals("sejb", response.iterator().next().provisioningState()); + Assertions.assertEquals("tnsqxtlt", response.iterator().next().location()); + Assertions.assertEquals("rdpqgfhy", response.iterator().next().tags().get("frakkldgrc")); + Assertions.assertEquals("awn", response.iterator().next().provisioningState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceInnerTests.java index 076c98d8e3e2..d2c9561b6ed0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceInnerTests.java @@ -11,7 +11,7 @@ public final class PrivateLinkResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceInner model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"ipwhonowk\",\"requiredMembers\":[\"wankixzbi\",\"jeputtmrywn\",\"zoqftiyqzrnkcqvy\",\"lwh\"],\"requiredZoneNames\":[\"icohoqqnwvl\",\"yav\",\"hheunmmqhgyx\",\"konocu\"]},\"id\":\"oklyaxuconuq\",\"name\":\"zf\",\"type\":\"beypewrmjmw\"}") + "{\"properties\":{\"groupId\":\"ftwwaezkojvdc\",\"requiredMembers\":[\"oqouicybxarzgszu\",\"oxciqopidoamcio\",\"hkh\"],\"requiredZoneNames\":[\"khnzbonlw\",\"toego\",\"dwbwhkszzcmrvexz\",\"vbtqgsfraoyzk\"]},\"id\":\"owtlmnguxawqald\",\"name\":\"yuuximerqfobwyzn\",\"type\":\"bykutw\"}") .toObject(PrivateLinkResourceInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceListResultTests.java index ecd006c070ab..1d3f5c2e6cdb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceListResultTests.java @@ -11,7 +11,7 @@ public final class PrivateLinkResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"u\",\"requiredMembers\":[\"vfaxkffeiith\",\"vmezy\",\"shxmzsbbzoggigrx\",\"burvjxxjnspy\"],\"requiredZoneNames\":[\"koen\"]},\"id\":\"ou\",\"name\":\"nvudwtiukb\",\"type\":\"dng\"},{\"properties\":{\"groupId\":\"cipazyxoegukgjnp\",\"requiredMembers\":[\"gygev\",\"zntypmrb\"],\"requiredZoneNames\":[\"c\",\"r\",\"j\",\"dpydn\"]},\"id\":\"yhxdeoejzicwi\",\"name\":\"sjttgzfbish\",\"type\":\"bkh\"}],\"nextLink\":\"deyeamdphagalpbu\"}") + "{\"value\":[{\"properties\":{\"groupId\":\"bgdknnqv\",\"requiredMembers\":[\"nqntorudsgsahm\",\"yc\"],\"requiredZoneNames\":[\"uwjuetaeburuvdmo\",\"s\",\"zlxwabmqoefkifr\"]},\"id\":\"tpuqujmq\",\"name\":\"gkfbtndoaong\",\"type\":\"jcntuj\"}],\"nextLink\":\"c\"}") .toObject(PrivateLinkResourceListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcePropertiesTests.java index ddfe79fea810..3da744d800dc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcePropertiesTests.java @@ -11,7 +11,7 @@ public final class PrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"jektcxsenh\",\"requiredMembers\":[\"s\",\"frzpwvlqdqgb\",\"qylihkaetckt\",\"fcivfsnkym\"],\"requiredZoneNames\":[\"qhjfbebr\",\"cxerf\",\"wutttxfvjrbi\"]}") + "{\"groupId\":\"hpagm\",\"requiredMembers\":[\"kdsnfdsdoakgtdl\",\"kkze\",\"dlhewp\",\"sdsttwvog\"],\"requiredZoneNames\":[\"ejdcngqqmoakuf\",\"m\"]}") .toObject(PrivateLinkResourceProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetWithResponseMockTests.java similarity index 76% rename from sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java rename to sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetWithResponseMockTests.java index c4897bad549f..9e6a0d184db4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetWithResponseMockTests.java @@ -16,11 +16,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class PrivateLinkResourcesOperationsGetWithResponseMockTests { +public final class PrivateLinkResourcesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"groupId\":\"lwgdhuruz\",\"requiredMembers\":[\"arogatmolji\"],\"requiredZoneNames\":[\"pinm\",\"vfkn\",\"erzztrkn\",\"j\"]},\"id\":\"lugdybnhrxlelf\",\"name\":\"hkeizcp\",\"type\":\"htdm\"}"; + = "{\"properties\":{\"groupId\":\"hnuqndaizu\",\"requiredMembers\":[\"huytuszx\"],\"requiredZoneNames\":[\"vtvegwqiukvzw\"]},\"id\":\"dwttha\",\"name\":\"kgkskjivbsshaj\",\"type\":\"fukpeexpgeu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,8 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PrivateLinkResource response = manager.privateLinkResourcesOperations() - .getWithResponse("zbnobr", "lpbcjtrpz", "yudivbxnhsqeaeo", com.azure.core.util.Context.NONE) + PrivateLinkResource response = manager.privateLinkResources() + .getWithResponse("bcbcpz", "rpzeqac", "ldtzmpypefcp", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListMockTests.java similarity index 76% rename from sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsListMockTests.java rename to sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListMockTests.java index b6cf8149dece..52330f9331c6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListMockTests.java @@ -17,11 +17,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class PrivateLinkResourcesOperationsListMockTests { +public final class PrivateLinkResourcesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"wmlmh\",\"requiredMembers\":[\"tqeahje\",\"vragpokddx\"],\"requiredZoneNames\":[\"h\",\"vgua\",\"tpt\",\"k\"]},\"id\":\"wkqyns\",\"name\":\"gbvoffbkk\",\"type\":\"vdxaexqokmyrljia\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"qirccj\",\"requiredMembers\":[\"kcgxvrpjlvc\",\"uod\",\"cpunettepdjx\",\"eskoy\"],\"requiredZoneNames\":[\"ylpckaewsedv\",\"skwxe\"]},\"id\":\"qphr\",\"name\":\"fn\",\"type\":\"hctmjtsgh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.privateLinkResourcesOperations().list("jcmrnkfm", "h", com.azure.core.util.Context.NONE); + = manager.privateLinkResources().list("cvumepjpbi", "nzpphepife", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesPropertiesTests.java deleted file mode 100644 index 64f2eba367ed..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesPropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourcesProperties; - -public final class PrivateLinkResourcesPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourcesProperties model = BinaryData.fromString( - "{\"groupId\":\"czskoswoqiqazu\",\"requiredMembers\":[\"xzkrrcoi\",\"sbamnppcc\"],\"requiredZoneNames\":[\"ztdsbeza\"],\"provisioningState\":\"Succeeded\"}") - .toObject(PrivateLinkResourcesProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourcesProperties model = new PrivateLinkResourcesProperties(); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourcesProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesTests.java deleted file mode 100644 index 7665d0fec0c5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; -import com.azure.resourcemanager.synapse.models.PrivateLinkResources; -import java.util.Arrays; - -public final class PrivateLinkResourcesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResources model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"ydkygywezskieca\",\"requiredMembers\":[\"zmxieqvdsmaklix\",\"cahyhx\"],\"requiredZoneNames\":[\"bx\",\"woijpodtbl\",\"pkkwj\",\"jodqhykincn\"],\"provisioningState\":\"Failed\"},\"id\":\"hllizhceumoq\",\"name\":\"dkadppyibn\",\"type\":\"qladywrxwhydtlu\"},{\"properties\":{\"groupId\":\"ds\",\"requiredMembers\":[\"nuyemlowuo\",\"hlxlnwyrmou\",\"blgmokzkltrfowtd\",\"rfmvlihcvjdrqcrj\"],\"requiredZoneNames\":[\"ftukvhd\"],\"provisioningState\":\"Moving\"},\"id\":\"ojbf\",\"name\":\"zd\",\"type\":\"fnjyix\"}]}") - .toObject(PrivateLinkResources.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResources model = new PrivateLinkResources().withValue( - Arrays.asList(new KustoPoolPrivateLinkResourcesInner(), new KustoPoolPrivateLinkResourcesInner())); - model = BinaryData.fromObject(model).toObject(PrivateLinkResources.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkServiceConnectionStateTests.java index b24977d0d6f5..392d3a8d0cf1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkServiceConnectionStateTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkServiceConnectionStateTests.java @@ -12,18 +12,18 @@ public final class PrivateLinkServiceConnectionStateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkServiceConnectionState model = BinaryData - .fromString("{\"status\":\"jpkcattpng\",\"description\":\"rcczsqpjhvmd\",\"actionsRequired\":\"v\"}") + .fromString("{\"status\":\"dkcrodt\",\"description\":\"nfwjlfltkacjvefk\",\"actionsRequired\":\"foakgg\"}") .toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals("jpkcattpng", model.status()); - Assertions.assertEquals("rcczsqpjhvmd", model.description()); + Assertions.assertEquals("dkcrodt", model.status()); + Assertions.assertEquals("nfwjlfltkacjvefk", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateLinkServiceConnectionState model - = new PrivateLinkServiceConnectionState().withStatus("jpkcattpng").withDescription("rcczsqpjhvmd"); + = new PrivateLinkServiceConnectionState().withStatus("dkcrodt").withDescription("nfwjlfltkacjvefk"); model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals("jpkcattpng", model.status()); - Assertions.assertEquals("rcczsqpjhvmd", model.description()); + Assertions.assertEquals("dkcrodt", model.status()); + Assertions.assertEquals("nfwjlfltkacjvefk", model.description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PurviewConfigurationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PurviewConfigurationTests.java index 76322cbad309..ce5aaf9c1abc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PurviewConfigurationTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PurviewConfigurationTests.java @@ -12,14 +12,14 @@ public final class PurviewConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PurviewConfiguration model - = BinaryData.fromString("{\"purviewResourceId\":\"vgjrwhr\"}").toObject(PurviewConfiguration.class); - Assertions.assertEquals("vgjrwhr", model.purviewResourceId()); + = BinaryData.fromString("{\"purviewResourceId\":\"vqtanarfdlpuk\"}").toObject(PurviewConfiguration.class); + Assertions.assertEquals("vqtanarfdlpuk", model.purviewResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PurviewConfiguration model = new PurviewConfiguration().withPurviewResourceId("vgjrwhr"); + PurviewConfiguration model = new PurviewConfiguration().withPurviewResourceId("vqtanarfdlpuk"); model = BinaryData.fromObject(model).toObject(PurviewConfiguration.class); - Assertions.assertEquals("vgjrwhr", model.purviewResourceId()); + Assertions.assertEquals("vqtanarfdlpuk", model.purviewResourceId()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabasePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabasePropertiesTests.java deleted file mode 100644 index 7d2fdd36ec06..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabasePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ReadOnlyFollowingDatabaseProperties; -import java.time.Duration; -import org.junit.jupiter.api.Assertions; - -public final class ReadOnlyFollowingDatabasePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReadOnlyFollowingDatabaseProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Running\",\"softDeletePeriod\":\"PT211H56M23S\",\"hotCachePeriod\":\"PT219H56M43S\",\"statistics\":{\"size\":62.897457},\"leaderClusterResourceId\":\"nl\",\"attachedDatabaseConfigurationName\":\"psimsf\",\"principalsModificationKind\":\"None\"}") - .toObject(ReadOnlyFollowingDatabaseProperties.class); - Assertions.assertEquals(Duration.parse("PT219H56M43S"), model.hotCachePeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReadOnlyFollowingDatabaseProperties model - = new ReadOnlyFollowingDatabaseProperties().withHotCachePeriod(Duration.parse("PT219H56M43S")); - model = BinaryData.fromObject(model).toObject(ReadOnlyFollowingDatabaseProperties.class); - Assertions.assertEquals(Duration.parse("PT219H56M43S"), model.hotCachePeriod()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabaseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabaseTests.java deleted file mode 100644 index e70a3dc681df..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabaseTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ReadOnlyFollowingDatabase; -import java.time.Duration; -import org.junit.jupiter.api.Assertions; - -public final class ReadOnlyFollowingDatabaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReadOnlyFollowingDatabase model = BinaryData.fromString( - "{\"kind\":\"ReadOnlyFollowing\",\"properties\":{\"provisioningState\":\"Deleting\",\"softDeletePeriod\":\"PT69H41M9S\",\"hotCachePeriod\":\"PT193H9M52S\",\"statistics\":{\"size\":7.7127876},\"leaderClusterResourceId\":\"fdyjdu\",\"attachedDatabaseConfigurationName\":\"pyszekb\",\"principalsModificationKind\":\"Replace\"},\"location\":\"aaggkre\",\"id\":\"frnuybffljfi\",\"name\":\"mreoagsqtaad\",\"type\":\"srexxfavs\"}") - .toObject(ReadOnlyFollowingDatabase.class); - Assertions.assertEquals("aaggkre", model.location()); - Assertions.assertEquals(Duration.parse("PT193H9M52S"), model.hotCachePeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReadOnlyFollowingDatabase model - = new ReadOnlyFollowingDatabase().withLocation("aaggkre").withHotCachePeriod(Duration.parse("PT193H9M52S")); - model = BinaryData.fromObject(model).toObject(ReadOnlyFollowingDatabase.class); - Assertions.assertEquals("aaggkre", model.location()); - Assertions.assertEquals(Duration.parse("PT193H9M52S"), model.hotCachePeriod()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabasePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabasePropertiesTests.java deleted file mode 100644 index 7523822293b7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabasePropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ReadWriteDatabaseProperties; -import java.time.Duration; -import org.junit.jupiter.api.Assertions; - -public final class ReadWriteDatabasePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReadWriteDatabaseProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Moving\",\"softDeletePeriod\":\"PT236H14M47S\",\"hotCachePeriod\":\"PT159H56M42S\",\"statistics\":{\"size\":97.58752},\"isFollowed\":true}") - .toObject(ReadWriteDatabaseProperties.class); - Assertions.assertEquals(Duration.parse("PT236H14M47S"), model.softDeletePeriod()); - Assertions.assertEquals(Duration.parse("PT159H56M42S"), model.hotCachePeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReadWriteDatabaseProperties model - = new ReadWriteDatabaseProperties().withSoftDeletePeriod(Duration.parse("PT236H14M47S")) - .withHotCachePeriod(Duration.parse("PT159H56M42S")); - model = BinaryData.fromObject(model).toObject(ReadWriteDatabaseProperties.class); - Assertions.assertEquals(Duration.parse("PT236H14M47S"), model.softDeletePeriod()); - Assertions.assertEquals(Duration.parse("PT159H56M42S"), model.hotCachePeriod()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabaseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabaseTests.java deleted file mode 100644 index 745fb2e5733a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabaseTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; -import java.time.Duration; -import org.junit.jupiter.api.Assertions; - -public final class ReadWriteDatabaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReadWriteDatabase model = BinaryData.fromString( - "{\"kind\":\"ReadWrite\",\"properties\":{\"provisioningState\":\"Running\",\"softDeletePeriod\":\"PT152H35M55S\",\"hotCachePeriod\":\"PT53H16M28S\",\"statistics\":{\"size\":34.78346},\"isFollowed\":true},\"location\":\"jg\",\"id\":\"fepxyihpqadag\",\"name\":\"hrdicxdwyjfo\",\"type\":\"xwyovcxjsgbip\"}") - .toObject(ReadWriteDatabase.class); - Assertions.assertEquals("jg", model.location()); - Assertions.assertEquals(Duration.parse("PT152H35M55S"), model.softDeletePeriod()); - Assertions.assertEquals(Duration.parse("PT53H16M28S"), model.hotCachePeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReadWriteDatabase model = new ReadWriteDatabase().withLocation("jg") - .withSoftDeletePeriod(Duration.parse("PT152H35M55S")) - .withHotCachePeriod(Duration.parse("PT53H16M28S")); - model = BinaryData.fromObject(model).toObject(ReadWriteDatabase.class); - Assertions.assertEquals("jg", model.location()); - Assertions.assertEquals(Duration.parse("PT152H35M55S"), model.softDeletePeriod()); - Assertions.assertEquals(Duration.parse("PT53H16M28S"), model.hotCachePeriod()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateListTests.java index 7bc02743b76f..8b4ca7c601ce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateListTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateListTests.java @@ -15,25 +15,30 @@ public final class RecommendedSensitivityLabelUpdateListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecommendedSensitivityLabelUpdateList model = BinaryData.fromString( - "{\"operations\":[{\"properties\":{\"op\":\"enable\",\"schema\":\"nhlmctlpdng\",\"table\":\"tvgbmhrixkwmy\",\"column\":\"jejveg\"},\"id\":\"hbpnaixexccbd\",\"name\":\"eaxhcexdrrvqahqk\",\"type\":\"htpwij\"}]}") + "{\"operations\":[{\"properties\":{\"op\":\"disable\",\"schema\":\"lcdisd\",\"table\":\"sfjbjsvg\",\"column\":\"rwhryvycytd\"},\"id\":\"lxgccknfnwmbtm\",\"name\":\"pdvjdhttzaefedx\",\"type\":\"hchrphkmcrjdqn\"},{\"properties\":{\"op\":\"disable\",\"schema\":\"zpbgtgkylkdg\",\"table\":\"rjeuut\",\"column\":\"wxezwzhok\"},\"id\":\"bwnhhtql\",\"name\":\"ehgpp\",\"type\":\"pifhpfeoajvgcxtx\"}]}") .toObject(RecommendedSensitivityLabelUpdateList.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.operations().get(0).op()); - Assertions.assertEquals("nhlmctlpdng", model.operations().get(0).schema()); - Assertions.assertEquals("tvgbmhrixkwmy", model.operations().get(0).table()); - Assertions.assertEquals("jejveg", model.operations().get(0).column()); + Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.DISABLE, model.operations().get(0).op()); + Assertions.assertEquals("lcdisd", model.operations().get(0).schema()); + Assertions.assertEquals("sfjbjsvg", model.operations().get(0).table()); + Assertions.assertEquals("rwhryvycytd", model.operations().get(0).column()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RecommendedSensitivityLabelUpdateList model = new RecommendedSensitivityLabelUpdateList().withOperations( - Arrays.asList(new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("nhlmctlpdng") - .withTable("tvgbmhrixkwmy") - .withColumn("jejveg"))); + RecommendedSensitivityLabelUpdateList model + = new RecommendedSensitivityLabelUpdateList().withOperations(Arrays.asList( + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) + .withSchema("lcdisd") + .withTable("sfjbjsvg") + .withColumn("rwhryvycytd"), + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) + .withSchema("zpbgtgkylkdg") + .withTable("rjeuut") + .withColumn("wxezwzhok"))); model = BinaryData.fromObject(model).toObject(RecommendedSensitivityLabelUpdateList.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.operations().get(0).op()); - Assertions.assertEquals("nhlmctlpdng", model.operations().get(0).schema()); - Assertions.assertEquals("tvgbmhrixkwmy", model.operations().get(0).table()); - Assertions.assertEquals("jejveg", model.operations().get(0).column()); + Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.DISABLE, model.operations().get(0).op()); + Assertions.assertEquals("lcdisd", model.operations().get(0).schema()); + Assertions.assertEquals("sfjbjsvg", model.operations().get(0).table()); + Assertions.assertEquals("rwhryvycytd", model.operations().get(0).column()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdatePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdatePropertiesTests.java index 2716ea63ea69..15328e599d68 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdatePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdatePropertiesTests.java @@ -13,25 +13,25 @@ public final class RecommendedSensitivityLabelUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecommendedSensitivityLabelUpdateProperties model = BinaryData - .fromString("{\"op\":\"enable\",\"schema\":\"jglikkxwslolb\",\"table\":\"pvuzlmv\",\"column\":\"elfk\"}") + .fromString("{\"op\":\"disable\",\"schema\":\"sldrizetpwbral\",\"table\":\"libph\",\"column\":\"qzmiza\"}") .toObject(RecommendedSensitivityLabelUpdateProperties.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.op()); - Assertions.assertEquals("jglikkxwslolb", model.schema()); - Assertions.assertEquals("pvuzlmv", model.table()); - Assertions.assertEquals("elfk", model.column()); + Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.DISABLE, model.op()); + Assertions.assertEquals("sldrizetpwbral", model.schema()); + Assertions.assertEquals("libph", model.table()); + Assertions.assertEquals("qzmiza", model.column()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RecommendedSensitivityLabelUpdateProperties model - = new RecommendedSensitivityLabelUpdateProperties().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("jglikkxwslolb") - .withTable("pvuzlmv") - .withColumn("elfk"); + = new RecommendedSensitivityLabelUpdateProperties().withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) + .withSchema("sldrizetpwbral") + .withTable("libph") + .withColumn("qzmiza"); model = BinaryData.fromObject(model).toObject(RecommendedSensitivityLabelUpdateProperties.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.op()); - Assertions.assertEquals("jglikkxwslolb", model.schema()); - Assertions.assertEquals("pvuzlmv", model.table()); - Assertions.assertEquals("elfk", model.column()); + Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.DISABLE, model.op()); + Assertions.assertEquals("sldrizetpwbral", model.schema()); + Assertions.assertEquals("libph", model.table()); + Assertions.assertEquals("qzmiza", model.column()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateTests.java index 9dcbd01f26bf..7d9e0ac6781c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateTests.java @@ -13,25 +13,25 @@ public final class RecommendedSensitivityLabelUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecommendedSensitivityLabelUpdate model = BinaryData.fromString( - "{\"properties\":{\"op\":\"enable\",\"schema\":\"jsvfycxzbfvoowv\",\"table\":\"vmtgjqppy\",\"column\":\"s\"},\"id\":\"ronzmyhgfip\",\"name\":\"sxkm\",\"type\":\"waekrrjreafxtsgu\"}") + "{\"properties\":{\"op\":\"enable\",\"schema\":\"heafidlt\",\"table\":\"gsresmkssj\",\"column\":\"oiftxfkfwegprh\"},\"id\":\"tillucbiqtg\",\"name\":\"q\",\"type\":\"hm\"}") .toObject(RecommendedSensitivityLabelUpdate.class); Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.op()); - Assertions.assertEquals("jsvfycxzbfvoowv", model.schema()); - Assertions.assertEquals("vmtgjqppy", model.table()); - Assertions.assertEquals("s", model.column()); + Assertions.assertEquals("heafidlt", model.schema()); + Assertions.assertEquals("gsresmkssj", model.table()); + Assertions.assertEquals("oiftxfkfwegprh", model.column()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RecommendedSensitivityLabelUpdate model = new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("jsvfycxzbfvoowv") - .withTable("vmtgjqppy") - .withColumn("s"); + .withSchema("heafidlt") + .withTable("gsresmkssj") + .withColumn("oiftxfkfwegprh"); model = BinaryData.fromObject(model).toObject(RecommendedSensitivityLabelUpdate.class); Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.op()); - Assertions.assertEquals("jsvfycxzbfvoowv", model.schema()); - Assertions.assertEquals("vmtgjqppy", model.table()); - Assertions.assertEquals("s", model.column()); + Assertions.assertEquals("heafidlt", model.schema()); + Assertions.assertEquals("gsresmkssj", model.table()); + Assertions.assertEquals("oiftxfkfwegprh", model.column()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolInnerTests.java index 35924f965061..28d106168279 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolInnerTests.java @@ -11,7 +11,7 @@ public final class RecoverableSqlPoolInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoverableSqlPoolInner model = BinaryData.fromString( - "{\"properties\":{\"edition\":\"cqusr\",\"serviceLevelObjective\":\"etnwsdtutnw\",\"elasticPoolName\":\"uycvuzhyrmewip\",\"lastAvailableBackupDate\":\"2021-09-17T08:14:05Z\"},\"id\":\"k\",\"name\":\"xukuqgsj\",\"type\":\"xundxgk\"}") + "{\"properties\":{\"edition\":\"ncnwfepbnwgf\",\"serviceLevelObjective\":\"jgcgbjbgdlfgtdys\",\"elasticPoolName\":\"quflqbctq\",\"lastAvailableBackupDate\":\"2021-06-27T00:38Z\"},\"id\":\"zjrwdkqze\",\"name\":\"yjleziunjx\",\"type\":\"fza\"}") .toObject(RecoverableSqlPoolInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolListResultTests.java index 43dacc8356a2..8915ec4812bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolListResultTests.java @@ -11,7 +11,7 @@ public final class RecoverableSqlPoolListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoverableSqlPoolListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"edition\":\"pgfewetwlyx\",\"serviceLevelObjective\":\"cxy\",\"elasticPoolName\":\"hdjhlimmbcx\",\"lastAvailableBackupDate\":\"2021-11-18T02:45:39Z\"},\"id\":\"cporxvxcjz\",\"name\":\"qizxfpxtgqscjavf\",\"type\":\"juhdqazkmtgguwpi\"},{\"properties\":{\"edition\":\"jcivmmg\",\"serviceLevelObjective\":\"cf\",\"elasticPoolName\":\"rxgkne\",\"lastAvailableBackupDate\":\"2021-03-10T19:40:09Z\"},\"id\":\"inzqodfvpgs\",\"name\":\"oxgsgbpfgzdjtx\",\"type\":\"zflbqvg\"}],\"nextLink\":\"vl\"}") + "{\"value\":[{\"properties\":{\"edition\":\"nixjawrtmjfjmy\",\"serviceLevelObjective\":\"xlzhcoxovnekh\",\"elasticPoolName\":\"lusfnrdtjxtxrdcq\",\"lastAvailableBackupDate\":\"2021-05-25T21:09:17Z\"},\"id\":\"idttgepus\",\"name\":\"vyjtcvu\",\"type\":\"kasizie\"},{\"properties\":{\"edition\":\"ughtuqfecjxeygtu\",\"serviceLevelObjective\":\"uicbuewmrsw\",\"elasticPoolName\":\"lx\",\"lastAvailableBackupDate\":\"2021-07-01T09:20:25Z\"},\"id\":\"hwpusxj\",\"name\":\"aqehg\",\"type\":\"dohzjq\"}],\"nextLink\":\"ucoig\"}") .toObject(RecoverableSqlPoolListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolPropertiesTests.java index 6adec34f6f06..5a30394cd330 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolPropertiesTests.java @@ -11,7 +11,7 @@ public final class RecoverableSqlPoolPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoverableSqlPoolProperties model = BinaryData.fromString( - "{\"edition\":\"wzhhzjhfjmhvvmuv\",\"serviceLevelObjective\":\"mun\",\"elasticPoolName\":\"sx\",\"lastAvailableBackupDate\":\"2020-12-27T00:07:16Z\"}") + "{\"edition\":\"kwcegyamlbn\",\"serviceLevelObjective\":\"qa\",\"elasticPoolName\":\"jvpilguooqja\",\"lastAvailableBackupDate\":\"2021-08-17T16:01:08Z\"}") .toObject(RecoverableSqlPoolProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllFirewallRulesOperationResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllFirewallRulesOperationResponseInnerTests.java index 1a013145a30d..91303b150350 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllFirewallRulesOperationResponseInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllFirewallRulesOperationResponseInnerTests.java @@ -11,16 +11,17 @@ public final class ReplaceAllFirewallRulesOperationResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ReplaceAllFirewallRulesOperationResponseInner model = BinaryData.fromString("{\"operationId\":\"rtfw\"}") - .toObject(ReplaceAllFirewallRulesOperationResponseInner.class); - Assertions.assertEquals("rtfw", model.operationId()); + ReplaceAllFirewallRulesOperationResponseInner model + = BinaryData.fromString("{\"operationId\":\"mdectehfiqscjey\"}") + .toObject(ReplaceAllFirewallRulesOperationResponseInner.class); + Assertions.assertEquals("mdectehfiqscjey", model.operationId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ReplaceAllFirewallRulesOperationResponseInner model - = new ReplaceAllFirewallRulesOperationResponseInner().withOperationId("rtfw"); + = new ReplaceAllFirewallRulesOperationResponseInner().withOperationId("mdectehfiqscjey"); model = BinaryData.fromObject(model).toObject(ReplaceAllFirewallRulesOperationResponseInner.class); - Assertions.assertEquals("rtfw", model.operationId()); + Assertions.assertEquals("mdectehfiqscjey", model.operationId()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllIpFirewallRulesRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllIpFirewallRulesRequestTests.java index 16e288f43b49..de2289455943 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllIpFirewallRulesRequestTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllIpFirewallRulesRequestTests.java @@ -15,21 +15,22 @@ public final class ReplaceAllIpFirewallRulesRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplaceAllIpFirewallRulesRequest model = BinaryData.fromString( - "{\"ipFirewallRules\":{\"xqhabi\":{\"endIpAddress\":\"fhfcb\",\"provisioningState\":\"DeleteError\",\"startIpAddress\":\"git\"},\"rkxvdum\":{\"endIpAddress\":\"ikxwc\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"cnpqxuhivyqniwby\"}}}") + "{\"ipFirewallRules\":{\"dkcglhsl\":{\"endIpAddress\":\"mohctb\",\"provisioningState\":\"Deleting\",\"startIpAddress\":\"wxdndnvowgujjug\"},\"kh\":{\"endIpAddress\":\"jdyggdtji\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"uofqwe\"},\"cibvyvdcsitynn\":{\"endIpAddress\":\"n\",\"provisioningState\":\"Deleting\",\"startIpAddress\":\"exfwhy\"}}}") .toObject(ReplaceAllIpFirewallRulesRequest.class); - Assertions.assertEquals("fhfcb", model.ipFirewallRules().get("xqhabi").endIpAddress()); - Assertions.assertEquals("git", model.ipFirewallRules().get("xqhabi").startIpAddress()); + Assertions.assertEquals("mohctb", model.ipFirewallRules().get("dkcglhsl").endIpAddress()); + Assertions.assertEquals("wxdndnvowgujjug", model.ipFirewallRules().get("dkcglhsl").startIpAddress()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ReplaceAllIpFirewallRulesRequest model - = new ReplaceAllIpFirewallRulesRequest().withIpFirewallRules(mapOf("xqhabi", - new IpFirewallRuleProperties().withEndIpAddress("fhfcb").withStartIpAddress("git"), "rkxvdum", - new IpFirewallRuleProperties().withEndIpAddress("ikxwc").withStartIpAddress("cnpqxuhivyqniwby"))); + = new ReplaceAllIpFirewallRulesRequest().withIpFirewallRules(mapOf("dkcglhsl", + new IpFirewallRuleProperties().withEndIpAddress("mohctb").withStartIpAddress("wxdndnvowgujjug"), "kh", + new IpFirewallRuleProperties().withEndIpAddress("jdyggdtji").withStartIpAddress("uofqwe"), + "cibvyvdcsitynn", new IpFirewallRuleProperties().withEndIpAddress("n").withStartIpAddress("exfwhy"))); model = BinaryData.fromObject(model).toObject(ReplaceAllIpFirewallRulesRequest.class); - Assertions.assertEquals("fhfcb", model.ipFirewallRules().get("xqhabi").endIpAddress()); - Assertions.assertEquals("git", model.ipFirewallRules().get("xqhabi").startIpAddress()); + Assertions.assertEquals("mohctb", model.ipFirewallRules().get("dkcglhsl").endIpAddress()); + Assertions.assertEquals("wxdndnvowgujjug", model.ipFirewallRules().get("dkcglhsl").startIpAddress()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkInnerTests.java index c1b92038326d..18742bbac68c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkInnerTests.java @@ -11,7 +11,7 @@ public final class ReplicationLinkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplicationLinkInner model = BinaryData.fromString( - "{\"location\":\"wifto\",\"properties\":{\"isTerminationAllowed\":false,\"replicationMode\":\"uvksgplsaknynfsy\",\"partnerServer\":\"jphuopxodlqi\",\"partnerDatabase\":\"torzih\",\"partnerLocation\":\"osjswsr\",\"role\":\"NonReadableSecondary\",\"partnerRole\":\"Primary\",\"startTime\":\"2021-03-30T08:07:03Z\",\"percentComplete\":671314930,\"replicationState\":\"CATCH_UP\"},\"id\":\"ckqqzqioxiysui\",\"name\":\"zynkedya\",\"type\":\"rwyhqmibzyhwitsm\"}") + "{\"location\":\"lmywwtkgkxnyed\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"udtjuewbc\",\"partnerServer\":\"xuuwhcj\",\"partnerDatabase\":\"ccybvp\",\"partnerLocation\":\"akkud\",\"role\":\"NonReadableSecondary\",\"partnerRole\":\"Copy\",\"startTime\":\"2021-05-27T09:18:41Z\",\"percentComplete\":704877183,\"replicationState\":\"CATCH_UP\"},\"id\":\"stcyohpfkyrkdbd\",\"name\":\"iogsjkmnwq\",\"type\":\"nobaiyhddviacegf\"}") .toObject(ReplicationLinkInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkListResultTests.java index 981240f31a88..b66fed70198f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkListResultTests.java @@ -13,15 +13,14 @@ public final class ReplicationLinkListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplicationLinkListResult model = BinaryData.fromString( - "{\"value\":[{\"location\":\"qdcvdrhvoo\",\"properties\":{\"isTerminationAllowed\":false,\"replicationMode\":\"obzdopcjwvnhdl\",\"partnerServer\":\"mgxcxrslpm\",\"partnerDatabase\":\"wuoegrpk\",\"partnerLocation\":\"wniyqsluicpd\",\"role\":\"Primary\",\"partnerRole\":\"Primary\",\"startTime\":\"2021-04-02T01:13:45Z\",\"percentComplete\":553521281,\"replicationState\":\"SUSPENDED\"},\"id\":\"axmodfvuef\",\"name\":\"wsbpfvm\",\"type\":\"yhrfouyftaakcpw\"},{\"location\":\"zvqtmnubexkp\",\"properties\":{\"isTerminationAllowed\":false,\"replicationMode\":\"ndjmquxvyp\",\"partnerServer\":\"gkopkwhojvpajqgx\",\"partnerDatabase\":\"mocmbqfqvmk\",\"partnerLocation\":\"oz\",\"role\":\"Primary\",\"partnerRole\":\"Secondary\",\"startTime\":\"2021-03-25T16:14:09Z\",\"percentComplete\":1009044014,\"replicationState\":\"PENDING\"},\"id\":\"yat\",\"name\":\"dckcbc\",\"type\":\"ejrjxgciqibrho\"},{\"location\":\"sdqrhzoymibmrq\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"wfluszdt\",\"partnerServer\":\"rkwofyyvoqa\",\"partnerDatabase\":\"iexpbtgiwbwo\",\"partnerLocation\":\"washr\",\"role\":\"Primary\",\"partnerRole\":\"Copy\",\"startTime\":\"2021-03-26T12:56:23Z\",\"percentComplete\":1989622567,\"replicationState\":\"PENDING\"},\"id\":\"okulpiujwa\",\"name\":\"sipqii\",\"type\":\"byuqerpqlp\"},{\"location\":\"cciuqgbdbutau\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"uwhhmhykojoxafn\",\"partnerServer\":\"lpichk\",\"partnerDatabase\":\"mkcdyhbpkkpwdre\",\"partnerLocation\":\"ovvqfovljxywsu\",\"role\":\"Copy\",\"partnerRole\":\"Secondary\",\"startTime\":\"2021-11-22T09:18:13Z\",\"percentComplete\":1457668224,\"replicationState\":\"PENDING\"},\"id\":\"adgvraeaene\",\"name\":\"nzar\",\"type\":\"wlquuijfqkace\"}],\"nextLink\":\"ipfpubji\"}") + "{\"value\":[{\"location\":\"vjlfrqtt\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"atnwxyiopi\",\"partnerServer\":\"qqfkuv\",\"partnerDatabase\":\"xkdmligo\",\"partnerLocation\":\"brxk\",\"role\":\"Secondary\",\"partnerRole\":\"Primary\",\"startTime\":\"2021-03-02T16:29:31Z\",\"percentComplete\":181073134,\"replicationState\":\"SEEDING\"},\"id\":\"bgo\",\"name\":\"rb\",\"type\":\"eoybfhjxakvvjgs\"}],\"nextLink\":\"r\"}") .toObject(ReplicationLinkListResult.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ReplicationLinkListResult model - = new ReplicationLinkListResult().withValue(Arrays.asList(new ReplicationLinkInner(), - new ReplicationLinkInner(), new ReplicationLinkInner(), new ReplicationLinkInner())); + = new ReplicationLinkListResult().withValue(Arrays.asList(new ReplicationLinkInner())); model = BinaryData.fromObject(model).toObject(ReplicationLinkListResult.class); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkPropertiesTests.java index a805eb6eb8f5..bebce2439f7e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkPropertiesTests.java @@ -11,7 +11,7 @@ public final class ReplicationLinkPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplicationLinkProperties model = BinaryData.fromString( - "{\"isTerminationAllowed\":true,\"replicationMode\":\"npcdpumnzgm\",\"partnerServer\":\"nmabik\",\"partnerDatabase\":\"orgjhxbldt\",\"partnerLocation\":\"wrlkdmtn\",\"role\":\"Source\",\"partnerRole\":\"Primary\",\"startTime\":\"2021-07-06T10:29:53Z\",\"percentComplete\":643963707,\"replicationState\":\"SEEDING\"}") + "{\"isTerminationAllowed\":true,\"replicationMode\":\"fpmvmemfnczd\",\"partnerServer\":\"vbalxlllc\",\"partnerDatabase\":\"odbzevwrdnhf\",\"partnerLocation\":\"uvsj\",\"role\":\"Secondary\",\"partnerRole\":\"Primary\",\"startTime\":\"2021-03-18T15:17:38Z\",\"percentComplete\":2128270651,\"replicationState\":\"CATCH_UP\"}") .toObject(ReplicationLinkProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolInnerTests.java index 4e9909ab0ec3..446a9a024e6c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolInnerTests.java @@ -11,7 +11,7 @@ public final class RestorableDroppedSqlPoolInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestorableDroppedSqlPoolInner model = BinaryData.fromString( - "{\"location\":\"bxyijddtvq\",\"properties\":{\"databaseName\":\"adijaeukmrsie\",\"edition\":\"pndzaapmudqmeq\",\"maxSizeBytes\":\"gp\",\"serviceLevelObjective\":\"udqwyxebeybpmzz\",\"elasticPoolName\":\"tffyaqit\",\"creationDate\":\"2021-10-04T17:07:23Z\",\"deletionDate\":\"2021-08-09T17:56:40Z\",\"earliestRestoreDate\":\"2021-10-11T05:31:16Z\"},\"id\":\"aqh\",\"name\":\"seufuqy\",\"type\":\"xpdlcgqlsis\"}") + "{\"location\":\"jhbzxliohrdddtf\",\"properties\":{\"databaseName\":\"ba\",\"edition\":\"cbb\",\"maxSizeBytes\":\"qcy\",\"serviceLevelObjective\":\"apqofyuicdhz\",\"elasticPoolName\":\"ybww\",\"creationDate\":\"2021-11-26T17:52:15Z\",\"deletionDate\":\"2021-10-10T21:16:01Z\",\"earliestRestoreDate\":\"2021-03-28T14:58:27Z\"},\"id\":\"dmhm\",\"name\":\"ffplfmuvapckcc\",\"type\":\"rv\"}") .toObject(RestorableDroppedSqlPoolInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolListResultTests.java index b36f7f186d46..8c53fd80248c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolListResultTests.java @@ -13,15 +13,14 @@ public final class RestorableDroppedSqlPoolListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestorableDroppedSqlPoolListResult model = BinaryData.fromString( - "{\"value\":[{\"location\":\"nzlrpiqywncvjt\",\"properties\":{\"databaseName\":\"ofizehtdhgbj\",\"edition\":\"reljeamur\",\"maxSizeBytes\":\"mlovuanashcxl\",\"serviceLevelObjective\":\"jerbdkelvidizozs\",\"elasticPoolName\":\"ccxjm\",\"creationDate\":\"2021-06-04T20:01:35Z\",\"deletionDate\":\"2021-06-26T18:58:09Z\",\"earliestRestoreDate\":\"2021-08-14T04:15:27Z\"},\"id\":\"n\",\"name\":\"ypuuwwltvuqjctze\",\"type\":\"keifzzhmkdasv\"},{\"location\":\"yhbxcudchxgs\",\"properties\":{\"databaseName\":\"ldforobwj\",\"edition\":\"izbfhfovvacq\",\"maxSizeBytes\":\"tuodxeszabbelaw\",\"serviceLevelObjective\":\"ua\",\"elasticPoolName\":\"zkwrrwoyc\",\"creationDate\":\"2021-09-03T12:36:18Z\",\"deletionDate\":\"2021-09-15T09:03:58Z\",\"earliestRestoreDate\":\"2021-10-10T12:18:59Z\"},\"id\":\"hnomdrkywuh\",\"name\":\"svfuurutlwexxwl\",\"type\":\"lniexz\"},{\"location\":\"zpgepqty\",\"properties\":{\"databaseName\":\"wpgdak\",\"edition\":\"zyvli\",\"maxSizeBytes\":\"nrkcxkj\",\"serviceLevelObjective\":\"nxm\",\"elasticPoolName\":\"uxswqrntvl\",\"creationDate\":\"2021-01-20T04:09:54Z\",\"deletionDate\":\"2021-02-06T14:09:09Z\",\"earliestRestoreDate\":\"2021-08-15T15:59:55Z\"},\"id\":\"exoqqpwcyyufm\",\"name\":\"runcuwmqspkcd\",\"type\":\"zhlctddunqndyfpc\"},{\"location\":\"qbnj\",\"properties\":{\"databaseName\":\"gegydcwboxjum\",\"edition\":\"qoli\",\"maxSizeBytes\":\"raiouaubrjtl\",\"serviceLevelObjective\":\"xfuojrn\",\"elasticPoolName\":\"flrzpas\",\"creationDate\":\"2021-04-15T05:35:24Z\",\"deletionDate\":\"2021-08-17T13:32:10Z\",\"earliestRestoreDate\":\"2021-02-19T12:22:52Z\"},\"id\":\"zdlyjdfqw\",\"name\":\"kyoqufdv\",\"type\":\"uzslzojhpctfnmdx\"}]}") + "{\"value\":[{\"location\":\"asjcaacfdmmcpu\",\"properties\":{\"databaseName\":\"hqepvufhbzehewh\",\"edition\":\"hnl\",\"maxSizeBytes\":\"nbldxeaclgschori\",\"serviceLevelObjective\":\"rsrrmoucsofldp\",\"elasticPoolName\":\"iyfc\",\"creationDate\":\"2021-07-23T22:31:54Z\",\"deletionDate\":\"2021-10-15T16:43:48Z\",\"earliestRestoreDate\":\"2021-02-18T03:11:59Z\"},\"id\":\"bh\",\"name\":\"vbmxuqibsx\",\"type\":\"kcudfbsfarfsiowl\"}]}") .toObject(RestorableDroppedSqlPoolListResult.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RestorableDroppedSqlPoolListResult model = new RestorableDroppedSqlPoolListResult() - .withValue(Arrays.asList(new RestorableDroppedSqlPoolInner(), new RestorableDroppedSqlPoolInner(), - new RestorableDroppedSqlPoolInner(), new RestorableDroppedSqlPoolInner())); + RestorableDroppedSqlPoolListResult model + = new RestorableDroppedSqlPoolListResult().withValue(Arrays.asList(new RestorableDroppedSqlPoolInner())); model = BinaryData.fromObject(model).toObject(RestorableDroppedSqlPoolListResult.class); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolPropertiesTests.java index 91e700fac660..a1f0e85c0a2f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolPropertiesTests.java @@ -11,7 +11,7 @@ public final class RestorableDroppedSqlPoolPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestorableDroppedSqlPoolProperties model = BinaryData.fromString( - "{\"databaseName\":\"qfrddgam\",\"edition\":\"hiosrsjuiv\",\"maxSizeBytes\":\"disyirnxz\",\"serviceLevelObjective\":\"zexrxzbujrt\",\"elasticPoolName\":\"qvwre\",\"creationDate\":\"2021-02-22T04:42:50Z\",\"deletionDate\":\"2021-05-28T10:31:50Z\",\"earliestRestoreDate\":\"2021-05-29T18:46:57Z\"}") + "{\"databaseName\":\"yoxoy\",\"edition\":\"k\",\"maxSizeBytes\":\"aimmoiroqb\",\"serviceLevelObjective\":\"hbragapyyr\",\"elasticPoolName\":\"svbpavbopfppdbwn\",\"creationDate\":\"2020-12-31T10:46:47Z\",\"deletionDate\":\"2021-06-30T02:41:40Z\",\"earliestRestoreDate\":\"2021-01-01T09:29:45Z\"}") .toObject(RestorableDroppedSqlPoolProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetWithResponseMockTests.java index a9b390407243..fe78765a7a81 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class RestorableDroppedSqlPoolsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"location\":\"jlvkrkegtyczupp\",\"properties\":{\"databaseName\":\"lzmiyddeeq\",\"edition\":\"vab\",\"maxSizeBytes\":\"vsexduetb\",\"serviceLevelObjective\":\"fcze\",\"elasticPoolName\":\"trlq\",\"creationDate\":\"2021-09-12T20:33:39Z\",\"deletionDate\":\"2021-03-17T23:28:38Z\",\"earliestRestoreDate\":\"2021-03-31T17:53:33Z\"},\"id\":\"jpir\",\"name\":\"zxvbczwhyegbthms\",\"type\":\"i\"}"; + = "{\"location\":\"azbkocbygvthrmxk\",\"properties\":{\"databaseName\":\"wwdxomrawp\",\"edition\":\"eboozflyacagaed\",\"maxSizeBytes\":\"i\",\"serviceLevelObjective\":\"lm\",\"elasticPoolName\":\"twgabdx\",\"creationDate\":\"2021-02-21T09:11:08Z\",\"deletionDate\":\"2021-10-20T15:04:31Z\",\"earliestRestoreDate\":\"2021-06-04T19:53:38Z\"},\"id\":\"ecooyvhtuqbp\",\"name\":\"lniibncg\",\"type\":\"gdvcdqhftz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); RestorableDroppedSqlPool response = manager.restorableDroppedSqlPools() - .getWithResponse("cfasfodropal", "ngtwyuskwgq", "ntaumd", com.azure.core.util.Context.NONE) + .getWithResponse("wawonoehrguql", "fwafbjz", "pyrgu", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceMockTests.java index 66125838576a..42797dfb74d9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceMockTests.java @@ -21,7 +21,7 @@ public final class RestorableDroppedSqlPoolsListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"ivsdw\",\"properties\":{\"databaseName\":\"krfihscjv\",\"edition\":\"mhzbhwahfbwih\",\"maxSizeBytes\":\"nx\",\"serviceLevelObjective\":\"vynuqqkotauratn\",\"elasticPoolName\":\"ppfzsclef\",\"creationDate\":\"2021-04-12T17:56:47Z\",\"deletionDate\":\"2021-03-15T00:13:22Z\",\"earliestRestoreDate\":\"2021-02-01T15:48:33Z\"},\"id\":\"qlmfdg\",\"name\":\"n\",\"type\":\"buypwovvv\"}]}"; + = "{\"value\":[{\"location\":\"dc\",\"properties\":{\"databaseName\":\"f\",\"edition\":\"vb\",\"maxSizeBytes\":\"gwhgkgsoau\",\"serviceLevelObjective\":\"rssat\",\"elasticPoolName\":\"bipufdmxuqbdqnas\",\"creationDate\":\"2021-02-08T23:31:47Z\",\"deletionDate\":\"2021-03-08T07:30:59Z\",\"earliestRestoreDate\":\"2021-06-16T23:05:01Z\"},\"id\":\"q\",\"name\":\"yopbtsixhgvb\",\"type\":\"xmndztgsqjayqmar\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.restorableDroppedSqlPools() - .listByWorkspace("jbuiggru", "ozfvualjt", com.azure.core.util.Context.NONE); + .listByWorkspace("pyfaofdfp", "tncwmhjobzrfpr", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointInnerTests.java index 363eb1528f1b..d14cda56f88c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointInnerTests.java @@ -11,7 +11,7 @@ public final class RestorePointInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestorePointInner model = BinaryData.fromString( - "{\"location\":\"ka\",\"properties\":{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-08-31T11:12:28Z\",\"restorePointCreationDate\":\"2021-04-08T20:05:46Z\",\"restorePointLabel\":\"cffgdkzzewk\"},\"id\":\"vhqcrail\",\"name\":\"pnppfuf\",\"type\":\"rwdmhdlxyjrxsa\"}") + "{\"location\":\"gfbkjubdyh\",\"properties\":{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-06-14T22:14:58Z\",\"restorePointCreationDate\":\"2021-05-19T20:27:58Z\",\"restorePointLabel\":\"wzf\"},\"id\":\"tsttktlahbq\",\"name\":\"ctxtgzukxi\",\"type\":\"mmqtgqqqxhr\"}") .toObject(RestorePointInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointListResultTests.java index a474de29b732..b7a36d92fb3d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointListResultTests.java @@ -11,7 +11,7 @@ public final class RestorePointListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestorePointListResult model = BinaryData.fromString( - "{\"value\":[{\"location\":\"orppxebmnzbtb\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-02-10T22:55:47Z\",\"restorePointCreationDate\":\"2021-06-12T04:27:19Z\",\"restorePointLabel\":\"hdneuelfph\"},\"id\":\"dyhtozfikdowwquu\",\"name\":\"xzxcl\",\"type\":\"ithhqzon\"}],\"nextLink\":\"ggbhcohfwds\"}") + "{\"value\":[{\"location\":\"jeknizshq\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-06-06T18:17:05Z\",\"restorePointCreationDate\":\"2020-12-31T19:03:55Z\",\"restorePointLabel\":\"mblrrilbywd\"},\"id\":\"smiccwrwfscj\",\"name\":\"n\",\"type\":\"nszqujiz\"},{\"location\":\"oqytibyowbblgy\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-11-26T06:56:03Z\",\"restorePointCreationDate\":\"2021-08-30T13:25:29Z\",\"restorePointLabel\":\"xoi\"},\"id\":\"msksbp\",\"name\":\"mlqoljx\",\"type\":\"cgxxlxs\"}],\"nextLink\":\"gcvizqzdwlvwlyou\"}") .toObject(RestorePointListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointPropertiesTests.java index 058d24e89c95..e036ddcfe52b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointPropertiesTests.java @@ -11,7 +11,7 @@ public final class RestorePointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestorePointProperties model = BinaryData.fromString( - "{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2020-12-27T20:37:24Z\",\"restorePointCreationDate\":\"2021-12-04T12:00:18Z\",\"restorePointLabel\":\"wqapnedgfbcvk\"}") + "{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-05-29T05:18:31Z\",\"restorePointCreationDate\":\"2021-10-06T22:19:27Z\",\"restorePointLabel\":\"isavok\"}") .toObject(RestorePointProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecureStringTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecureStringTests.java index d51fe91f1ea5..8010e1843334 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecureStringTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecureStringTests.java @@ -11,15 +11,15 @@ public final class SecureStringTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SecureString model = BinaryData.fromString("{\"type\":\"SecureString\",\"value\":\"baevwjcnkottl\"}") - .toObject(SecureString.class); - Assertions.assertEquals("baevwjcnkottl", model.value()); + SecureString model + = BinaryData.fromString("{\"type\":\"SecureString\",\"value\":\"swkacvej\"}").toObject(SecureString.class); + Assertions.assertEquals("swkacvej", model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SecureString model = new SecureString().withValue("baevwjcnkottl"); + SecureString model = new SecureString().withValue("swkacvej"); model = BinaryData.fromObject(model).toObject(SecureString.class); - Assertions.assertEquals("baevwjcnkottl", model.value()); + Assertions.assertEquals("swkacvej", model.value()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java index 6ca8828a2361..83f24cd050d4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java @@ -15,24 +15,22 @@ public final class SelfHostedIntegrationRuntimeNodeInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SelfHostedIntegrationRuntimeNodeInner model = BinaryData.fromString( - "{\"nodeName\":\"hgbvqtan\",\"machineName\":\"fdlpukhpyr\",\"hostServiceUri\":\"izjcpeog\",\"status\":\"Online\",\"capabilities\":{\"hfhpfp\":\"brouxdd\",\"ntacn\":\"zjzoywjxhpdul\",\"rljyoogwxhnsdu\":\"qwtehtuevr\"},\"versionStatus\":\"wbsreur\",\"version\":\"kfuarenlv\",\"registerTime\":\"2021-07-13T00:13:17Z\",\"lastConnectTime\":\"2021-03-27T02:17:20Z\",\"expiryTime\":\"2021-05-09T13:31:11Z\",\"lastStartTime\":\"2021-02-05T00:41:51Z\",\"lastStopTime\":\"2021-09-08T16:13:33Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2020-12-28T15:08:46Z\",\"lastEndUpdateTime\":\"2021-03-29T16:51:14Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":451383418,\"maxConcurrentJobs\":705317709,\"\":{\"ymc\":\"dataqxypokkhminq\",\"ninvudbchaqdt\":\"datangnbdxxew\",\"tddmf\":\"dataqecrqctmxx\",\"pxbannovvoxc\":\"datahuytxzvtzn\"}}") + "{\"nodeName\":\"svexcsonpclhoco\",\"machineName\":\"lkevle\",\"hostServiceUri\":\"zfbuhf\",\"status\":\"Limited\",\"capabilities\":{\"feiithlvmez\":\"k\"},\"versionStatus\":\"shxmzsbbzoggigrx\",\"version\":\"ur\",\"registerTime\":\"2021-06-24T13:08:49Z\",\"lastConnectTime\":\"2021-05-26T16:39:11Z\",\"expiryTime\":\"2021-06-18T13:50:39Z\",\"lastStartTime\":\"2021-11-20T13:35:29Z\",\"lastStopTime\":\"2021-07-31T00:27:15Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-09-24T03:08Z\",\"lastEndUpdateTime\":\"2021-12-01T07:03:23Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":333094369,\"maxConcurrentJobs\":73605186,\"\":{\"azyxoegukg\":\"datatiukbldngkpoci\",\"mrbpizcdrqj\":\"datanpiucgygevqznty\",\"yhxdeoejzicwi\":\"datadpydn\"}}") .toObject(SelfHostedIntegrationRuntimeNodeInner.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "hgbvqtan", "lastStartUpdateTime", "2020-12-28T15:08:46Z", - "lastConnectTime", "2021-03-27T02:17:20Z", "capabilities", + SelfHostedIntegrationRuntimeNodeInner model + = new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "svexcsonpclhoco", + "lastStartUpdateTime", "2021-09-24T03:08Z", "lastConnectTime", "2021-05-26T16:39:11Z", "capabilities", JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"hfhpfp\":\"brouxdd\",\"ntacn\":\"zjzoywjxhpdul\",\"rljyoogwxhnsdu\":\"qwtehtuevr\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "izjcpeog", "registerTime", "2021-07-13T00:13:17Z", "maxConcurrentJobs", 705317709, - "lastStopTime", "2021-09-08T16:13:33Z", "version", "kfuarenlv", "machineName", "fdlpukhpyr", - "versionStatus", "wbsreur", "concurrentJobsLimit", 451383418, "lastEndUpdateTime", - "2021-03-29T16:51:14Z", "expiryTime", "2021-05-09T13:31:11Z", "lastStartTime", "2021-02-05T00:41:51Z", - "lastUpdateResult", "None", "isActiveDispatcher", false, "status", "Online")); + .deserialize("{\"feiithlvmez\":\"k\"}", Object.class, SerializerEncoding.JSON), + "hostServiceUri", "zfbuhf", "registerTime", "2021-06-24T13:08:49Z", "maxConcurrentJobs", 73605186, + "lastStopTime", "2021-07-31T00:27:15Z", "version", "ur", "machineName", "lkevle", "versionStatus", + "shxmzsbbzoggigrx", "concurrentJobsLimit", 333094369, "lastEndUpdateTime", "2021-12-01T07:03:23Z", + "expiryTime", "2021-06-18T13:50:39Z", "lastStartTime", "2021-11-20T13:35:29Z", "lastUpdateResult", + "None", "isActiveDispatcher", true, "status", "Limited")); model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeNodeInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTests.java index 781d12537c7f..72de67f6fc56 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTests.java @@ -13,66 +13,42 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; public final class SelfHostedIntegrationRuntimeStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SelfHostedIntegrationRuntimeStatus model = BinaryData.fromString( - "{\"type\":\"SelfHosted\",\"typeProperties\":{\"createTime\":\"2021-03-25T17:57:28Z\",\"taskQueueId\":\"bedenrexkx\",\"nodeCommunicationChannelEncryptionMode\":\"xvucnul\",\"internalChannelEncryption\":\"NotEncrypted\",\"version\":\"jevdyznf\",\"nodes\":[{\"nodeName\":\"kskmqozzkivyhjrl\",\"machineName\":\"zji\",\"hostServiceUri\":\"qfhefkwabsol\",\"status\":\"Limited\",\"capabilities\":{\"elexhvu\":\"lmgnlqxsjx\",\"zoolzqoca\":\"b\",\"t\":\"kuzlbcnn\"},\"versionStatus\":\"xawqy\",\"version\":\"lhdyzmyckzex\",\"registerTime\":\"2021-06-29T17:47:25Z\",\"lastConnectTime\":\"2021-06-14T23:11:42Z\",\"expiryTime\":\"2021-08-23T03:40:52Z\",\"lastStartTime\":\"2021-10-15T13:09:12Z\",\"lastStopTime\":\"2021-02-04T18:26:06Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-11-16T09:51:42Z\",\"lastEndUpdateTime\":\"2021-10-26T20:58:49Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1562287179,\"maxConcurrentJobs\":1165730554,\"\":{\"urykcrraueekcs\":\"datagzvkiwrsiwdyj\",\"gdda\":\"dataeh\"}},{\"nodeName\":\"cbgydlqi\",\"machineName\":\"wmhmptyrilkfbnr\",\"hostServiceUri\":\"xvztpbnfnqtxj\",\"status\":\"Upgrading\",\"capabilities\":{\"zygleexahvm\":\"swbnfddepldwqjns\",\"sjjzyvoaqajuveh\":\"whsbrcary\"},\"versionStatus\":\"tdmkrrbhmpful\",\"version\":\"efgybpmfbfununmp\",\"registerTime\":\"2021-08-02T17:18Z\",\"lastConnectTime\":\"2021-09-25T07:23:33Z\",\"expiryTime\":\"2020-12-27T16:30:22Z\",\"lastStartTime\":\"2021-07-15T19:37:29Z\",\"lastStopTime\":\"2021-11-17T05:47:27Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-01-20T14:52:43Z\",\"lastEndUpdateTime\":\"2021-02-07T15:25:17Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1665981371,\"maxConcurrentJobs\":2088035425,\"\":{\"hbkgfyrt\":\"datagcwn\",\"mjpjscdfpdqwty\":\"datagm\"}},{\"nodeName\":\"vgwmseharxifvqnr\",\"machineName\":\"mbpjptnvwjh\",\"hostServiceUri\":\"idqpxlbtpakftn\",\"status\":\"Initializing\",\"capabilities\":{\"pycvjqdvdwkqpldr\":\"ykyutrymdwmfj\",\"taoutnpdct\":\"efgnaavuagnt\",\"yeuyldph\":\"hspfefyihd\",\"thhllnmwyne\":\"tybkcgs\"},\"versionStatus\":\"exlfciatxtjrrl\",\"version\":\"dskjhhxdlaj\",\"registerTime\":\"2021-09-17T20:41:14Z\",\"lastConnectTime\":\"2021-08-25T08:46:38Z\",\"expiryTime\":\"2021-04-15T19:18:44Z\",\"lastStartTime\":\"2021-10-18T07:51:27Z\",\"lastStopTime\":\"2021-10-20T01:32:05Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-11-18T01:57:10Z\",\"lastEndUpdateTime\":\"2021-01-21T19:30:07Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":413094932,\"maxConcurrentJobs\":190169721,\"\":{\"dnqtoqxjhqx\":\"datakxettcslojfkq\",\"htkbtnq\":\"datas\",\"mbiipsnawwlqk\":\"datarngl\"}}],\"scheduledUpdateDate\":\"2021-09-21T19:49:31Z\",\"updateDelayOffset\":\"hllxricctkw\",\"localTimeZoneOffset\":\"qqoajxeiyglesrw\",\"capabilities\":{\"rupobehd\":\"xhdctrceqnk\"},\"serviceUrls\":[\"zacvu\",\"epj\",\"bibnzpphepifex\",\"eqir\"],\"autoUpdate\":\"On\",\"versionStatus\":\"ly\",\"links\":[{\"name\":\"vrpjlvczuodacp\",\"subscriptionId\":\"ettepdjxqe\",\"dataFactoryName\":\"oy\",\"dataFactoryLocation\":\"iylpck\",\"createTime\":\"2021-07-22T20:50:14Z\"},{\"name\":\"edveskwxegqp\",\"subscriptionId\":\"gfnzh\",\"dataFactoryName\":\"mjtsgh\",\"dataFactoryLocation\":\"c\",\"createTime\":\"2021-04-26T10:07:30Z\"}],\"pushedVersion\":\"arpzeqacdldtzm\",\"latestVersion\":\"pefcpcz\",\"autoUpdateETA\":\"2021-10-16T20:18:39Z\",\"serviceRegion\":\"qndaizupfkhuytus\",\"newerVersions\":[\"mtvtvegwqiukvzwy\"],\"osType\":798786113,\"targetFramework\":772209790},\"dataFactoryName\":\"okgkskjivbs\",\"state\":\"Starting\",\"\":{\"i\":\"datafukpeexpgeu\",\"trdexyionofnin\":\"datahwu\",\"wqqrsmpcbbprtuga\":\"datadbzsx\",\"fogdrtbfcm\":\"databzbcyksiv\"}}") + "{\"type\":\"SelfHosted\",\"typeProperties\":{\"createTime\":\"2021-07-24T11:19:34Z\",\"taskQueueId\":\"ufypiv\",\"nodeCommunicationChannelEncryptionMode\":\"bbjpmcubkmif\",\"internalChannelEncryption\":\"NotEncrypted\",\"version\":\"ubvphavpmhbrbqgv\",\"nodes\":[{\"nodeName\":\"bbttefjo\",\"machineName\":\"ssqyzqedik\",\"hostServiceUri\":\"rdbiqmrjge\",\"status\":\"Limited\",\"capabilities\":{\"xmjpbyep\":\"ggwfiwz\"},\"versionStatus\":\"gt\",\"version\":\"j\",\"registerTime\":\"2021-11-22T14:35:55Z\",\"lastConnectTime\":\"2021-08-07T04:21:54Z\",\"expiryTime\":\"2021-03-20T09:49:19Z\",\"lastStartTime\":\"2021-07-04T14:58:40Z\",\"lastStopTime\":\"2021-03-25T09:57:24Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-03-21T08:59:41Z\",\"lastEndUpdateTime\":\"2021-03-15T22:12:36Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":866269149,\"maxConcurrentJobs\":2025357675,\"\":{\"aswlp\":\"datailee\"}},{\"nodeName\":\"gm\",\"machineName\":\"fjlrxwtoauk\",\"hostServiceUri\":\"kvci\",\"status\":\"Limited\",\"capabilities\":{\"dsxjwuivedw\":\"a\",\"psmgo\":\"gyeewxeiq\",\"l\":\"guamlj\",\"ewgnxkympqanxrj\":\"gmsplzgaufcshhv\"},\"versionStatus\":\"xtwbta\",\"version\":\"pnyghs\",\"registerTime\":\"2021-07-25T14:42:35Z\",\"lastConnectTime\":\"2021-07-21T13:22:20Z\",\"expiryTime\":\"2021-09-22T21:59:43Z\",\"lastStartTime\":\"2021-02-25T18:08:40Z\",\"lastStopTime\":\"2021-06-25T22:51:05Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-11-23T07:57:41Z\",\"lastEndUpdateTime\":\"2021-02-16T02:21:14Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":2068666218,\"maxConcurrentJobs\":1014591780,\"\":{\"luzvxnq\":\"datahvyoma\"}}],\"scheduledUpdateDate\":\"2021-05-26T18:55:49Z\",\"updateDelayOffset\":\"qpd\",\"localTimeZoneOffset\":\"mkoisqcssf\",\"capabilities\":{\"zsylollgt\":\"ifmcsypobkdqzr\",\"vuaurk\":\"czzydmxzjij\"},\"serviceUrls\":[\"irldefxr\"],\"autoUpdate\":\"Off\",\"versionStatus\":\"nbkkjanurnnq\",\"links\":[{\"name\":\"pizxqltgrdogyp\",\"subscriptionId\":\"x\",\"dataFactoryName\":\"fihwu\",\"dataFactoryLocation\":\"ctafsrbxrblm\",\"createTime\":\"2021-09-03T01:56:24Z\"}],\"pushedVersion\":\"xihspnxwq\",\"latestVersion\":\"nepzwakls\",\"autoUpdateETA\":\"2021-07-04T22:14:12Z\"},\"dataFactoryName\":\"qqagwwr\",\"state\":\"Stopping\",\"\":{\"ezkhhltnjadhqo\":\"dataisglrrc\",\"ueayfbpcmsplb\":\"datawjqo\",\"mbscbbx\":\"datarrueqthwmg\",\"d\":\"datagdhxi\"}}") .toObject(SelfHostedIntegrationRuntimeStatus.class); - Assertions.assertEquals("qndaizupfkhuytus", model.serviceRegion()); - Assertions.assertEquals("mtvtvegwqiukvzwy", model.newerVersions().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeStatus model = new SelfHostedIntegrationRuntimeStatus() - .withNodes(Arrays.asList( - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "kskmqozzkivyhjrl", "lastStartUpdateTime", - "2021-11-16T09:51:42Z", "lastConnectTime", "2021-06-14T23:11:42Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"elexhvu\":\"lmgnlqxsjx\",\"zoolzqoca\":\"b\",\"t\":\"kuzlbcnn\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "qfhefkwabsol", "registerTime", "2021-06-29T17:47:25Z", "maxConcurrentJobs", - 1165730554, "lastStopTime", "2021-02-04T18:26:06Z", "version", "lhdyzmyckzex", "machineName", - "zji", "versionStatus", "xawqy", "concurrentJobsLimit", 1562287179, "lastEndUpdateTime", - "2021-10-26T20:58:49Z", "expiryTime", "2021-08-23T03:40:52Z", "lastStartTime", - "2021-10-15T13:09:12Z", "lastUpdateResult", "Succeed", "isActiveDispatcher", false, "status", - "Limited")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "cbgydlqi", - "lastStartUpdateTime", "2021-01-20T14:52:43Z", "lastConnectTime", "2021-09-25T07:23:33Z", - "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"zygleexahvm\":\"swbnfddepldwqjns\",\"sjjzyvoaqajuveh\":\"whsbrcary\"}", Object.class, - SerializerEncoding.JSON), - "hostServiceUri", "xvztpbnfnqtxj", "registerTime", "2021-08-02T17:18Z", "maxConcurrentJobs", - 2088035425, "lastStopTime", "2021-11-17T05:47:27Z", "version", "efgybpmfbfununmp", "machineName", - "wmhmptyrilkfbnr", "versionStatus", "tdmkrrbhmpful", "concurrentJobsLimit", 1665981371, - "lastEndUpdateTime", "2021-02-07T15:25:17Z", "expiryTime", "2020-12-27T16:30:22Z", "lastStartTime", - "2021-07-15T19:37:29Z", "lastUpdateResult", "Fail", "isActiveDispatcher", true, "status", - "Upgrading")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", - "vgwmseharxifvqnr", "lastStartUpdateTime", "2021-11-18T01:57:10Z", "lastConnectTime", - "2021-08-25T08:46:38Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"pycvjqdvdwkqpldr\":\"ykyutrymdwmfj\",\"taoutnpdct\":\"efgnaavuagnt\",\"yeuyldph\":\"hspfefyihd\",\"thhllnmwyne\":\"tybkcgs\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "idqpxlbtpakftn", "registerTime", "2021-09-17T20:41:14Z", "maxConcurrentJobs", - 190169721, "lastStopTime", "2021-10-20T01:32:05Z", "version", "dskjhhxdlaj", "machineName", - "mbpjptnvwjh", "versionStatus", "exlfciatxtjrrl", "concurrentJobsLimit", 413094932, - "lastEndUpdateTime", "2021-01-21T19:30:07Z", "expiryTime", "2021-04-15T19:18:44Z", "lastStartTime", - "2021-10-18T07:51:27Z", "lastUpdateResult", "Fail", "isActiveDispatcher", false, "status", - "Initializing")))) - .withLinks(Arrays.asList(new LinkedIntegrationRuntime(), new LinkedIntegrationRuntime())) - .withServiceRegion("qndaizupfkhuytus") - .withNewerVersions(Arrays.asList("mtvtvegwqiukvzwy")); + SelfHostedIntegrationRuntimeStatus model = new SelfHostedIntegrationRuntimeStatus().withNodes(Arrays.asList( + new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "bbttefjo", + "lastStartUpdateTime", "2021-03-21T08:59:41Z", "lastConnectTime", "2021-08-07T04:21:54Z", + "capabilities", + JacksonAdapter.createDefaultSerializerAdapter() + .deserialize("{\"xmjpbyep\":\"ggwfiwz\"}", Object.class, SerializerEncoding.JSON), + "hostServiceUri", "rdbiqmrjge", "registerTime", "2021-11-22T14:35:55Z", "maxConcurrentJobs", 2025357675, + "lastStopTime", "2021-03-25T09:57:24Z", "version", "j", "machineName", "ssqyzqedik", "versionStatus", + "gt", "concurrentJobsLimit", 866269149, "lastEndUpdateTime", "2021-03-15T22:12:36Z", "expiryTime", + "2021-03-20T09:49:19Z", "lastStartTime", "2021-07-04T14:58:40Z", "lastUpdateResult", "Succeed", + "isActiveDispatcher", true, "status", "Limited")), + new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "gm", + "lastStartUpdateTime", "2021-11-23T07:57:41Z", "lastConnectTime", "2021-07-21T13:22:20Z", + "capabilities", + JacksonAdapter.createDefaultSerializerAdapter() + .deserialize( + "{\"dsxjwuivedw\":\"a\",\"psmgo\":\"gyeewxeiq\",\"l\":\"guamlj\",\"ewgnxkympqanxrj\":\"gmsplzgaufcshhv\"}", + Object.class, SerializerEncoding.JSON), + "hostServiceUri", "kvci", "registerTime", "2021-07-25T14:42:35Z", "maxConcurrentJobs", 1014591780, + "lastStopTime", "2021-06-25T22:51:05Z", "version", "pnyghs", "machineName", "fjlrxwtoauk", + "versionStatus", "xtwbta", "concurrentJobsLimit", 2068666218, "lastEndUpdateTime", + "2021-02-16T02:21:14Z", "expiryTime", "2021-09-22T21:59:43Z", "lastStartTime", "2021-02-25T18:08:40Z", + "lastUpdateResult", "Succeed", "isActiveDispatcher", false, "status", "Limited")))) + .withLinks(Arrays.asList(new LinkedIntegrationRuntime())); model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatus.class); - Assertions.assertEquals("qndaizupfkhuytus", model.serviceRegion()); - Assertions.assertEquals("mtvtvegwqiukvzwy", model.newerVersions().get(0)); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java index c257bee976fe..b5dc55d123cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java @@ -13,53 +13,32 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.junit.jupiter.api.Assertions; public final class SelfHostedIntegrationRuntimeStatusTypePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SelfHostedIntegrationRuntimeStatusTypeProperties model = BinaryData.fromString( - "{\"createTime\":\"2021-05-29T05:32:27Z\",\"taskQueueId\":\"sjcwjjxsgmbawvif\",\"nodeCommunicationChannelEncryptionMode\":\"kecifhocjxwklo\",\"internalChannelEncryption\":\"NotEncrypted\",\"version\":\"txvcm\",\"nodes\":[{\"nodeName\":\"lcpx\",\"machineName\":\"ir\",\"hostServiceUri\":\"yngjgvrquvpygglp\",\"status\":\"Online\",\"capabilities\":{\"sxzqbglcjkaysp\":\"ueljtiahxmfqryar\",\"dubtlmj\":\"hz\",\"djxyxgbkkqvjcteo\":\"gblioskkfmkm\",\"pxvjnzd\":\"dlrslskk\"},\"versionStatus\":\"o\",\"version\":\"jhpcn\",\"registerTime\":\"2021-02-18T09:54:57Z\",\"lastConnectTime\":\"2021-08-22T03:29:14Z\",\"expiryTime\":\"2021-12-04T05:54:44Z\",\"lastStartTime\":\"2021-08-21T08:30:58Z\",\"lastStopTime\":\"2021-09-23T00:37:50Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-04-08T20:29:04Z\",\"lastEndUpdateTime\":\"2021-01-19T07:11:58Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":2022187178,\"maxConcurrentJobs\":408711724,\"\":{\"lskzptjxul\":\"datacknrzda\",\"qlehmcgcjeinu\":\"dataeucyrth\",\"qnttmbq\":\"datahokamvfej\"}},{\"nodeName\":\"bzfivfok\",\"machineName\":\"sthhzagjfwy\",\"hostServiceUri\":\"lhgenuzejgvkv\",\"status\":\"Initializing\",\"capabilities\":{\"smmd\":\"zllrz\",\"nxtminklog\":\"gmihzpimcqr\",\"nsqktc\":\"svtzarhzv\",\"pkybtgl\":\"bjwzzos\"},\"versionStatus\":\"zp\",\"version\":\"jsqjcemqbm\",\"registerTime\":\"2021-01-07T20:56:04Z\",\"lastConnectTime\":\"2021-11-27T23:49:08Z\",\"expiryTime\":\"2021-03-14T08:55:53Z\",\"lastStartTime\":\"2021-05-15T01:39:05Z\",\"lastStopTime\":\"2021-06-28T19:41:36Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-10-06T23:58:53Z\",\"lastEndUpdateTime\":\"2021-04-05T16:03:48Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":679289886,\"maxConcurrentJobs\":1168979523,\"\":{\"b\":\"datatd\",\"okqkbudbtwao\":\"dataxekr\"}}],\"scheduledUpdateDate\":\"2021-11-21T08:08:57Z\",\"updateDelayOffset\":\"lyttaaknwfr\",\"localTimeZoneOffset\":\"bsmhpdujdiga\",\"capabilities\":{\"pdcldpka\":\"ekscbctnanqimwbz\",\"nlaimouxwksqmudm\":\"n\",\"qsj\":\"coibicziuswswjrk\",\"yrfwbivq\":\"btqqvyfs\"},\"serviceUrls\":[\"fuy\",\"wvbhlimbyq\"],\"autoUpdate\":\"On\",\"versionStatus\":\"odlikcdrdaasax\",\"links\":[{\"name\":\"mfkwiyjvzuk\",\"subscriptionId\":\"r\",\"dataFactoryName\":\"wnvz\",\"dataFactoryLocation\":\"n\",\"createTime\":\"2021-02-18T23:03:38Z\"},{\"name\":\"sxvjabjqqaxuyvy\",\"subscriptionId\":\"nudn\",\"dataFactoryName\":\"abhjx\",\"dataFactoryLocation\":\"qweuip\",\"createTime\":\"2021-07-14T06:30:37Z\"},{\"name\":\"smitnsqxtlt\",\"subscriptionId\":\"krdpqgfhyrfr\",\"dataFactoryName\":\"kldgrcwfcmfc\",\"dataFactoryLocation\":\"jajqmatxjt\",\"createTime\":\"2021-10-30T12:08:12Z\"}],\"pushedVersion\":\"zqgxx\",\"latestVersion\":\"bbmtlpqagynoip\",\"autoUpdateETA\":\"2021-07-23T19:44:23Z\",\"serviceRegion\":\"ali\",\"newerVersions\":[\"yqxzxaqzibmqim\",\"ymqruqguhfupet\"],\"osType\":176903649,\"targetFramework\":1919781103}") + "{\"createTime\":\"2021-03-27T14:39:22Z\",\"taskQueueId\":\"dbwdpyqyybxubmdn\",\"nodeCommunicationChannelEncryptionMode\":\"cbq\",\"internalChannelEncryption\":\"SslEncrypted\",\"version\":\"jelaqacigele\",\"nodes\":[{\"nodeName\":\"vqvwzkjopwbe\",\"machineName\":\"r\",\"hostServiceUri\":\"wzdqybxceakxcpts\",\"status\":\"InitializeFailed\",\"capabilities\":{\"zisgykiuemvanb\":\"aseqchkrttzr\",\"jklinh\":\"zohmnrxxbs\",\"nzxojpslsvjgpli\":\"dptysprqs\"},\"versionStatus\":\"iqwoyxqvapcoh\",\"version\":\"ucqpqojxcxzrz\",\"registerTime\":\"2021-06-25T21:59:34Z\",\"lastConnectTime\":\"2021-08-24T03:14:39Z\",\"expiryTime\":\"2021-08-11T20:52:05Z\",\"lastStartTime\":\"2021-06-23T12:05:01Z\",\"lastStopTime\":\"2020-12-27T09:37:41Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-07-11T04:51:02Z\",\"lastEndUpdateTime\":\"2021-01-06T16:31:43Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1319773587,\"maxConcurrentJobs\":669321712,\"\":{\"mtuatmzwcjjncqtj\":\"datahzn\"}}],\"scheduledUpdateDate\":\"2021-03-13T06:57:20Z\",\"updateDelayOffset\":\"vgbgatzuuvbxng\",\"localTimeZoneOffset\":\"bwggahtt\",\"capabilities\":{\"utlxjoqzasunwqrj\":\"wvajq\",\"uocnjrohmbpyr\":\"frgqhaohcm\"},\"serviceUrls\":[\"meblyd\"],\"autoUpdate\":\"Off\",\"versionStatus\":\"kmrocxne\",\"links\":[{\"name\":\"tod\",\"subscriptionId\":\"pyapucygvoav\",\"dataFactoryName\":\"nssxlgh\",\"dataFactoryLocation\":\"egjlgvvpa\",\"createTime\":\"2021-03-25T17:51:10Z\"}],\"pushedVersion\":\"gbuxantuygdh\",\"latestVersion\":\"qipir\",\"autoUpdateETA\":\"2021-08-18T16:21:34Z\"}") .toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - Assertions.assertEquals("ali", model.serviceRegion()); - Assertions.assertEquals("yqxzxaqzibmqim", model.newerVersions().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SelfHostedIntegrationRuntimeStatusTypeProperties model = new SelfHostedIntegrationRuntimeStatusTypeProperties() .withNodes(Arrays.asList(new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf( - "nodeName", "lcpx", "lastStartUpdateTime", "2021-04-08T20:29:04Z", "lastConnectTime", - "2021-08-22T03:29:14Z", "capabilities", + "nodeName", "vqvwzkjopwbe", "lastStartUpdateTime", "2021-07-11T04:51:02Z", "lastConnectTime", + "2021-08-24T03:14:39Z", "capabilities", JacksonAdapter.createDefaultSerializerAdapter() .deserialize( - "{\"sxzqbglcjkaysp\":\"ueljtiahxmfqryar\",\"dubtlmj\":\"hz\",\"djxyxgbkkqvjcteo\":\"gblioskkfmkm\",\"pxvjnzd\":\"dlrslskk\"}", + "{\"zisgykiuemvanb\":\"aseqchkrttzr\",\"jklinh\":\"zohmnrxxbs\",\"nzxojpslsvjgpli\":\"dptysprqs\"}", Object.class, SerializerEncoding.JSON), - "hostServiceUri", "yngjgvrquvpygglp", "registerTime", "2021-02-18T09:54:57Z", "maxConcurrentJobs", - 408711724, "lastStopTime", "2021-09-23T00:37:50Z", "version", "jhpcn", "machineName", "ir", - "versionStatus", "o", "concurrentJobsLimit", 2022187178, "lastEndUpdateTime", "2021-01-19T07:11:58Z", - "expiryTime", "2021-12-04T05:54:44Z", "lastStartTime", "2021-08-21T08:30:58Z", "lastUpdateResult", - "Succeed", "isActiveDispatcher", true, "status", "Online")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "bzfivfok", - "lastStartUpdateTime", "2021-10-06T23:58:53Z", "lastConnectTime", "2021-11-27T23:49:08Z", - "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"smmd\":\"zllrz\",\"nxtminklog\":\"gmihzpimcqr\",\"nsqktc\":\"svtzarhzv\",\"pkybtgl\":\"bjwzzos\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "lhgenuzejgvkv", "registerTime", "2021-01-07T20:56:04Z", "maxConcurrentJobs", - 1168979523, "lastStopTime", "2021-06-28T19:41:36Z", "version", "jsqjcemqbm", "machineName", - "sthhzagjfwy", "versionStatus", "zp", "concurrentJobsLimit", 679289886, "lastEndUpdateTime", - "2021-04-05T16:03:48Z", "expiryTime", "2021-03-14T08:55:53Z", "lastStartTime", - "2021-05-15T01:39:05Z", "lastUpdateResult", "None", "isActiveDispatcher", false, "status", - "Initializing")))) - .withLinks(Arrays.asList(new LinkedIntegrationRuntime(), new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime())) - .withServiceRegion("ali") - .withNewerVersions(Arrays.asList("yqxzxaqzibmqim", "ymqruqguhfupet")); + "hostServiceUri", "wzdqybxceakxcpts", "registerTime", "2021-06-25T21:59:34Z", "maxConcurrentJobs", + 669321712, "lastStopTime", "2020-12-27T09:37:41Z", "version", "ucqpqojxcxzrz", "machineName", "r", + "versionStatus", "iqwoyxqvapcoh", "concurrentJobsLimit", 1319773587, "lastEndUpdateTime", + "2021-01-06T16:31:43Z", "expiryTime", "2021-08-11T20:52:05Z", "lastStartTime", "2021-06-23T12:05:01Z", + "lastUpdateResult", "Succeed", "isActiveDispatcher", true, "status", "InitializeFailed")))) + .withLinks(Arrays.asList(new LinkedIntegrationRuntime())); model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - Assertions.assertEquals("ali", model.serviceRegion()); - Assertions.assertEquals("yqxzxaqzibmqim", model.newerVersions().get(0)); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelInnerTests.java index c2ad9a4b067b..90eed45ce3f8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelInnerTests.java @@ -13,27 +13,27 @@ public final class SensitivityLabelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SensitivityLabelInner model = BinaryData.fromString( - "{\"properties\":{\"schemaName\":\"u\",\"tableName\":\"kopbminrf\",\"columnName\":\"oyuhhziui\",\"labelName\":\"ozbhdmsmlmzq\",\"labelId\":\"ft\",\"informationType\":\"ae\",\"informationTypeId\":\"iahxicsl\",\"isDisabled\":true,\"rank\":\"None\"},\"managedBy\":\"iyylhalnswhccsp\",\"id\":\"kaivwit\",\"name\":\"scywuggwoluhc\",\"type\":\"bwemhairs\"}") + "{\"properties\":{\"schemaName\":\"zrp\",\"tableName\":\"imlnwiaaomylw\",\"columnName\":\"z\",\"labelName\":\"cse\",\"labelId\":\"wwnpj\",\"informationType\":\"fz\",\"informationTypeId\":\"pchwa\",\"isDisabled\":false,\"rank\":\"None\"},\"managedBy\":\"nfepgf\",\"id\":\"wetwlyxgncxykxh\",\"name\":\"jhlimmbcxfhbcpo\",\"type\":\"xvxcjzhq\"}") .toObject(SensitivityLabelInner.class); - Assertions.assertEquals("ozbhdmsmlmzq", model.labelName()); - Assertions.assertEquals("ft", model.labelId()); - Assertions.assertEquals("ae", model.informationType()); - Assertions.assertEquals("iahxicsl", model.informationTypeId()); + Assertions.assertEquals("cse", model.labelName()); + Assertions.assertEquals("wwnpj", model.labelId()); + Assertions.assertEquals("fz", model.informationType()); + Assertions.assertEquals("pchwa", model.informationTypeId()); Assertions.assertEquals(SensitivityLabelRank.NONE, model.rank()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SensitivityLabelInner model = new SensitivityLabelInner().withLabelName("ozbhdmsmlmzq") - .withLabelId("ft") - .withInformationType("ae") - .withInformationTypeId("iahxicsl") + SensitivityLabelInner model = new SensitivityLabelInner().withLabelName("cse") + .withLabelId("wwnpj") + .withInformationType("fz") + .withInformationTypeId("pchwa") .withRank(SensitivityLabelRank.NONE); model = BinaryData.fromObject(model).toObject(SensitivityLabelInner.class); - Assertions.assertEquals("ozbhdmsmlmzq", model.labelName()); - Assertions.assertEquals("ft", model.labelId()); - Assertions.assertEquals("ae", model.informationType()); - Assertions.assertEquals("iahxicsl", model.informationTypeId()); + Assertions.assertEquals("cse", model.labelName()); + Assertions.assertEquals("wwnpj", model.labelId()); + Assertions.assertEquals("fz", model.informationType()); + Assertions.assertEquals("pchwa", model.informationTypeId()); Assertions.assertEquals(SensitivityLabelRank.NONE, model.rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelListResultTests.java index d50820606102..250dd68b644d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelListResultTests.java @@ -11,7 +11,7 @@ public final class SensitivityLabelListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SensitivityLabelListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"schemaName\":\"b\",\"tableName\":\"oefki\",\"columnName\":\"vtpuqujmqlgk\",\"labelName\":\"tndoaongbjc\",\"labelId\":\"ujitcjedftww\",\"informationType\":\"zkoj\",\"informationTypeId\":\"c\",\"isDisabled\":true,\"rank\":\"Low\"},\"managedBy\":\"uicybxarzgszuf\",\"id\":\"x\",\"name\":\"iqopidoamciod\",\"type\":\"khazxkhnzbonlwn\"},{\"properties\":{\"schemaName\":\"gokdwbwhks\",\"tableName\":\"cmrvexzt\",\"columnName\":\"t\",\"labelName\":\"sfraoyzko\",\"labelId\":\"tlmngu\",\"informationType\":\"wqaldsyu\",\"informationTypeId\":\"imerqfobwyznk\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"pfhpagmhrskdsnfd\",\"id\":\"doakgtdlmkkzevdl\",\"name\":\"ewpusdsttwvogvb\",\"type\":\"ejdcngqqmoakuf\"}],\"nextLink\":\"jzrwrdgrtw\"}") + "{\"value\":[{\"properties\":{\"schemaName\":\"rgaehvvibrxjj\",\"tableName\":\"oqbeitpkxzt\",\"columnName\":\"ob\",\"labelName\":\"ft\",\"labelId\":\"gfcwqmpimaqxzhem\",\"informationType\":\"h\",\"informationTypeId\":\"uj\",\"isDisabled\":false,\"rank\":\"Low\"},\"managedBy\":\"zzwc\",\"id\":\"lkb\",\"name\":\"wpfaj\",\"type\":\"jwltlwtjjgu\"}],\"nextLink\":\"alhsnvkc\"}") .toObject(SensitivityLabelListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelPropertiesTests.java index f6c55c564c0e..171751d0b89c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelPropertiesTests.java @@ -13,27 +13,27 @@ public final class SensitivityLabelPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SensitivityLabelProperties model = BinaryData.fromString( - "{\"schemaName\":\"gzd\",\"tableName\":\"swe\",\"columnName\":\"qwdxggicc\",\"labelName\":\"xqhuexm\",\"labelId\":\"tlstvlzywem\",\"informationType\":\"rncsdtclu\",\"informationTypeId\":\"ypbsfgytguslfead\",\"isDisabled\":false,\"rank\":\"High\"}") + "{\"schemaName\":\"xfpxtgqscja\",\"tableName\":\"t\",\"columnName\":\"hdqazkmtgguwp\",\"labelName\":\"r\",\"labelId\":\"civmmg\",\"informationType\":\"cf\",\"informationTypeId\":\"rxgkne\",\"isDisabled\":true,\"rank\":\"None\"}") .toObject(SensitivityLabelProperties.class); - Assertions.assertEquals("xqhuexm", model.labelName()); - Assertions.assertEquals("tlstvlzywem", model.labelId()); - Assertions.assertEquals("rncsdtclu", model.informationType()); - Assertions.assertEquals("ypbsfgytguslfead", model.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.HIGH, model.rank()); + Assertions.assertEquals("r", model.labelName()); + Assertions.assertEquals("civmmg", model.labelId()); + Assertions.assertEquals("cf", model.informationType()); + Assertions.assertEquals("rxgkne", model.informationTypeId()); + Assertions.assertEquals(SensitivityLabelRank.NONE, model.rank()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SensitivityLabelProperties model = new SensitivityLabelProperties().withLabelName("xqhuexm") - .withLabelId("tlstvlzywem") - .withInformationType("rncsdtclu") - .withInformationTypeId("ypbsfgytguslfead") - .withRank(SensitivityLabelRank.HIGH); + SensitivityLabelProperties model = new SensitivityLabelProperties().withLabelName("r") + .withLabelId("civmmg") + .withInformationType("cf") + .withInformationTypeId("rxgkne") + .withRank(SensitivityLabelRank.NONE); model = BinaryData.fromObject(model).toObject(SensitivityLabelProperties.class); - Assertions.assertEquals("xqhuexm", model.labelName()); - Assertions.assertEquals("tlstvlzywem", model.labelId()); - Assertions.assertEquals("rncsdtclu", model.informationType()); - Assertions.assertEquals("ypbsfgytguslfead", model.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.HIGH, model.rank()); + Assertions.assertEquals("r", model.labelName()); + Assertions.assertEquals("civmmg", model.labelId()); + Assertions.assertEquals("cf", model.informationType()); + Assertions.assertEquals("rxgkne", model.informationTypeId()); + Assertions.assertEquals(SensitivityLabelRank.NONE, model.rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateInnerTests.java index ceeb8962108d..d6403bd9a744 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateInnerTests.java @@ -15,39 +15,39 @@ public final class SensitivityLabelUpdateInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SensitivityLabelUpdateInner model = BinaryData.fromString( - "{\"properties\":{\"op\":\"remove\",\"schema\":\"hftqsxhqxujxukn\",\"table\":\"xdigrjg\",\"column\":\"ufzdmsyq\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"whbotzingamv\",\"tableName\":\"ho\",\"columnName\":\"qzudphq\",\"labelName\":\"vdkfwynwcvtbvk\",\"labelId\":\"hmtnvy\",\"informationType\":\"atkzwpcnpw\",\"informationTypeId\":\"jaesgvvsccya\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"wygzlvdnkfxusem\",\"id\":\"wzrmuh\",\"name\":\"pfcqdp\",\"type\":\"qxqvpsvuoymgc\"}},\"id\":\"elvezrypq\",\"name\":\"mfe\",\"type\":\"kerqwkyh\"}") + "{\"properties\":{\"op\":\"remove\",\"schema\":\"gat\",\"table\":\"eaahhvjhhn\",\"column\":\"kzyb\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"dj\",\"tableName\":\"yxkyxvx\",\"columnName\":\"blbjedn\",\"labelName\":\"lageuaulxun\",\"labelId\":\"jbnkpp\",\"informationType\":\"nenlsvxeizzg\",\"informationTypeId\":\"lnsrmffe\",\"isDisabled\":true,\"rank\":\"None\"},\"managedBy\":\"piymerteea\",\"id\":\"mx\",\"name\":\"iekkkzddrtkgdojb\",\"type\":\"xv\"}},\"id\":\"vrefdeesv\",\"name\":\"cuijpxt\",\"type\":\"s\"}") .toObject(SensitivityLabelUpdateInner.class); Assertions.assertEquals(SensitivityLabelUpdateKind.REMOVE, model.op()); - Assertions.assertEquals("hftqsxhqxujxukn", model.schema()); - Assertions.assertEquals("xdigrjg", model.table()); - Assertions.assertEquals("ufzdmsyq", model.column()); - Assertions.assertEquals("vdkfwynwcvtbvk", model.sensitivityLabel().labelName()); - Assertions.assertEquals("hmtnvy", model.sensitivityLabel().labelId()); - Assertions.assertEquals("atkzwpcnpw", model.sensitivityLabel().informationType()); - Assertions.assertEquals("jaesgvvsccya", model.sensitivityLabel().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.HIGH, model.sensitivityLabel().rank()); + Assertions.assertEquals("gat", model.schema()); + Assertions.assertEquals("eaahhvjhhn", model.table()); + Assertions.assertEquals("kzyb", model.column()); + Assertions.assertEquals("lageuaulxun", model.sensitivityLabel().labelName()); + Assertions.assertEquals("jbnkpp", model.sensitivityLabel().labelId()); + Assertions.assertEquals("nenlsvxeizzg", model.sensitivityLabel().informationType()); + Assertions.assertEquals("lnsrmffe", model.sensitivityLabel().informationTypeId()); + Assertions.assertEquals(SensitivityLabelRank.NONE, model.sensitivityLabel().rank()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SensitivityLabelUpdateInner model = new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.REMOVE) - .withSchema("hftqsxhqxujxukn") - .withTable("xdigrjg") - .withColumn("ufzdmsyq") - .withSensitivityLabel(new SensitivityLabelInner().withLabelName("vdkfwynwcvtbvk") - .withLabelId("hmtnvy") - .withInformationType("atkzwpcnpw") - .withInformationTypeId("jaesgvvsccya") - .withRank(SensitivityLabelRank.HIGH)); + .withSchema("gat") + .withTable("eaahhvjhhn") + .withColumn("kzyb") + .withSensitivityLabel(new SensitivityLabelInner().withLabelName("lageuaulxun") + .withLabelId("jbnkpp") + .withInformationType("nenlsvxeizzg") + .withInformationTypeId("lnsrmffe") + .withRank(SensitivityLabelRank.NONE)); model = BinaryData.fromObject(model).toObject(SensitivityLabelUpdateInner.class); Assertions.assertEquals(SensitivityLabelUpdateKind.REMOVE, model.op()); - Assertions.assertEquals("hftqsxhqxujxukn", model.schema()); - Assertions.assertEquals("xdigrjg", model.table()); - Assertions.assertEquals("ufzdmsyq", model.column()); - Assertions.assertEquals("vdkfwynwcvtbvk", model.sensitivityLabel().labelName()); - Assertions.assertEquals("hmtnvy", model.sensitivityLabel().labelId()); - Assertions.assertEquals("atkzwpcnpw", model.sensitivityLabel().informationType()); - Assertions.assertEquals("jaesgvvsccya", model.sensitivityLabel().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.HIGH, model.sensitivityLabel().rank()); + Assertions.assertEquals("gat", model.schema()); + Assertions.assertEquals("eaahhvjhhn", model.table()); + Assertions.assertEquals("kzyb", model.column()); + Assertions.assertEquals("lageuaulxun", model.sensitivityLabel().labelName()); + Assertions.assertEquals("jbnkpp", model.sensitivityLabel().labelId()); + Assertions.assertEquals("nenlsvxeizzg", model.sensitivityLabel().informationType()); + Assertions.assertEquals("lnsrmffe", model.sensitivityLabel().informationTypeId()); + Assertions.assertEquals(SensitivityLabelRank.NONE, model.sensitivityLabel().rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateListTests.java index ce5edef4f6f3..6fb2accaa6df 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateListTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateListTests.java @@ -17,16 +17,16 @@ public final class SensitivityLabelUpdateListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SensitivityLabelUpdateList model = BinaryData.fromString( - "{\"operations\":[{\"properties\":{\"op\":\"set\",\"schema\":\"jhzi\",\"table\":\"xgfpelolppv\",\"column\":\"srp\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"zraehtwd\",\"tableName\":\"ftswibyrcdlbhsh\",\"columnName\":\"p\",\"labelName\":\"cstwity\",\"labelId\":\"evxccedcp\",\"informationType\":\"dyodnwzxltj\",\"informationTypeId\":\"nhltiugcxn\",\"isDisabled\":true,\"rank\":\"High\"},\"managedBy\":\"ibyqunyowxwlmdj\",\"id\":\"kv\",\"name\":\"g\",\"type\":\"vfvpdbodaciz\"}},\"id\":\"j\",\"name\":\"lhkrribdeibqipqk\",\"type\":\"hvxndzwmkrefajpj\"},{\"properties\":{\"op\":\"set\",\"schema\":\"kqnyh\",\"table\":\"b\",\"column\":\"j\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"fxzsjabibsyst\",\"tableName\":\"fsdjpvkvp\",\"columnName\":\"xbkzbzkdvncj\",\"labelName\":\"udurgkakmokz\",\"labelId\":\"jk\",\"informationType\":\"fhmouwq\",\"informationTypeId\":\"zrfze\",\"isDisabled\":true,\"rank\":\"High\"},\"managedBy\":\"ikayuhqlbjbsybb\",\"id\":\"wrv\",\"name\":\"ldgmfpgvmpip\",\"type\":\"slthaq\"}},\"id\":\"x\",\"name\":\"smwutwbdsrezpd\",\"type\":\"hneuyowqkd\"},{\"properties\":{\"op\":\"set\",\"schema\":\"i\",\"table\":\"ib\",\"column\":\"rcgp\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"imejzanl\",\"tableName\":\"xi\",\"columnName\":\"rmbzo\",\"labelName\":\"kixrj\",\"labelId\":\"irgzp\",\"informationType\":\"lazszrn\",\"informationTypeId\":\"iin\",\"isDisabled\":false,\"rank\":\"Critical\"},\"managedBy\":\"ylwbtlhflsjcdhsz\",\"id\":\"jvfbgofelja\",\"name\":\"rqmq\",\"type\":\"ldvriiiojnalghfk\"}},\"id\":\"tvsexsowuel\",\"name\":\"qhhahhxvrhmzkwpj\",\"type\":\"wws\"}]}") + "{\"operations\":[{\"properties\":{\"op\":\"set\",\"schema\":\"fvpgshoxgsg\",\"table\":\"p\",\"column\":\"gzdjtxvzf\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"gaqvlgafcqusrd\",\"tableName\":\"t\",\"columnName\":\"sdtutnwlduyc\",\"labelName\":\"zhyrmewipmve\",\"labelId\":\"xukuqgsj\",\"informationType\":\"undxgketw\",\"informationTypeId\":\"hzjhf\",\"isDisabled\":true,\"rank\":\"High\"},\"managedBy\":\"uvgp\",\"id\":\"uneqsxvmhf\",\"name\":\"uzjyihsasbhudypo\",\"type\":\"yue\"}},\"id\":\"slynsqyrpfoo\",\"name\":\"rlttymsjnygqdnfw\",\"type\":\"zdzgtilaxhnfhqly\"},{\"properties\":{\"op\":\"set\",\"schema\":\"ouwivkxoyzunbixx\",\"table\":\"ti\",\"column\":\"vcpwpgclrc\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"oxfrkenxpmyyefr\",\"tableName\":\"pdnqqskawaoqvmmb\",\"columnName\":\"qfr\",\"labelName\":\"lkzmegnitgvkxl\",\"labelId\":\"qdrfegcealzxwhc\",\"informationType\":\"symoyq\",\"informationTypeId\":\"wigdi\",\"isDisabled\":false,\"rank\":\"Critical\"},\"managedBy\":\"omfaj\",\"id\":\"wasqvdaeyyg\",\"name\":\"xakjsqzhzb\",\"type\":\"zkgimsid\"}},\"id\":\"asi\",\"name\":\"ddyvvjskgfmo\",\"type\":\"wa\"}]}") .toObject(SensitivityLabelUpdateList.class); Assertions.assertEquals(SensitivityLabelUpdateKind.SET, model.operations().get(0).op()); - Assertions.assertEquals("jhzi", model.operations().get(0).schema()); - Assertions.assertEquals("xgfpelolppv", model.operations().get(0).table()); - Assertions.assertEquals("srp", model.operations().get(0).column()); - Assertions.assertEquals("cstwity", model.operations().get(0).sensitivityLabel().labelName()); - Assertions.assertEquals("evxccedcp", model.operations().get(0).sensitivityLabel().labelId()); - Assertions.assertEquals("dyodnwzxltj", model.operations().get(0).sensitivityLabel().informationType()); - Assertions.assertEquals("nhltiugcxn", model.operations().get(0).sensitivityLabel().informationTypeId()); + Assertions.assertEquals("fvpgshoxgsg", model.operations().get(0).schema()); + Assertions.assertEquals("p", model.operations().get(0).table()); + Assertions.assertEquals("gzdjtxvzf", model.operations().get(0).column()); + Assertions.assertEquals("zhyrmewipmve", model.operations().get(0).sensitivityLabel().labelName()); + Assertions.assertEquals("xukuqgsj", model.operations().get(0).sensitivityLabel().labelId()); + Assertions.assertEquals("undxgketw", model.operations().get(0).sensitivityLabel().informationType()); + Assertions.assertEquals("hzjhf", model.operations().get(0).sensitivityLabel().informationTypeId()); Assertions.assertEquals(SensitivityLabelRank.HIGH, model.operations().get(0).sensitivityLabel().rank()); } @@ -34,41 +34,32 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { SensitivityLabelUpdateList model = new SensitivityLabelUpdateList().withOperations(Arrays.asList( new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.SET) - .withSchema("jhzi") - .withTable("xgfpelolppv") - .withColumn("srp") - .withSensitivityLabel(new SensitivityLabelInner().withLabelName("cstwity") - .withLabelId("evxccedcp") - .withInformationType("dyodnwzxltj") - .withInformationTypeId("nhltiugcxn") + .withSchema("fvpgshoxgsg") + .withTable("p") + .withColumn("gzdjtxvzf") + .withSensitivityLabel(new SensitivityLabelInner().withLabelName("zhyrmewipmve") + .withLabelId("xukuqgsj") + .withInformationType("undxgketw") + .withInformationTypeId("hzjhf") .withRank(SensitivityLabelRank.HIGH)), new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.SET) - .withSchema("kqnyh") - .withTable("b") - .withColumn("j") - .withSensitivityLabel(new SensitivityLabelInner().withLabelName("udurgkakmokz") - .withLabelId("jk") - .withInformationType("fhmouwq") - .withInformationTypeId("zrfze") - .withRank(SensitivityLabelRank.HIGH)), - new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.SET) - .withSchema("i") - .withTable("ib") - .withColumn("rcgp") - .withSensitivityLabel(new SensitivityLabelInner().withLabelName("kixrj") - .withLabelId("irgzp") - .withInformationType("lazszrn") - .withInformationTypeId("iin") + .withSchema("ouwivkxoyzunbixx") + .withTable("ti") + .withColumn("vcpwpgclrc") + .withSensitivityLabel(new SensitivityLabelInner().withLabelName("lkzmegnitgvkxl") + .withLabelId("qdrfegcealzxwhc") + .withInformationType("symoyq") + .withInformationTypeId("wigdi") .withRank(SensitivityLabelRank.CRITICAL)))); model = BinaryData.fromObject(model).toObject(SensitivityLabelUpdateList.class); Assertions.assertEquals(SensitivityLabelUpdateKind.SET, model.operations().get(0).op()); - Assertions.assertEquals("jhzi", model.operations().get(0).schema()); - Assertions.assertEquals("xgfpelolppv", model.operations().get(0).table()); - Assertions.assertEquals("srp", model.operations().get(0).column()); - Assertions.assertEquals("cstwity", model.operations().get(0).sensitivityLabel().labelName()); - Assertions.assertEquals("evxccedcp", model.operations().get(0).sensitivityLabel().labelId()); - Assertions.assertEquals("dyodnwzxltj", model.operations().get(0).sensitivityLabel().informationType()); - Assertions.assertEquals("nhltiugcxn", model.operations().get(0).sensitivityLabel().informationTypeId()); + Assertions.assertEquals("fvpgshoxgsg", model.operations().get(0).schema()); + Assertions.assertEquals("p", model.operations().get(0).table()); + Assertions.assertEquals("gzdjtxvzf", model.operations().get(0).column()); + Assertions.assertEquals("zhyrmewipmve", model.operations().get(0).sensitivityLabel().labelName()); + Assertions.assertEquals("xukuqgsj", model.operations().get(0).sensitivityLabel().labelId()); + Assertions.assertEquals("undxgketw", model.operations().get(0).sensitivityLabel().informationType()); + Assertions.assertEquals("hzjhf", model.operations().get(0).sensitivityLabel().informationTypeId()); Assertions.assertEquals(SensitivityLabelRank.HIGH, model.operations().get(0).sensitivityLabel().rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdatePropertiesInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdatePropertiesInnerTests.java index 240ae285b258..ce1b14ef3f58 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdatePropertiesInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdatePropertiesInnerTests.java @@ -15,40 +15,40 @@ public final class SensitivityLabelUpdatePropertiesInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SensitivityLabelUpdatePropertiesInner model = BinaryData.fromString( - "{\"op\":\"set\",\"schema\":\"bopgxedkowepbqp\",\"table\":\"rfkbwccsnjvcdwxl\",\"column\":\"qek\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"htjsying\",\"tableName\":\"qatmtdhtmdvy\",\"columnName\":\"ikdgszywkbir\",\"labelName\":\"uzhlhkjoqrv\",\"labelId\":\"aatjinrvgoupmfi\",\"informationType\":\"fggjioolvr\",\"informationTypeId\":\"kvtkkg\",\"isDisabled\":false,\"rank\":\"Critical\"},\"managedBy\":\"gvjayvblmh\",\"id\":\"k\",\"name\":\"uhbxvvy\",\"type\":\"gsopbyrqufegxu\"}}") + "{\"op\":\"set\",\"schema\":\"prtujwsawdd\",\"table\":\"ibabxvititvtzeex\",\"column\":\"vo\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"lecdmdqbw\",\"tableName\":\"pqtgsfjac\",\"columnName\":\"lhhxudbxvodhtnsi\",\"labelName\":\"dhzmmesckdlp\",\"labelId\":\"zrcxfailcfxwmdbo\",\"informationType\":\"fgsftufqob\",\"informationTypeId\":\"lnacgcc\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"izvy\",\"id\":\"nrzvuljraaer\",\"name\":\"nok\",\"type\":\"gukkjqnvbroy\"}}") .toObject(SensitivityLabelUpdatePropertiesInner.class); Assertions.assertEquals(SensitivityLabelUpdateKind.SET, model.op()); - Assertions.assertEquals("bopgxedkowepbqp", model.schema()); - Assertions.assertEquals("rfkbwccsnjvcdwxl", model.table()); - Assertions.assertEquals("qek", model.column()); - Assertions.assertEquals("uzhlhkjoqrv", model.sensitivityLabel().labelName()); - Assertions.assertEquals("aatjinrvgoupmfi", model.sensitivityLabel().labelId()); - Assertions.assertEquals("fggjioolvr", model.sensitivityLabel().informationType()); - Assertions.assertEquals("kvtkkg", model.sensitivityLabel().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.CRITICAL, model.sensitivityLabel().rank()); + Assertions.assertEquals("prtujwsawdd", model.schema()); + Assertions.assertEquals("ibabxvititvtzeex", model.table()); + Assertions.assertEquals("vo", model.column()); + Assertions.assertEquals("dhzmmesckdlp", model.sensitivityLabel().labelName()); + Assertions.assertEquals("zrcxfailcfxwmdbo", model.sensitivityLabel().labelId()); + Assertions.assertEquals("fgsftufqob", model.sensitivityLabel().informationType()); + Assertions.assertEquals("lnacgcc", model.sensitivityLabel().informationTypeId()); + Assertions.assertEquals(SensitivityLabelRank.HIGH, model.sensitivityLabel().rank()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SensitivityLabelUpdatePropertiesInner model = new SensitivityLabelUpdatePropertiesInner().withOp(SensitivityLabelUpdateKind.SET) - .withSchema("bopgxedkowepbqp") - .withTable("rfkbwccsnjvcdwxl") - .withColumn("qek") - .withSensitivityLabel(new SensitivityLabelInner().withLabelName("uzhlhkjoqrv") - .withLabelId("aatjinrvgoupmfi") - .withInformationType("fggjioolvr") - .withInformationTypeId("kvtkkg") - .withRank(SensitivityLabelRank.CRITICAL)); + .withSchema("prtujwsawdd") + .withTable("ibabxvititvtzeex") + .withColumn("vo") + .withSensitivityLabel(new SensitivityLabelInner().withLabelName("dhzmmesckdlp") + .withLabelId("zrcxfailcfxwmdbo") + .withInformationType("fgsftufqob") + .withInformationTypeId("lnacgcc") + .withRank(SensitivityLabelRank.HIGH)); model = BinaryData.fromObject(model).toObject(SensitivityLabelUpdatePropertiesInner.class); Assertions.assertEquals(SensitivityLabelUpdateKind.SET, model.op()); - Assertions.assertEquals("bopgxedkowepbqp", model.schema()); - Assertions.assertEquals("rfkbwccsnjvcdwxl", model.table()); - Assertions.assertEquals("qek", model.column()); - Assertions.assertEquals("uzhlhkjoqrv", model.sensitivityLabel().labelName()); - Assertions.assertEquals("aatjinrvgoupmfi", model.sensitivityLabel().labelId()); - Assertions.assertEquals("fggjioolvr", model.sensitivityLabel().informationType()); - Assertions.assertEquals("kvtkkg", model.sensitivityLabel().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.CRITICAL, model.sensitivityLabel().rank()); + Assertions.assertEquals("prtujwsawdd", model.schema()); + Assertions.assertEquals("ibabxvititvtzeex", model.table()); + Assertions.assertEquals("vo", model.column()); + Assertions.assertEquals("dhzmmesckdlp", model.sensitivityLabel().labelName()); + Assertions.assertEquals("zrcxfailcfxwmdbo", model.sensitivityLabel().labelId()); + Assertions.assertEquals("fgsftufqob", model.sensitivityLabel().informationType()); + Assertions.assertEquals("lnacgcc", model.sensitivityLabel().informationTypeId()); + Assertions.assertEquals(SensitivityLabelRank.HIGH, model.sensitivityLabel().rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageInnerTests.java index f7717d21b751..8f2db1079978 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageInnerTests.java @@ -11,7 +11,7 @@ public final class ServerUsageInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerUsageInner model = BinaryData.fromString( - "{\"name\":\"alhsnvkc\",\"resourceName\":\"xzrpo\",\"displayName\":\"mlnwiaaomylweazu\",\"currentValue\":43.22725195175988,\"limit\":22.13423592070195,\"unit\":\"npjhlfzswpchwahf\",\"nextResetTime\":\"2021-07-25T08:18:30Z\"}") + "{\"name\":\"rjvzuyt\",\"resourceName\":\"mlmuowol\",\"displayName\":\"uir\",\"currentValue\":52.581829080184136,\"limit\":78.64054728971267,\"unit\":\"nw\",\"nextResetTime\":\"2021-02-20T02:06:19Z\"}") .toObject(ServerUsageInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageListResultTests.java index 17da8f19ee35..f482aeff0f8a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageListResultTests.java @@ -13,13 +13,14 @@ public final class ServerUsageListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerUsageListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"em\",\"resourceName\":\"h\",\"displayName\":\"uj\",\"currentValue\":1.9673828924282377,\"limit\":61.87265105214077,\"unit\":\"wculkbaw\",\"nextResetTime\":\"2021-01-10T09:45:55Z\"}],\"nextLink\":\"njwltlwtjjgu\"}") + "{\"value\":[{\"name\":\"pdfgkmtdherngbt\",\"resourceName\":\"uahokq\",\"displayName\":\"bkau\",\"currentValue\":33.28571037343065,\"limit\":37.56433108394144,\"unit\":\"wpnulaiywzejyw\",\"nextResetTime\":\"2021-06-24T13:04:54Z\"},{\"name\":\"koj\",\"resourceName\":\"l\",\"displayName\":\"npdwr\",\"currentValue\":54.92209371720976,\"limit\":86.45776975178757,\"unit\":\"snnfhyetefyp\",\"nextResetTime\":\"2021-08-10T19:55:02Z\"}],\"nextLink\":\"tfjgt\"}") .toObject(ServerUsageListResult.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServerUsageListResult model = new ServerUsageListResult().withValue(Arrays.asList(new ServerUsageInner())); + ServerUsageListResult model + = new ServerUsageListResult().withValue(Arrays.asList(new ServerUsageInner(), new ServerUsageInner())); model = BinaryData.fromObject(model).toObject(ServerUsageListResult.class); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionInnerTests.java deleted file mode 100644 index 2aafe8c85254..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; - -public final class SkuDescriptionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkuDescriptionInner model = BinaryData.fromString( - "{\"resourceType\":\"bsojk\",\"name\":\"nhmdptysprqs\",\"size\":\"zxojpslsv\",\"locations\":[\"liufiqwoyxq\"],\"locationInfo\":[{\"location\":\"cohhoucqpqo\",\"zones\":[\"x\",\"rzdcgdzbenribcaw\",\"tzqdd\",\"jwfljhznamtua\"]},{\"location\":\"mzwcjjncqt\",\"zones\":[\"izvg\",\"gat\",\"uuvbx\",\"grebwggahttzlsw\"]},{\"location\":\"ajqfutlx\",\"zones\":[\"zasunwqrjzfrgq\",\"aohcmbuocn\",\"r\",\"hmbpyryxamebly\"]},{\"location\":\"yvk\",\"zones\":[\"rocxnehvs\"]}],\"restrictions\":[\"datadlfp\",\"dataapucygvo\",\"datavyuns\",\"dataxlghieegj\"]}") - .toObject(SkuDescriptionInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuDescriptionInner model = new SkuDescriptionInner(); - model = BinaryData.fromObject(model).toObject(SkuDescriptionInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionListTests.java deleted file mode 100644 index f69bf238436f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionListTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SkuDescriptionList; - -public final class SkuDescriptionListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkuDescriptionList model = BinaryData.fromString( - "{\"value\":[{\"resourceType\":\"njad\",\"name\":\"oawjqoyueay\",\"size\":\"pcmsplbyrrueqth\",\"locations\":[\"nmbscbbx\",\"gdhxi\",\"d\",\"opedbwdpyqyybxub\"],\"locationInfo\":[{\"location\":\"afcbqw\",\"zones\":[\"jelaqacigele\"]},{\"location\":\"hdbvqvwzkjop\",\"zones\":[\"onrlkwzdqybxceak\",\"cptsoqfyiase\",\"chkrttzr\",\"zisgykiuemvanb\"]}],\"restrictions\":[\"datahmnr\"]}]}") - .toObject(SkuDescriptionList.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuDescriptionList model = new SkuDescriptionList(); - model = BinaryData.fromObject(model).toObject(SkuDescriptionList.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuLocationInfoItemTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuLocationInfoItemTests.java deleted file mode 100644 index 7db9deafd144..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuLocationInfoItemTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SkuLocationInfoItem; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SkuLocationInfoItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkuLocationInfoItem model - = BinaryData.fromString("{\"location\":\"gvvpasek\",\"zones\":[\"uxantuygdhgaqipi\",\"piwrqofu\",\"o\"]}") - .toObject(SkuLocationInfoItem.class); - Assertions.assertEquals("gvvpasek", model.location()); - Assertions.assertEquals("uxantuygdhgaqipi", model.zones().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuLocationInfoItem model = new SkuLocationInfoItem().withLocation("gvvpasek") - .withZones(Arrays.asList("uxantuygdhgaqipi", "piwrqofu", "o")); - model = BinaryData.fromObject(model).toObject(SkuLocationInfoItem.class); - Assertions.assertEquals("gvvpasek", model.location()); - Assertions.assertEquals("uxantuygdhgaqipi", model.zones().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuTests.java index b4684f03f99f..ca733e46b382 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuTests.java @@ -11,19 +11,19 @@ public final class SkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Sku model = BinaryData.fromString("{\"tier\":\"xipeilpjzuaejx\",\"name\":\"ltskzbbtd\",\"capacity\":369228588}") - .toObject(Sku.class); - Assertions.assertEquals("xipeilpjzuaejx", model.tier()); - Assertions.assertEquals("ltskzbbtd", model.name()); - Assertions.assertEquals(369228588, model.capacity()); + Sku model + = BinaryData.fromString("{\"tier\":\"yl\",\"name\":\"ool\",\"capacity\":1240689127}").toObject(Sku.class); + Assertions.assertEquals("yl", model.tier()); + Assertions.assertEquals("ool", model.name()); + Assertions.assertEquals(1240689127, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Sku model = new Sku().withTier("xipeilpjzuaejx").withName("ltskzbbtd").withCapacity(369228588); + Sku model = new Sku().withTier("yl").withName("ool").withCapacity(1240689127); model = BinaryData.fromObject(model).toObject(Sku.class); - Assertions.assertEquals("xipeilpjzuaejx", model.tier()); - Assertions.assertEquals("ltskzbbtd", model.name()); - Assertions.assertEquals(369228588, model.capacity()); + Assertions.assertEquals("yl", model.tier()); + Assertions.assertEquals("ool", model.name()); + Assertions.assertEquals(1240689127, model.capacity()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigPropertiesTests.java deleted file mode 100644 index 7e9c527f41c0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigProperties model = BinaryData.fromString( - "{\"time\":\"2021-05-30T20:22:49Z\",\"content\":\"jlrigjkskyrioovz\",\"filename\":\"sxwaabzm\",\"configurationType\":\"Artifact\"}") - .toObject(SparkConfigProperties.class); - Assertions.assertEquals("jlrigjkskyrioovz", model.content()); - Assertions.assertEquals("sxwaabzm", model.filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.configurationType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigProperties model = new SparkConfigProperties().withContent("jlrigjkskyrioovz") - .withFilename("sxwaabzm") - .withConfigurationType(ConfigurationType.ARTIFACT); - model = BinaryData.fromObject(model).toObject(SparkConfigProperties.class); - Assertions.assertEquals("jlrigjkskyrioovz", model.content()); - Assertions.assertEquals("sxwaabzm", model.filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.configurationType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationInfoTests.java deleted file mode 100644 index 99e4c71f3c84..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationInfoTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationInfo; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigurationInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigurationInfo model = BinaryData.fromString( - "{\"description\":\"zhxogjggsvo\",\"configs\":{\"kmdyomkxfbvfbh\":\"kxibdafh\",\"rhpw\":\"y\"},\"annotations\":[\"deimawzov\"],\"notes\":\"kumuikjcjca\",\"createdBy\":\"bwsnsqow\",\"created\":\"2021-06-25T23:30:28Z\",\"configMergeRule\":{\"ve\":\"likytwvczcswka\",\"pqthehnmnaoya\":\"yfdvlvhbwrnfxtgd\"}}") - .toObject(SparkConfigurationInfo.class); - Assertions.assertEquals("zhxogjggsvo", model.description()); - Assertions.assertEquals("kxibdafh", model.configs().get("kmdyomkxfbvfbh")); - Assertions.assertEquals("deimawzov", model.annotations().get(0)); - Assertions.assertEquals("kumuikjcjca", model.notes()); - Assertions.assertEquals("bwsnsqow", model.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-25T23:30:28Z"), model.created()); - Assertions.assertEquals("likytwvczcswka", model.configMergeRule().get("ve")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigurationInfo model = new SparkConfigurationInfo().withDescription("zhxogjggsvo") - .withConfigs(mapOf("kmdyomkxfbvfbh", "kxibdafh", "rhpw", "y")) - .withAnnotations(Arrays.asList("deimawzov")) - .withNotes("kumuikjcjca") - .withCreatedBy("bwsnsqow") - .withCreated(OffsetDateTime.parse("2021-06-25T23:30:28Z")) - .withConfigMergeRule(mapOf("ve", "likytwvczcswka", "pqthehnmnaoya", "yfdvlvhbwrnfxtgd")); - model = BinaryData.fromObject(model).toObject(SparkConfigurationInfo.class); - Assertions.assertEquals("zhxogjggsvo", model.description()); - Assertions.assertEquals("kxibdafh", model.configs().get("kmdyomkxfbvfbh")); - Assertions.assertEquals("deimawzov", model.annotations().get(0)); - Assertions.assertEquals("kumuikjcjca", model.notes()); - Assertions.assertEquals("bwsnsqow", model.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-25T23:30:28Z"), model.created()); - Assertions.assertEquals("likytwvczcswka", model.configMergeRule().get("ve")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationListResponseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationListResponseTests.java deleted file mode 100644 index 28122271c702..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationListResponseTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import com.azure.resourcemanager.synapse.models.SparkConfigurationListResponse; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigurationListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigurationListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"oe\",\"configs\":{\"drlktg\":\"wankltytmhdroznn\",\"waeeczgfb\":\"csgguxhemlw\",\"zujksrlsmdes\":\"kklelssxblycs\"},\"annotations\":[\"pvmjcdoewbid\",\"vteo\",\"xvgpiude\",\"gfsxzec\"],\"notes\":\"xw\",\"createdBy\":\"fykhvuhxepmru\",\"created\":\"2021-01-01T13:09:47Z\",\"configMergeRule\":{\"lujdjltymkmv\":\"aobn\",\"pphkixkykxds\":\"uihywart\"}},\"etag\":\"pemmucfxhik\",\"id\":\"flrmymyi\",\"name\":\"cqlh\",\"type\":\"isws\"},{\"properties\":{\"description\":\"iiiovgqcgxuugq\",\"configs\":{\"dtguk\":\"totiowlxteqdptjg\",\"gygqwah\":\"anblwphqlkccu\",\"gniiprglvaw\":\"iul\"},\"annotations\":[\"d\"],\"notes\":\"ypivlsbb\",\"createdBy\":\"mcub\",\"created\":\"2021-07-10T21:52:44Z\",\"configMergeRule\":{\"h\":\"xxkubvphavp\",\"bbttefjo\":\"rbqgvgov\"}},\"etag\":\"ssqyzqedik\",\"id\":\"frdbiqmrjgeihf\",\"name\":\"lg\",\"type\":\"wfiwzcxmj\"},{\"properties\":{\"description\":\"yephmgtvljvrcmyf\",\"configs\":{\"pomyqwcabvnuile\":\"pgxh\"},\"annotations\":[\"swlpaugmrmfj\",\"rxwtoaukhfkvc\"],\"notes\":\"izmoaeds\",\"createdBy\":\"wuived\",\"created\":\"2021-07-25T04:49:06Z\",\"configMergeRule\":{\"omguamlj\":\"ewxeiqbpsm\",\"gmsplzgaufcshhv\":\"l\",\"ixt\":\"ewgnxkympqanxrj\"}},\"etag\":\"taoypnyghshxc\",\"id\":\"lhkgmnsghp\",\"name\":\"ycphdrwjjkhvyo\",\"type\":\"ac\"}],\"nextLink\":\"zvxnqmhrp\"}") - .toObject(SparkConfigurationListResponse.class); - Assertions.assertEquals("oe", model.value().get(0).description()); - Assertions.assertEquals("wankltytmhdroznn", model.value().get(0).configs().get("drlktg")); - Assertions.assertEquals("pvmjcdoewbid", model.value().get(0).annotations().get(0)); - Assertions.assertEquals("xw", model.value().get(0).notes()); - Assertions.assertEquals("fykhvuhxepmru", model.value().get(0).createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-01T13:09:47Z"), model.value().get(0).created()); - Assertions.assertEquals("aobn", model.value().get(0).configMergeRule().get("lujdjltymkmv")); - Assertions.assertEquals("zvxnqmhrp", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigurationListResponse model = new SparkConfigurationListResponse() - .withValue(Arrays.asList( - new SparkConfigurationResourceInner().withDescription("oe") - .withConfigs(mapOf("drlktg", "wankltytmhdroznn", "waeeczgfb", "csgguxhemlw", "zujksrlsmdes", - "kklelssxblycs")) - .withAnnotations(Arrays.asList("pvmjcdoewbid", "vteo", "xvgpiude", "gfsxzec")) - .withNotes("xw") - .withCreatedBy("fykhvuhxepmru") - .withCreated(OffsetDateTime.parse("2021-01-01T13:09:47Z")) - .withConfigMergeRule(mapOf("lujdjltymkmv", "aobn", "pphkixkykxds", "uihywart")), - new SparkConfigurationResourceInner().withDescription("iiiovgqcgxuugq") - .withConfigs(mapOf("dtguk", "totiowlxteqdptjg", "gygqwah", "anblwphqlkccu", "gniiprglvaw", "iul")) - .withAnnotations(Arrays.asList("d")) - .withNotes("ypivlsbb") - .withCreatedBy("mcub") - .withCreated(OffsetDateTime.parse("2021-07-10T21:52:44Z")) - .withConfigMergeRule(mapOf("h", "xxkubvphavp", "bbttefjo", "rbqgvgov")), - new SparkConfigurationResourceInner().withDescription("yephmgtvljvrcmyf") - .withConfigs(mapOf("pomyqwcabvnuile", "pgxh")) - .withAnnotations(Arrays.asList("swlpaugmrmfj", "rxwtoaukhfkvc")) - .withNotes("izmoaeds") - .withCreatedBy("wuived") - .withCreated(OffsetDateTime.parse("2021-07-25T04:49:06Z")) - .withConfigMergeRule( - mapOf("omguamlj", "ewxeiqbpsm", "gmsplzgaufcshhv", "l", "ixt", "ewgnxkympqanxrj")))) - .withNextLink("zvxnqmhrp"); - model = BinaryData.fromObject(model).toObject(SparkConfigurationListResponse.class); - Assertions.assertEquals("oe", model.value().get(0).description()); - Assertions.assertEquals("wankltytmhdroznn", model.value().get(0).configs().get("drlktg")); - Assertions.assertEquals("pvmjcdoewbid", model.value().get(0).annotations().get(0)); - Assertions.assertEquals("xw", model.value().get(0).notes()); - Assertions.assertEquals("fykhvuhxepmru", model.value().get(0).createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-01T13:09:47Z"), model.value().get(0).created()); - Assertions.assertEquals("aobn", model.value().get(0).configMergeRule().get("lujdjltymkmv")); - Assertions.assertEquals("zvxnqmhrp", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationResourceInnerTests.java deleted file mode 100644 index b6dd4d26a34d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationResourceInnerTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigurationResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigurationResourceInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"knmzlanrupdwvnp\",\"configs\":{\"laiwdcxsmlzzh\":\"nzqtpjhmqrhvt\",\"vlnnpx\":\"dtxetlgydlh\",\"fiqgeaar\":\"b\"},\"annotations\":[\"ekglklb\",\"ulidwc\",\"vmzegj\"],\"notes\":\"fhjirwgdnqzbrfk\",\"createdBy\":\"zhzmtksjci\",\"created\":\"2021-07-31T03:36:59Z\",\"configMergeRule\":{\"lkeuac\":\"xcdglj\",\"dgycxnmskwhqjjy\":\"tomflrytswfpf\",\"dwqslsrhmpqvw\":\"lurlpshhkvp\",\"qejo\":\"skondcbrwimu\"}},\"etag\":\"vyrrleaesinuq\",\"id\":\"ljqobbpihehcecyb\",\"name\":\"rqbrjbbmpxdlvyk\",\"type\":\"rexcrseqwjksghu\"}") - .toObject(SparkConfigurationResourceInner.class); - Assertions.assertEquals("knmzlanrupdwvnp", model.description()); - Assertions.assertEquals("nzqtpjhmqrhvt", model.configs().get("laiwdcxsmlzzh")); - Assertions.assertEquals("ekglklb", model.annotations().get(0)); - Assertions.assertEquals("fhjirwgdnqzbrfk", model.notes()); - Assertions.assertEquals("zhzmtksjci", model.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T03:36:59Z"), model.created()); - Assertions.assertEquals("xcdglj", model.configMergeRule().get("lkeuac")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigurationResourceInner model = new SparkConfigurationResourceInner().withDescription("knmzlanrupdwvnp") - .withConfigs(mapOf("laiwdcxsmlzzh", "nzqtpjhmqrhvt", "vlnnpx", "dtxetlgydlh", "fiqgeaar", "b")) - .withAnnotations(Arrays.asList("ekglklb", "ulidwc", "vmzegj")) - .withNotes("fhjirwgdnqzbrfk") - .withCreatedBy("zhzmtksjci") - .withCreated(OffsetDateTime.parse("2021-07-31T03:36:59Z")) - .withConfigMergeRule(mapOf("lkeuac", "xcdglj", "dgycxnmskwhqjjy", "tomflrytswfpf", "dwqslsrhmpqvw", - "lurlpshhkvp", "qejo", "skondcbrwimu")); - model = BinaryData.fromObject(model).toObject(SparkConfigurationResourceInner.class); - Assertions.assertEquals("knmzlanrupdwvnp", model.description()); - Assertions.assertEquals("nzqtpjhmqrhvt", model.configs().get("laiwdcxsmlzzh")); - Assertions.assertEquals("ekglklb", model.annotations().get(0)); - Assertions.assertEquals("fhjirwgdnqzbrfk", model.notes()); - Assertions.assertEquals("zhzmtksjci", model.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T03:36:59Z"), model.created()); - Assertions.assertEquals("xcdglj", model.configMergeRule().get("lkeuac")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsGetWithResponseMockTests.java deleted file mode 100644 index 2615aa266f8c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsGetWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SparkConfigurationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"description\":\"xgkrswksykkbxk\",\"configs\":{\"wlmnwzo\":\"b\",\"bakdlkvggcmfns\":\"nvuqddlggbqaolgz\",\"tpkmixwe\":\"f\"},\"annotations\":[\"s\",\"gsmepnqvxgvoh\",\"bthhxmoevvude\"],\"notes\":\"fhgannvwxqhpjhub\",\"createdBy\":\"xvzg\",\"created\":\"2021-02-19T11:51:14Z\",\"configMergeRule\":{\"xnwfmzvzt\":\"hhogal\",\"fcssanybzzghvd\":\"uebpamq\",\"jsvcdhlyw\":\"eum\"}},\"etag\":\"ookju\",\"id\":\"zxezriwgo\",\"name\":\"wapcqksaaapxjhc\",\"type\":\"tibenwsd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SparkConfigurationResource response = manager.sparkConfigurations() - .getWithResponse("gz", "wdizc", "jixiujzkc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xgkrswksykkbxk", response.description()); - Assertions.assertEquals("b", response.configs().get("wlmnwzo")); - Assertions.assertEquals("s", response.annotations().get(0)); - Assertions.assertEquals("fhgannvwxqhpjhub", response.notes()); - Assertions.assertEquals("xvzg", response.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T11:51:14Z"), response.created()); - Assertions.assertEquals("hhogal", response.configMergeRule().get("xnwfmzvzt")); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationsListByWorkspaceMockTests.java deleted file mode 100644 index df121205c91d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationsListByWorkspaceMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SparkConfigurationsOperationsListByWorkspaceMockTests { - @Test - public void testListByWorkspace() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"eszyaqgomlbmfgge\",\"configs\":{\"hh\":\"fekcjjlwkye\"},\"annotations\":[\"pulnrfcqufmcihp\",\"nowrerjpx\",\"tchdw\",\"qqidqim\"],\"notes\":\"bbfjmd\",\"createdBy\":\"v\",\"created\":\"2021-03-31T03:42:15Z\",\"configMergeRule\":{\"snlow\":\"mheftyaphqeofyt\"}},\"etag\":\"mcqixuanccqvjf\",\"id\":\"gfqpmq\",\"name\":\"xpjhcfaaradci\",\"type\":\"vmufzgug\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.sparkConfigurationsOperations() - .listByWorkspace("pvdaahlfrcqklp", "vzp", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("eszyaqgomlbmfgge", response.iterator().next().description()); - Assertions.assertEquals("fekcjjlwkye", response.iterator().next().configs().get("hh")); - Assertions.assertEquals("pulnrfcqufmcihp", response.iterator().next().annotations().get(0)); - Assertions.assertEquals("bbfjmd", response.iterator().next().notes()); - Assertions.assertEquals("v", response.iterator().next().createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-31T03:42:15Z"), response.iterator().next().created()); - Assertions.assertEquals("mheftyaphqeofyt", response.iterator().next().configMergeRule().get("snlow")); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnInnerTests.java index 7ca49eaa5ca3..c923fcae663b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnInnerTests.java @@ -13,15 +13,15 @@ public final class SqlPoolColumnInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolColumnInner model = BinaryData.fromString( - "{\"properties\":{\"columnType\":\"tinyint\",\"isComputed\":false},\"id\":\"ubxcbihw\",\"name\":\"knfd\",\"type\":\"twjchrdg\"}") + "{\"properties\":{\"columnType\":\"real\",\"isComputed\":false},\"id\":\"ashcxlpmjerbdk\",\"name\":\"lvidizozs\",\"type\":\"bccxjmonfdgn\"}") .toObject(SqlPoolColumnInner.class); - Assertions.assertEquals(ColumnDataType.TINYINT, model.columnType()); + Assertions.assertEquals(ColumnDataType.REAL, model.columnType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolColumnInner model = new SqlPoolColumnInner().withColumnType(ColumnDataType.TINYINT); + SqlPoolColumnInner model = new SqlPoolColumnInner().withColumnType(ColumnDataType.REAL); model = BinaryData.fromObject(model).toObject(SqlPoolColumnInner.class); - Assertions.assertEquals(ColumnDataType.TINYINT, model.columnType()); + Assertions.assertEquals(ColumnDataType.REAL, model.columnType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnListResultTests.java index a11ad89111cb..af292b7975cd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnListResultTests.java @@ -11,7 +11,7 @@ public final class SqlPoolColumnListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolColumnListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"columnType\":\"date\",\"isComputed\":true},\"id\":\"p\",\"name\":\"iwkkbn\",\"type\":\"jrywvtylbfpnc\"}],\"nextLink\":\"doiwi\"}") + "{\"value\":[{\"properties\":{\"columnType\":\"uniqueidentifier\",\"isComputed\":true},\"id\":\"lnzonzlrpiqywn\",\"name\":\"vjtszcofize\",\"type\":\"tdhgbjkvrelj\"}],\"nextLink\":\"murvzm\"}") .toObject(SqlPoolColumnListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnPropertiesTests.java index cfa059889be7..a22cebebb4cb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnPropertiesTests.java @@ -12,15 +12,15 @@ public final class SqlPoolColumnPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SqlPoolColumnProperties model = BinaryData.fromString("{\"columnType\":\"datetimeoffset\",\"isComputed\":true}") + SqlPoolColumnProperties model = BinaryData.fromString("{\"columnType\":\"date\",\"isComputed\":false}") .toObject(SqlPoolColumnProperties.class); - Assertions.assertEquals(ColumnDataType.DATETIMEOFFSET, model.columnType()); + Assertions.assertEquals(ColumnDataType.DATE, model.columnType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolColumnProperties model = new SqlPoolColumnProperties().withColumnType(ColumnDataType.DATETIMEOFFSET); + SqlPoolColumnProperties model = new SqlPoolColumnProperties().withColumnType(ColumnDataType.DATE); model = BinaryData.fromObject(model).toObject(SqlPoolColumnProperties.class); - Assertions.assertEquals(ColumnDataType.DATETIMEOFFSET, model.columnType()); + Assertions.assertEquals(ColumnDataType.DATE, model.columnType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetWithResponseMockTests.java index 6a2a7e8fd204..6e8d1638fc24 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SqlPoolColumnsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"columnType\":\"ntext\",\"isComputed\":false},\"id\":\"maln\",\"name\":\"swoykdn\",\"type\":\"naaxw\"}"; + = "{\"properties\":{\"columnType\":\"varbinary\",\"isComputed\":true},\"id\":\"s\",\"name\":\"hqhud\",\"type\":\"musuaawja\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SqlPoolColumn response = manager.sqlPoolColumns() - .getWithResponse("pxtokljmtznp", "xwfqtyyqiprcl", "ungbsoljc", "miigzb", "uck", "kdskswtiiqqc", + .getWithResponse("mlnfyz", "vfrbypic", "bkpdjtaqhsmq", "zpdgonjhxshthmgp", "zqulptkbv", "pxtzhigqqbtimpk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ColumnDataType.NTEXT, response.columnType()); + Assertions.assertEquals(ColumnDataType.VARBINARY, response.columnType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetWithResponseMockTests.java index 33e807d72ee2..200bd1a65739 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SqlPoolConnectionPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"kind\":\"p\",\"location\":\"ixqbolxvhhyqqeg\",\"properties\":{\"securityEnabledAccess\":\"grznmginmtsd\",\"proxyDnsName\":\"chwkib\",\"proxyPort\":\"jymncjcagai\",\"visibility\":\"cqzoofjnqjsve\",\"useServerDefault\":\"bhtleberpy\",\"redirectionState\":\"eknfqnwjjqx\",\"state\":\"kdnjrxgkrhwie\"},\"id\":\"ycpnowaw\",\"name\":\"noehrguqlhfwa\",\"type\":\"bjzm\"}"; + = "{\"kind\":\"ibuk\",\"location\":\"vzrlrmlcc\",\"properties\":{\"securityEnabledAccess\":\"jsczivfqbqnasdsy\",\"proxyDnsName\":\"zsieuscplhyvd\",\"proxyPort\":\"lyzkxitds\",\"visibility\":\"zsvko\",\"useServerDefault\":\"upjo\",\"redirectionState\":\"ozsaye\",\"state\":\"azwzlpzbtzuykyki\"},\"id\":\"fsdyepfnocmbeza\",\"name\":\"fp\",\"type\":\"tga\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,16 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SqlPoolConnectionPolicy response = manager.sqlPoolConnectionPolicies() - .getWithResponse("zmlghny", "v", "pye", ConnectionPolicyName.DEFAULT, com.azure.core.util.Context.NONE) + .getWithResponse("foxqwecrsn", "pcs", "lqxov", ConnectionPolicyName.DEFAULT, + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("grznmginmtsd", response.securityEnabledAccess()); - Assertions.assertEquals("chwkib", response.proxyDnsName()); - Assertions.assertEquals("jymncjcagai", response.proxyPort()); - Assertions.assertEquals("cqzoofjnqjsve", response.visibility()); - Assertions.assertEquals("bhtleberpy", response.useServerDefault()); - Assertions.assertEquals("eknfqnwjjqx", response.redirectionState()); - Assertions.assertEquals("kdnjrxgkrhwie", response.state()); + Assertions.assertEquals("jsczivfqbqnasdsy", response.securityEnabledAccess()); + Assertions.assertEquals("zsieuscplhyvd", response.proxyDnsName()); + Assertions.assertEquals("lyzkxitds", response.proxyPort()); + Assertions.assertEquals("zsvko", response.visibility()); + Assertions.assertEquals("upjo", response.useServerDefault()); + Assertions.assertEquals("ozsaye", response.redirectionState()); + Assertions.assertEquals("azwzlpzbtzuykyki", response.state()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyInnerTests.java index 76c1df35eb7c..7079b8289d87 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyInnerTests.java @@ -12,34 +12,33 @@ public final class SqlPoolConnectionPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolConnectionPolicyInner model = BinaryData.fromString( - "{\"kind\":\"wct\",\"location\":\"dzjlu\",\"properties\":{\"securityEnabledAccess\":\"dlwggytsbwtovv\",\"proxyDnsName\":\"seinqfiuf\",\"proxyPort\":\"knpirgnepttwq\",\"visibility\":\"niffcdmqnroj\",\"useServerDefault\":\"ijnkrxfrdd\",\"redirectionState\":\"ratiz\",\"state\":\"onasxifto\"},\"id\":\"qyzhf\",\"name\":\"wesgogczh\",\"type\":\"nnxk\"}") + "{\"kind\":\"uwwltvuqjctz\",\"location\":\"keifzzhmkdasv\",\"properties\":{\"securityEnabledAccess\":\"hbxcu\",\"proxyDnsName\":\"hxgsrboldfor\",\"proxyPort\":\"wjlvizbfhfov\",\"visibility\":\"cqpbtuo\",\"useServerDefault\":\"eszabbelawumuas\",\"redirectionState\":\"kwrrwo\",\"state\":\"qucwyhahnom\"},\"id\":\"rkywuhpsvfuu\",\"name\":\"utlwexxwla\",\"type\":\"niexzsrzpgepq\"}") .toObject(SqlPoolConnectionPolicyInner.class); - Assertions.assertEquals("dlwggytsbwtovv", model.securityEnabledAccess()); - Assertions.assertEquals("seinqfiuf", model.proxyDnsName()); - Assertions.assertEquals("knpirgnepttwq", model.proxyPort()); - Assertions.assertEquals("niffcdmqnroj", model.visibility()); - Assertions.assertEquals("ijnkrxfrdd", model.useServerDefault()); - Assertions.assertEquals("ratiz", model.redirectionState()); - Assertions.assertEquals("onasxifto", model.state()); + Assertions.assertEquals("hbxcu", model.securityEnabledAccess()); + Assertions.assertEquals("hxgsrboldfor", model.proxyDnsName()); + Assertions.assertEquals("wjlvizbfhfov", model.proxyPort()); + Assertions.assertEquals("cqpbtuo", model.visibility()); + Assertions.assertEquals("eszabbelawumuas", model.useServerDefault()); + Assertions.assertEquals("kwrrwo", model.redirectionState()); + Assertions.assertEquals("qucwyhahnom", model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolConnectionPolicyInner model - = new SqlPoolConnectionPolicyInner().withSecurityEnabledAccess("dlwggytsbwtovv") - .withProxyDnsName("seinqfiuf") - .withProxyPort("knpirgnepttwq") - .withVisibility("niffcdmqnroj") - .withUseServerDefault("ijnkrxfrdd") - .withRedirectionState("ratiz") - .withState("onasxifto"); + SqlPoolConnectionPolicyInner model = new SqlPoolConnectionPolicyInner().withSecurityEnabledAccess("hbxcu") + .withProxyDnsName("hxgsrboldfor") + .withProxyPort("wjlvizbfhfov") + .withVisibility("cqpbtuo") + .withUseServerDefault("eszabbelawumuas") + .withRedirectionState("kwrrwo") + .withState("qucwyhahnom"); model = BinaryData.fromObject(model).toObject(SqlPoolConnectionPolicyInner.class); - Assertions.assertEquals("dlwggytsbwtovv", model.securityEnabledAccess()); - Assertions.assertEquals("seinqfiuf", model.proxyDnsName()); - Assertions.assertEquals("knpirgnepttwq", model.proxyPort()); - Assertions.assertEquals("niffcdmqnroj", model.visibility()); - Assertions.assertEquals("ijnkrxfrdd", model.useServerDefault()); - Assertions.assertEquals("ratiz", model.redirectionState()); - Assertions.assertEquals("onasxifto", model.state()); + Assertions.assertEquals("hbxcu", model.securityEnabledAccess()); + Assertions.assertEquals("hxgsrboldfor", model.proxyDnsName()); + Assertions.assertEquals("wjlvizbfhfov", model.proxyPort()); + Assertions.assertEquals("cqpbtuo", model.visibility()); + Assertions.assertEquals("eszabbelawumuas", model.useServerDefault()); + Assertions.assertEquals("kwrrwo", model.redirectionState()); + Assertions.assertEquals("qucwyhahnom", model.state()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyPropertiesTests.java index 9c967a4fe9f9..4744e723d097 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyPropertiesTests.java @@ -12,34 +12,34 @@ public final class SqlPoolConnectionPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolConnectionPolicyProperties model = BinaryData.fromString( - "{\"securityEnabledAccess\":\"gnyhmossxkkg\",\"proxyDnsName\":\"rrghxjbdhqxvcxgf\",\"proxyPort\":\"dsofbshrns\",\"visibility\":\"uswdv\",\"useServerDefault\":\"ybycnunvj\",\"redirectionState\":\"tkfa\",\"state\":\"opqgikyzirtxdyux\"}") + "{\"securityEnabledAccess\":\"bb\",\"proxyDnsName\":\"pgdakchzyvli\",\"proxyPort\":\"nrkcxkj\",\"visibility\":\"nxm\",\"useServerDefault\":\"uxswqrntvl\",\"redirectionState\":\"jpsttexoq\",\"state\":\"wcyyufmhruncu\"}") .toObject(SqlPoolConnectionPolicyProperties.class); - Assertions.assertEquals("gnyhmossxkkg", model.securityEnabledAccess()); - Assertions.assertEquals("rrghxjbdhqxvcxgf", model.proxyDnsName()); - Assertions.assertEquals("dsofbshrns", model.proxyPort()); - Assertions.assertEquals("uswdv", model.visibility()); - Assertions.assertEquals("ybycnunvj", model.useServerDefault()); - Assertions.assertEquals("tkfa", model.redirectionState()); - Assertions.assertEquals("opqgikyzirtxdyux", model.state()); + Assertions.assertEquals("bb", model.securityEnabledAccess()); + Assertions.assertEquals("pgdakchzyvli", model.proxyDnsName()); + Assertions.assertEquals("nrkcxkj", model.proxyPort()); + Assertions.assertEquals("nxm", model.visibility()); + Assertions.assertEquals("uxswqrntvl", model.useServerDefault()); + Assertions.assertEquals("jpsttexoq", model.redirectionState()); + Assertions.assertEquals("wcyyufmhruncu", model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SqlPoolConnectionPolicyProperties model - = new SqlPoolConnectionPolicyProperties().withSecurityEnabledAccess("gnyhmossxkkg") - .withProxyDnsName("rrghxjbdhqxvcxgf") - .withProxyPort("dsofbshrns") - .withVisibility("uswdv") - .withUseServerDefault("ybycnunvj") - .withRedirectionState("tkfa") - .withState("opqgikyzirtxdyux"); + = new SqlPoolConnectionPolicyProperties().withSecurityEnabledAccess("bb") + .withProxyDnsName("pgdakchzyvli") + .withProxyPort("nrkcxkj") + .withVisibility("nxm") + .withUseServerDefault("uxswqrntvl") + .withRedirectionState("jpsttexoq") + .withState("wcyyufmhruncu"); model = BinaryData.fromObject(model).toObject(SqlPoolConnectionPolicyProperties.class); - Assertions.assertEquals("gnyhmossxkkg", model.securityEnabledAccess()); - Assertions.assertEquals("rrghxjbdhqxvcxgf", model.proxyDnsName()); - Assertions.assertEquals("dsofbshrns", model.proxyPort()); - Assertions.assertEquals("uswdv", model.visibility()); - Assertions.assertEquals("ybycnunvj", model.useServerDefault()); - Assertions.assertEquals("tkfa", model.redirectionState()); - Assertions.assertEquals("opqgikyzirtxdyux", model.state()); + Assertions.assertEquals("bb", model.securityEnabledAccess()); + Assertions.assertEquals("pgdakchzyvli", model.proxyDnsName()); + Assertions.assertEquals("nrkcxkj", model.proxyPort()); + Assertions.assertEquals("nxm", model.visibility()); + Assertions.assertEquals("uxswqrntvl", model.useServerDefault()); + Assertions.assertEquals("jpsttexoq", model.redirectionState()); + Assertions.assertEquals("wcyyufmhruncu", model.state()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests.java index 8285e47015e5..c24eebac7e64 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"activeQueriesCount\":1146435634},\"id\":\"noejhqlfmsibz\",\"name\":\"yrfgxkyd\",\"type\":\"mypgfqvmty\"}"; + = "{\"properties\":{\"activeQueriesCount\":678626206},\"id\":\"jmueza\",\"name\":\"ovribq\",\"type\":\"otokhtvwtaznk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); DataWarehouseUserActivities response = manager.sqlPoolDataWarehouseUserActivities() - .getWithResponse("yvrmkjm", "it", "chwudlxee", DataWarehouseUserActivityName.CURRENT, + .getWithResponse("jlf", "ecominxojjluxxd", "ilz", DataWarehouseUserActivityName.CURRENT, com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests.java index 6efea601f4ce..bd5ec506bc0d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"xvgjbfi\"},\"kind\":\"pn\",\"location\":\"dfcbjqqwmtqs\",\"id\":\"oxsazuxejgwe\",\"name\":\"ywnfyszzaczs\",\"type\":\"nqbdnddbboz\"}"; + = "{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"hg\"},\"kind\":\"djuxdbdljzgd\",\"location\":\"cvuq\",\"id\":\"sgzlrqhb\",\"name\":\"nq\",\"type\":\"gdxwbsfpyxx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,8 +34,8 @@ public void testCreateOrUpdateWithResponse() throws Exception { GeoBackupPolicy response = manager.sqlPoolGeoBackupPolicies() .define(GeoBackupPolicyName.DEFAULT) - .withExistingSqlPool("rncclabv", "yngsuxxcz", "myqjog") - .withState(GeoBackupPolicyState.DISABLED) + .withExistingSqlPool("xbzrpejplssanb", "ttkgsux", "nrswgkpjhboyik") + .withState(GeoBackupPolicyState.ENABLED) .create(); Assertions.assertEquals(GeoBackupPolicyState.DISABLED, response.state()); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetWithResponseMockTests.java index 5634e3323eb1..ba0c8afba342 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolGeoBackupPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"jtdrhutf\"},\"kind\":\"a\",\"location\":\"xopgehpadkmd\",\"id\":\"gssz\",\"name\":\"vctkbbx\",\"type\":\"harls\"}"; + = "{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"qyd\"},\"kind\":\"q\",\"location\":\"wa\",\"id\":\"uwdxvqzxoebwgj\",\"name\":\"bibanbau\",\"type\":\"wtzvpakloz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,7 +33,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); GeoBackupPolicy response = manager.sqlPoolGeoBackupPolicies() - .getWithResponse("tnp", "facqo", "cqrq", GeoBackupPolicyName.DEFAULT, com.azure.core.util.Context.NONE) + .getWithResponse("glzrs", "bklrxh", "nltce", GeoBackupPolicyName.DEFAULT, com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(GeoBackupPolicyState.DISABLED, response.state()); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListMockTests.java index ce5d1fced146..853c53958ede 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolGeoBackupPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"iijgencd\"},\"kind\":\"oqueqihkkyowltj\",\"location\":\"whldxwhie\",\"id\":\"roqksmfxm\",\"name\":\"vprstv\",\"type\":\"itbfjtdy\"}]}"; + = "{\"value\":[{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"ohzha\"},\"kind\":\"v\",\"location\":\"xbg\",\"id\":\"vkervqchoadhrsxq\",\"name\":\"z\",\"type\":\"spabdsrgfa\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,8 +33,8 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.sqlPoolGeoBackupPolicies() - .list("awmvgxs", "pknpwirfljfewxq", "uoxudnmckaprh", com.azure.core.util.Context.NONE); + .list("npd", "zigjsugswhgsaodk", "wnbaf", com.azure.core.util.Context.NONE); - Assertions.assertEquals(GeoBackupPolicyState.DISABLED, response.iterator().next().state()); + Assertions.assertEquals(GeoBackupPolicyState.ENABLED, response.iterator().next().state()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInfoListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInfoListResultTests.java index 3698869fabe2..4f4fb4146d5c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInfoListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInfoListResultTests.java @@ -20,73 +20,103 @@ public final class SqlPoolInfoListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolInfoListResult model = BinaryData.fromString( - "{\"nextLink\":\"fqbuaceopzf\",\"value\":[{\"sku\":{\"tier\":\"ao\",\"name\":\"pcqeqx\",\"capacity\":72119187},\"properties\":{\"maxSizeBytes\":4786890397912480430,\"collation\":\"ctobg\",\"sourceDatabaseId\":\"dmoizpostmg\",\"recoverableDatabaseId\":\"fbunrmfqjhhk\",\"provisioningState\":\"pvjymjhxxjyng\",\"status\":\"ivkrtsw\",\"restorePointInTime\":\"2021-05-30T10:12:47Z\",\"createMode\":\"Restore\",\"creationDate\":\"2021-10-26T13:42:02Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-04-01T03:47:56Z\"},\"location\":\"vjfdx\",\"tags\":{\"vtcqaqtdo\":\"e\",\"bhsfxob\":\"mcbxvwvxysl\"},\"id\":\"ytkblmpew\",\"name\":\"wfbkrvrns\",\"type\":\"shqjohxcrsbf\"},{\"sku\":{\"tier\":\"srruvwbhsqfsubcg\",\"name\":\"irx\",\"capacity\":1282258802},\"properties\":{\"maxSizeBytes\":4717614806856860947,\"collation\":\"jfdtwssotftpvj\",\"sourceDatabaseId\":\"exilzznfqqnvwpmq\",\"recoverableDatabaseId\":\"ruoujmk\",\"provisioningState\":\"hwqytj\",\"status\":\"bnw\",\"restorePointInTime\":\"2021-08-28T18:20:54Z\",\"createMode\":\"Restore\",\"creationDate\":\"2021-05-04T09:11:45Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-02-06T06:59:31Z\"},\"location\":\"aen\",\"tags\":{\"oygmift\":\"hin\"},\"id\":\"nzdndslgna\",\"name\":\"qig\",\"type\":\"nduhavhqlkthum\"}]}") + "{\"nextLink\":\"gnyhmossxkkg\",\"value\":[{\"sku\":{\"tier\":\"hxjbdhqxvc\",\"name\":\"frpdsofbshrns\",\"capacity\":1330323698},\"properties\":{\"maxSizeBytes\":2895309562772801226,\"collation\":\"yybyc\",\"sourceDatabaseId\":\"nvjsrtkfa\",\"recoverableDatabaseId\":\"opqgikyzirtxdyux\",\"provisioningState\":\"jntpsewgioilqu\",\"status\":\"ydxtqm\",\"restorePointInTime\":\"2021-03-22T23:05:26Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-10-02T03:50:47Z\",\"storageAccountType\":\"LRS\"},\"location\":\"f\",\"tags\":{\"vjzhpjbib\":\"omtbghhavgrvkff\",\"luyovwxnbkfezzx\":\"jmfxumvf\",\"wzdgirujbzbo\":\"cy\",\"pniyujviyl\":\"vzzbtdcq\"},\"id\":\"dshf\",\"name\":\"snrbgyefrymsgao\",\"type\":\"fmwncotmrfh\"},{\"sku\":{\"tier\":\"tymoxoftp\",\"name\":\"iwyczuh\",\"capacity\":481120097},\"properties\":{\"maxSizeBytes\":8429667513578601154,\"collation\":\"h\",\"sourceDatabaseId\":\"usps\",\"recoverableDatabaseId\":\"sdvlmfwdgzxulucv\",\"provisioningState\":\"mrsreuzvxurisjnh\",\"status\":\"txifqj\",\"restorePointInTime\":\"2020-12-30T22:59:48Z\",\"createMode\":\"Restore\",\"creationDate\":\"2021-11-03T21:16:51Z\",\"storageAccountType\":\"ZRS\"},\"location\":\"wp\",\"tags\":{\"jupauut\":\"utr\",\"qg\":\"woqhihe\"},\"id\":\"zpnfqntcypsxj\",\"name\":\"foimwkslircizjxv\",\"type\":\"dfcea\"},{\"sku\":{\"tier\":\"hvygdyftumr\",\"name\":\"nawjslbiwkojgcy\",\"capacity\":817925642},\"properties\":{\"maxSizeBytes\":975752405660139334,\"collation\":\"aeqphchqnr\",\"sourceDatabaseId\":\"pxehuwrykqga\",\"recoverableDatabaseId\":\"mvikl\",\"provisioningState\":\"dvk\",\"status\":\"ejd\",\"restorePointInTime\":\"2021-11-07T23:40:15Z\",\"createMode\":\"Recovery\",\"creationDate\":\"2021-03-17T15:41:05Z\",\"storageAccountType\":\"ZRS\"},\"location\":\"njivolvtnovq\",\"tags\":{\"ltducea\":\"emjdftul\",\"knssxmojm\":\"tmczuomejwcwwqi\",\"kwcf\":\"vpkjpr\",\"yxgtczh\":\"ql\"},\"id\":\"ydbsd\",\"name\":\"hmkxmaehvbb\",\"type\":\"uripltfnhtba\"},{\"sku\":{\"tier\":\"xywr\",\"name\":\"pyklyhpluodpvru\",\"capacity\":1011910594},\"properties\":{\"maxSizeBytes\":6693748665211987149,\"collation\":\"hostgktstvdxecl\",\"sourceDatabaseId\":\"dqbcvhzlhplod\",\"recoverableDatabaseId\":\"dlwwqfbumlkxt\",\"provisioningState\":\"jfsmlmbtxhwgfwsr\",\"status\":\"wcoezbrhub\",\"restorePointInTime\":\"2021-04-27T23:35:34Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-09-21T02:12:50Z\",\"storageAccountType\":\"ZRS\"},\"location\":\"okkqfqjbvleo\",\"tags\":{\"bar\":\"luiqtqzfavyvnqq\"},\"id\":\"euayjkqabqgzsles\",\"name\":\"cbhernntiewdj\",\"type\":\"vbquwr\"}]}") .toObject(SqlPoolInfoListResult.class); - Assertions.assertEquals("fqbuaceopzf", model.nextLink()); - Assertions.assertEquals("vjfdx", model.value().get(0).location()); - Assertions.assertEquals("e", model.value().get(0).tags().get("vtcqaqtdo")); - Assertions.assertEquals("ao", model.value().get(0).sku().tier()); - Assertions.assertEquals("pcqeqx", model.value().get(0).sku().name()); - Assertions.assertEquals(72119187, model.value().get(0).sku().capacity()); - Assertions.assertEquals(4786890397912480430L, model.value().get(0).maxSizeBytes()); - Assertions.assertEquals("ctobg", model.value().get(0).collation()); - Assertions.assertEquals("dmoizpostmg", model.value().get(0).sourceDatabaseId()); - Assertions.assertEquals("fbunrmfqjhhk", model.value().get(0).recoverableDatabaseId()); - Assertions.assertEquals("pvjymjhxxjyng", model.value().get(0).provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T10:12:47Z"), + Assertions.assertEquals("gnyhmossxkkg", model.nextLink()); + Assertions.assertEquals("f", model.value().get(0).location()); + Assertions.assertEquals("omtbghhavgrvkff", model.value().get(0).tags().get("vjzhpjbib")); + Assertions.assertEquals("hxjbdhqxvc", model.value().get(0).sku().tier()); + Assertions.assertEquals("frpdsofbshrns", model.value().get(0).sku().name()); + Assertions.assertEquals(1330323698, model.value().get(0).sku().capacity()); + Assertions.assertEquals(2895309562772801226L, model.value().get(0).maxSizeBytes()); + Assertions.assertEquals("yybyc", model.value().get(0).collation()); + Assertions.assertEquals("nvjsrtkfa", model.value().get(0).sourceDatabaseId()); + Assertions.assertEquals("opqgikyzirtxdyux", model.value().get(0).recoverableDatabaseId()); + Assertions.assertEquals("jntpsewgioilqu", model.value().get(0).provisioningState()); + Assertions.assertEquals("ydxtqm", model.value().get(0).status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-22T23:05:26Z"), model.value().get(0).restorePointInTime()); - Assertions.assertEquals(CreateMode.RESTORE, model.value().get(0).createMode()); + Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.value().get(0).createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-02T03:50:47Z"), model.value().get(0).creationDate()); Assertions.assertEquals(StorageAccountType.LRS, model.value().get(0).storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-01T03:47:56Z"), - model.value().get(0).sourceDatabaseDeletionDate()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolInfoListResult model = new SqlPoolInfoListResult().withNextLink("fqbuaceopzf") + SqlPoolInfoListResult model = new SqlPoolInfoListResult().withNextLink("gnyhmossxkkg") .withValue(Arrays.asList( - new SqlPoolInner().withLocation("vjfdx") - .withTags(mapOf("vtcqaqtdo", "e", "bhsfxob", "mcbxvwvxysl")) - .withSku(new Sku().withTier("ao").withName("pcqeqx").withCapacity(72119187)) - .withMaxSizeBytes(4786890397912480430L) - .withCollation("ctobg") - .withSourceDatabaseId("dmoizpostmg") - .withRecoverableDatabaseId("fbunrmfqjhhk") - .withProvisioningState("pvjymjhxxjyng") - .withRestorePointInTime(OffsetDateTime.parse("2021-05-30T10:12:47Z")) + new SqlPoolInner().withLocation("f") + .withTags(mapOf("vjzhpjbib", "omtbghhavgrvkff", "luyovwxnbkfezzx", "jmfxumvf", "wzdgirujbzbo", "cy", + "pniyujviyl", "vzzbtdcq")) + .withSku(new Sku().withTier("hxjbdhqxvc").withName("frpdsofbshrns").withCapacity(1330323698)) + .withMaxSizeBytes(2895309562772801226L) + .withCollation("yybyc") + .withSourceDatabaseId("nvjsrtkfa") + .withRecoverableDatabaseId("opqgikyzirtxdyux") + .withProvisioningState("jntpsewgioilqu") + .withStatus("ydxtqm") + .withRestorePointInTime(OffsetDateTime.parse("2021-03-22T23:05:26Z")) + .withCreateMode(CreateMode.POINT_IN_TIME_RESTORE) + .withCreationDate(OffsetDateTime.parse("2021-10-02T03:50:47Z")) + .withStorageAccountType(StorageAccountType.LRS), + new SqlPoolInner().withLocation("wp") + .withTags(mapOf("jupauut", "utr", "qg", "woqhihe")) + .withSku(new Sku().withTier("tymoxoftp").withName("iwyczuh").withCapacity(481120097)) + .withMaxSizeBytes(8429667513578601154L) + .withCollation("h") + .withSourceDatabaseId("usps") + .withRecoverableDatabaseId("sdvlmfwdgzxulucv") + .withProvisioningState("mrsreuzvxurisjnh") + .withStatus("txifqj") + .withRestorePointInTime(OffsetDateTime.parse("2020-12-30T22:59:48Z")) .withCreateMode(CreateMode.RESTORE) - .withStorageAccountType(StorageAccountType.LRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-04-01T03:47:56Z")), - new SqlPoolInner().withLocation("aen") - .withTags(mapOf("oygmift", "hin")) - .withSku(new Sku().withTier("srruvwbhsqfsubcg").withName("irx").withCapacity(1282258802)) - .withMaxSizeBytes(4717614806856860947L) - .withCollation("jfdtwssotftpvj") - .withSourceDatabaseId("exilzznfqqnvwpmq") - .withRecoverableDatabaseId("ruoujmk") - .withProvisioningState("hwqytj") - .withRestorePointInTime(OffsetDateTime.parse("2021-08-28T18:20:54Z")) - .withCreateMode(CreateMode.RESTORE) - .withStorageAccountType(StorageAccountType.LRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-02-06T06:59:31Z")))); + .withCreationDate(OffsetDateTime.parse("2021-11-03T21:16:51Z")) + .withStorageAccountType(StorageAccountType.ZRS), + new SqlPoolInner().withLocation("njivolvtnovq") + .withTags( + mapOf("ltducea", "emjdftul", "knssxmojm", "tmczuomejwcwwqi", "kwcf", "vpkjpr", "yxgtczh", "ql")) + .withSku(new Sku().withTier("hvygdyftumr").withName("nawjslbiwkojgcy").withCapacity(817925642)) + .withMaxSizeBytes(975752405660139334L) + .withCollation("aeqphchqnr") + .withSourceDatabaseId("pxehuwrykqga") + .withRecoverableDatabaseId("mvikl") + .withProvisioningState("dvk") + .withStatus("ejd") + .withRestorePointInTime(OffsetDateTime.parse("2021-11-07T23:40:15Z")) + .withCreateMode(CreateMode.RECOVERY) + .withCreationDate(OffsetDateTime.parse("2021-03-17T15:41:05Z")) + .withStorageAccountType(StorageAccountType.ZRS), + new SqlPoolInner().withLocation("okkqfqjbvleo") + .withTags(mapOf("bar", "luiqtqzfavyvnqq")) + .withSku(new Sku().withTier("xywr").withName("pyklyhpluodpvru").withCapacity(1011910594)) + .withMaxSizeBytes(6693748665211987149L) + .withCollation("hostgktstvdxecl") + .withSourceDatabaseId("dqbcvhzlhplod") + .withRecoverableDatabaseId("dlwwqfbumlkxt") + .withProvisioningState("jfsmlmbtxhwgfwsr") + .withStatus("wcoezbrhub") + .withRestorePointInTime(OffsetDateTime.parse("2021-04-27T23:35:34Z")) + .withCreateMode(CreateMode.DEFAULT) + .withCreationDate(OffsetDateTime.parse("2021-09-21T02:12:50Z")) + .withStorageAccountType(StorageAccountType.ZRS))); model = BinaryData.fromObject(model).toObject(SqlPoolInfoListResult.class); - Assertions.assertEquals("fqbuaceopzf", model.nextLink()); - Assertions.assertEquals("vjfdx", model.value().get(0).location()); - Assertions.assertEquals("e", model.value().get(0).tags().get("vtcqaqtdo")); - Assertions.assertEquals("ao", model.value().get(0).sku().tier()); - Assertions.assertEquals("pcqeqx", model.value().get(0).sku().name()); - Assertions.assertEquals(72119187, model.value().get(0).sku().capacity()); - Assertions.assertEquals(4786890397912480430L, model.value().get(0).maxSizeBytes()); - Assertions.assertEquals("ctobg", model.value().get(0).collation()); - Assertions.assertEquals("dmoizpostmg", model.value().get(0).sourceDatabaseId()); - Assertions.assertEquals("fbunrmfqjhhk", model.value().get(0).recoverableDatabaseId()); - Assertions.assertEquals("pvjymjhxxjyng", model.value().get(0).provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T10:12:47Z"), + Assertions.assertEquals("gnyhmossxkkg", model.nextLink()); + Assertions.assertEquals("f", model.value().get(0).location()); + Assertions.assertEquals("omtbghhavgrvkff", model.value().get(0).tags().get("vjzhpjbib")); + Assertions.assertEquals("hxjbdhqxvc", model.value().get(0).sku().tier()); + Assertions.assertEquals("frpdsofbshrns", model.value().get(0).sku().name()); + Assertions.assertEquals(1330323698, model.value().get(0).sku().capacity()); + Assertions.assertEquals(2895309562772801226L, model.value().get(0).maxSizeBytes()); + Assertions.assertEquals("yybyc", model.value().get(0).collation()); + Assertions.assertEquals("nvjsrtkfa", model.value().get(0).sourceDatabaseId()); + Assertions.assertEquals("opqgikyzirtxdyux", model.value().get(0).recoverableDatabaseId()); + Assertions.assertEquals("jntpsewgioilqu", model.value().get(0).provisioningState()); + Assertions.assertEquals("ydxtqm", model.value().get(0).status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-22T23:05:26Z"), model.value().get(0).restorePointInTime()); - Assertions.assertEquals(CreateMode.RESTORE, model.value().get(0).createMode()); + Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.value().get(0).createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-02T03:50:47Z"), model.value().get(0).creationDate()); Assertions.assertEquals(StorageAccountType.LRS, model.value().get(0).storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-01T03:47:56Z"), - model.value().get(0).sourceDatabaseDeletionDate()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInnerTests.java index 32e1893ac9d3..5dfa32bfbd10 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInnerTests.java @@ -18,54 +18,56 @@ public final class SqlPoolInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolInner model = BinaryData.fromString( - "{\"sku\":{\"tier\":\"jznb\",\"name\":\"ow\",\"capacity\":2070148801},\"properties\":{\"maxSizeBytes\":4938464628745807464,\"collation\":\"eualupjmkhf\",\"sourceDatabaseId\":\"bbcswsrtjri\",\"recoverableDatabaseId\":\"rbpbewtghfgblcg\",\"provisioningState\":\"zvlvqhjkbegib\",\"status\":\"mxiebw\",\"restorePointInTime\":\"2021-08-25T02:24:40Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-04-26T15:42:40Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-09-09T06:40:06Z\"},\"location\":\"tzjuzgwyzmhtxo\",\"tags\":{\"vjcbpwxqpsrknf\":\"ts\",\"vxqtayriwwroyqbe\":\"guvriuhprwmd\",\"nojvknmefqsg\":\"rmcqiby\",\"pjyzhpv\":\"vah\"},\"id\":\"qzcjrvxdj\",\"name\":\"lmwlxkvugfhzo\",\"type\":\"awjvzunluthnnp\"}") + "{\"sku\":{\"tier\":\"mkqjj\",\"name\":\"uenvrkp\",\"capacity\":1149694160},\"properties\":{\"maxSizeBytes\":2507963657261590571,\"collation\":\"bqaays\",\"sourceDatabaseId\":\"ixqtn\",\"recoverableDatabaseId\":\"tezlwff\",\"provisioningState\":\"akpjpqqmtedlt\",\"status\":\"jihy\",\"restorePointInTime\":\"2021-09-10T18:44:16Z\",\"createMode\":\"Recovery\",\"creationDate\":\"2021-03-06T19:52:25Z\",\"storageAccountType\":\"ZRS\"},\"location\":\"y\",\"tags\":{\"p\":\"ygupkv\"},\"id\":\"dscwxqupevzhf\",\"name\":\"totxhojujb\",\"type\":\"pelmcuvhixbjxyf\"}") .toObject(SqlPoolInner.class); - Assertions.assertEquals("tzjuzgwyzmhtxo", model.location()); - Assertions.assertEquals("ts", model.tags().get("vjcbpwxqpsrknf")); - Assertions.assertEquals("jznb", model.sku().tier()); - Assertions.assertEquals("ow", model.sku().name()); - Assertions.assertEquals(2070148801, model.sku().capacity()); - Assertions.assertEquals(4938464628745807464L, model.maxSizeBytes()); - Assertions.assertEquals("eualupjmkhf", model.collation()); - Assertions.assertEquals("bbcswsrtjri", model.sourceDatabaseId()); - Assertions.assertEquals("rbpbewtghfgblcg", model.recoverableDatabaseId()); - Assertions.assertEquals("zvlvqhjkbegib", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T02:24:40Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T06:40:06Z"), model.sourceDatabaseDeletionDate()); + Assertions.assertEquals("y", model.location()); + Assertions.assertEquals("ygupkv", model.tags().get("p")); + Assertions.assertEquals("mkqjj", model.sku().tier()); + Assertions.assertEquals("uenvrkp", model.sku().name()); + Assertions.assertEquals(1149694160, model.sku().capacity()); + Assertions.assertEquals(2507963657261590571L, model.maxSizeBytes()); + Assertions.assertEquals("bqaays", model.collation()); + Assertions.assertEquals("ixqtn", model.sourceDatabaseId()); + Assertions.assertEquals("tezlwff", model.recoverableDatabaseId()); + Assertions.assertEquals("akpjpqqmtedlt", model.provisioningState()); + Assertions.assertEquals("jihy", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T18:44:16Z"), model.restorePointInTime()); + Assertions.assertEquals(CreateMode.RECOVERY, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T19:52:25Z"), model.creationDate()); + Assertions.assertEquals(StorageAccountType.ZRS, model.storageAccountType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolInner model = new SqlPoolInner().withLocation("tzjuzgwyzmhtxo") - .withTags(mapOf("vjcbpwxqpsrknf", "ts", "vxqtayriwwroyqbe", "guvriuhprwmd", "nojvknmefqsg", "rmcqiby", - "pjyzhpv", "vah")) - .withSku(new Sku().withTier("jznb").withName("ow").withCapacity(2070148801)) - .withMaxSizeBytes(4938464628745807464L) - .withCollation("eualupjmkhf") - .withSourceDatabaseId("bbcswsrtjri") - .withRecoverableDatabaseId("rbpbewtghfgblcg") - .withProvisioningState("zvlvqhjkbegib") - .withRestorePointInTime(OffsetDateTime.parse("2021-08-25T02:24:40Z")) - .withCreateMode(CreateMode.POINT_IN_TIME_RESTORE) - .withStorageAccountType(StorageAccountType.GRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-09-09T06:40:06Z")); + SqlPoolInner model = new SqlPoolInner().withLocation("y") + .withTags(mapOf("p", "ygupkv")) + .withSku(new Sku().withTier("mkqjj").withName("uenvrkp").withCapacity(1149694160)) + .withMaxSizeBytes(2507963657261590571L) + .withCollation("bqaays") + .withSourceDatabaseId("ixqtn") + .withRecoverableDatabaseId("tezlwff") + .withProvisioningState("akpjpqqmtedlt") + .withStatus("jihy") + .withRestorePointInTime(OffsetDateTime.parse("2021-09-10T18:44:16Z")) + .withCreateMode(CreateMode.RECOVERY) + .withCreationDate(OffsetDateTime.parse("2021-03-06T19:52:25Z")) + .withStorageAccountType(StorageAccountType.ZRS); model = BinaryData.fromObject(model).toObject(SqlPoolInner.class); - Assertions.assertEquals("tzjuzgwyzmhtxo", model.location()); - Assertions.assertEquals("ts", model.tags().get("vjcbpwxqpsrknf")); - Assertions.assertEquals("jznb", model.sku().tier()); - Assertions.assertEquals("ow", model.sku().name()); - Assertions.assertEquals(2070148801, model.sku().capacity()); - Assertions.assertEquals(4938464628745807464L, model.maxSizeBytes()); - Assertions.assertEquals("eualupjmkhf", model.collation()); - Assertions.assertEquals("bbcswsrtjri", model.sourceDatabaseId()); - Assertions.assertEquals("rbpbewtghfgblcg", model.recoverableDatabaseId()); - Assertions.assertEquals("zvlvqhjkbegib", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T02:24:40Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T06:40:06Z"), model.sourceDatabaseDeletionDate()); + Assertions.assertEquals("y", model.location()); + Assertions.assertEquals("ygupkv", model.tags().get("p")); + Assertions.assertEquals("mkqjj", model.sku().tier()); + Assertions.assertEquals("uenvrkp", model.sku().name()); + Assertions.assertEquals(1149694160, model.sku().capacity()); + Assertions.assertEquals(2507963657261590571L, model.maxSizeBytes()); + Assertions.assertEquals("bqaays", model.collation()); + Assertions.assertEquals("ixqtn", model.sourceDatabaseId()); + Assertions.assertEquals("tezlwff", model.recoverableDatabaseId()); + Assertions.assertEquals("akpjpqqmtedlt", model.provisioningState()); + Assertions.assertEquals("jihy", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T18:44:16Z"), model.restorePointInTime()); + Assertions.assertEquals(CreateMode.RECOVERY, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T19:52:25Z"), model.creationDate()); + Assertions.assertEquals(StorageAccountType.ZRS, model.storageAccountType()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests.java index 89fd171a2d8f..6d4072b8ac76 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"isEnabled\":true,\"maintenanceWindowCycles\":[{\"dayOfWeek\":\"Saturday\",\"startTime\":\"vztiucwviqllukh\",\"duration\":\"cqx\"}],\"minDurationInMinutes\":1730615801,\"defaultDurationInMinutes\":598547995,\"minCycles\":2041316576,\"timeGranularityInMinutes\":934395697,\"allowMultipleMaintenanceWindowsPerCycle\":false},\"id\":\"po\",\"name\":\"stsinvag\",\"type\":\"vjyhdrxbrdvc\"}"; + = "{\"properties\":{\"isEnabled\":true,\"maintenanceWindowCycles\":[{\"dayOfWeek\":\"Sunday\",\"startTime\":\"jrthcfjzhx\",\"duration\":\"ubqjro\"},{\"dayOfWeek\":\"Monday\",\"startTime\":\"jeqmtzzbeqrzt\",\"duration\":\"alx\"},{\"dayOfWeek\":\"Thursday\",\"startTime\":\"bsrwrsnrhpqat\",\"duration\":\"kkvyanxk\"},{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"ems\",\"duration\":\"v\"}],\"minDurationInMinutes\":769444047,\"defaultDurationInMinutes\":1509454369,\"minCycles\":964046312,\"timeGranularityInMinutes\":692508605,\"allowMultipleMaintenanceWindowsPerCycle\":true},\"id\":\"ivrjjxnwxdc\",\"name\":\"p\",\"type\":\"jxlehzlx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); MaintenanceWindowOptions response = manager.sqlPoolMaintenanceWindowOptions() - .getWithResponse("ihraxqudd", "wjc", "jbrhlhpvzadbw", "nnin", com.azure.core.util.Context.NONE) + .getWithResponse("qqrsil", "chskxxka", "sbvr", "aqgvto", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(true, response.isEnabled()); - Assertions.assertEquals(DayOfWeek.SATURDAY, response.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("vztiucwviqllukh", response.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("cqx", response.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(1730615801, response.minDurationInMinutes()); - Assertions.assertEquals(598547995, response.defaultDurationInMinutes()); - Assertions.assertEquals(2041316576, response.minCycles()); - Assertions.assertEquals(934395697, response.timeGranularityInMinutes()); - Assertions.assertEquals(false, response.allowMultipleMaintenanceWindowsPerCycle()); + Assertions.assertEquals(DayOfWeek.SUNDAY, response.maintenanceWindowCycles().get(0).dayOfWeek()); + Assertions.assertEquals("jrthcfjzhx", response.maintenanceWindowCycles().get(0).startTime()); + Assertions.assertEquals("ubqjro", response.maintenanceWindowCycles().get(0).duration()); + Assertions.assertEquals(769444047, response.minDurationInMinutes()); + Assertions.assertEquals(1509454369, response.defaultDurationInMinutes()); + Assertions.assertEquals(964046312, response.minCycles()); + Assertions.assertEquals(692508605, response.timeGranularityInMinutes()); + Assertions.assertEquals(true, response.allowMultipleMaintenanceWindowsPerCycle()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateWithResponseMockTests.java index 0b2e3a768414..233f20cc63a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateWithResponseMockTests.java @@ -32,20 +32,20 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolMaintenanceWindows() - .createOrUpdateWithResponse("ucvkhhwmjpjbw", "unxcqrrihufoih", "piybxvgnzuzpbg", "zc", + .createOrUpdateWithResponse("wp", "chgjtnhtukfacih", "bfntumeezbxvq", "bnuvwcg", new MaintenanceWindowsInner().withTimeRanges(Arrays.asList( - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.THURSDAY) - .withStartTime("kunhdimjuk") - .withDuration("r"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.WEDNESDAY) + .withStartTime("jzwxuqgovsxpwwz") + .withDuration("fmkk"), + new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.WEDNESDAY) + .withStartTime("redmlscgrllcc") + .withDuration("ovjowazhpabacom"), new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.MONDAY) - .withStartTime("gpucdocfq") - .withDuration("wgofmhx"), - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.TUESDAY) - .withStartTime("vzklkvbgikyjtka") - .withDuration("lbis"), + .withStartTime("gkw") + .withDuration("nsrqor"), new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.SUNDAY) - .withStartTime("zaptuosk") - .withDuration("izjixwfgcd"))), + .withStartTime("mv") + .withDuration("bxeetqujxcxxqn"))), com.azure.core.util.Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetWithResponseMockTests.java index 17b58ca3e70d..970181dfe635 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SqlPoolMaintenanceWindowsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"timeRanges\":[{\"dayOfWeek\":\"Saturday\",\"startTime\":\"x\",\"duration\":\"ba\"},{\"dayOfWeek\":\"Friday\",\"startTime\":\"tgirnb\",\"duration\":\"gm\"},{\"dayOfWeek\":\"Friday\",\"startTime\":\"gm\",\"duration\":\"ltwmpftmf\"},{\"dayOfWeek\":\"Saturday\",\"startTime\":\"og\",\"duration\":\"xwet\"}]},\"id\":\"mfd\",\"name\":\"rvlkpzwbhnrec\",\"type\":\"hdidrmuhkahmjedb\"}"; + = "{\"properties\":{\"timeRanges\":[{\"dayOfWeek\":\"Sunday\",\"startTime\":\"rezsdsuxheq\",\"duration\":\"cruxspinym\"},{\"dayOfWeek\":\"Sunday\",\"startTime\":\"okmikpa\",\"duration\":\"bmjxuvjipf\"},{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"xdvwz\",\"duration\":\"hpphthdklm\"}]},\"id\":\"etatlakf\",\"name\":\"oixwgiksb\",\"type\":\"vtooxrpo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); MaintenanceWindows response = manager.sqlPoolMaintenanceWindows() - .getWithResponse("s", "hqhud", "musuaawja", "xwjnfcz", com.azure.core.util.Context.NONE) + .getWithResponse("qvn", "obfelhldiuhz", "gqlmfaewzgi", "djpxpqht", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(DayOfWeek.SATURDAY, response.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("x", response.timeRanges().get(0).startTime()); - Assertions.assertEquals("ba", response.timeRanges().get(0).duration()); + Assertions.assertEquals(DayOfWeek.SUNDAY, response.timeRanges().get(0).dayOfWeek()); + Assertions.assertEquals("rezsdsuxheq", response.timeRanges().get(0).startTime()); + Assertions.assertEquals("cruxspinym", response.timeRanges().get(0).duration()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateWithResponseMockTests.java index 474ca132a658..6462d6081d5f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SqlPoolMetadataSyncConfigsCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"enabled\":true,\"syncIntervalInMinutes\":1466940432},\"id\":\"nskby\",\"name\":\"quhczygxvh\",\"type\":\"jpxecxqnwhsco\"}"; + = "{\"properties\":{\"enabled\":false,\"syncIntervalInMinutes\":1004658675},\"id\":\"lqoin\",\"name\":\"zduewihapfjii\",\"type\":\"njdiqfliejhpcl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); MetadataSyncConfig response = manager.sqlPoolMetadataSyncConfigs() - .createWithResponse("othymgobl", "msn", "gwi", - new MetadataSyncConfigInner().withEnabled(false).withSyncIntervalInMinutes(2087912773), + .createWithResponse("psimsf", "ypofqpmbhyqgs", "rmmttjxop", + new MetadataSyncConfigInner().withEnabled(true).withSyncIntervalInMinutes(574148238), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(true, response.enabled()); - Assertions.assertEquals(1466940432, response.syncIntervalInMinutes()); + Assertions.assertEquals(false, response.enabled()); + Assertions.assertEquals(1004658675, response.syncIntervalInMinutes()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetWithResponseMockTests.java index 588ede47c9cb..a5e560332bea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolMetadataSyncConfigsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"enabled\":true,\"syncIntervalInMinutes\":1873262512},\"id\":\"tvsnvl\",\"name\":\"qdnzyza\",\"type\":\"atuwqkokbc\"}"; + = "{\"properties\":{\"enabled\":false,\"syncIntervalInMinutes\":1811351267},\"id\":\"jfiimreoa\",\"name\":\"sqtaadusrexxfa\",\"type\":\"sqwudohzilfmnli\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); MetadataSyncConfig response = manager.sqlPoolMetadataSyncConfigs() - .getWithResponse("jawh", "ag", "qfqqdlcvmyolc", com.azure.core.util.Context.NONE) + .getWithResponse("yszekbhwlka", "ggkrehbf", "n", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(true, response.enabled()); - Assertions.assertEquals(1873262512, response.syncIntervalInMinutes()); + Assertions.assertEquals(false, response.enabled()); + Assertions.assertEquals(1811351267, response.syncIntervalInMinutes()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultWithResponseMockTests.java similarity index 71% rename from sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteMockTests.java rename to sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultWithResponseMockTests.java index 36942d916414..5c5a86db6d1e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultWithResponseMockTests.java @@ -15,10 +15,10 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class KustoPoolAttachedDatabaseConfigurationsDeleteMockTests { +public final class SqlPoolOperationResultsGetLocationHeaderResultWithResponseMockTests { @Test - public void testDelete() throws Exception { - String responseStr = "{}"; + public void testGetLocationHeaderResultWithResponse() throws Exception { + String responseStr = "\"dataadmskx\""; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -27,8 +27,10 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.kustoPoolAttachedDatabaseConfigurations() - .delete("vegenlrjc", "mwevguyflnxel", "jkfzcdetowwezh", "fkdilb", com.azure.core.util.Context.NONE); + Object response = manager.sqlPoolOperationResults() + .getLocationHeaderResultWithResponse("iedfsbwcei", "bv", "ipbwxgooo", "zp", + com.azure.core.util.Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolPatchInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolPatchInfoTests.java index a07e4888013d..e9adb917a81c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolPatchInfoTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolPatchInfoTests.java @@ -18,54 +18,56 @@ public final class SqlPoolPatchInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolPatchInfo model = BinaryData.fromString( - "{\"tags\":{\"jixisxyawjoyaqcs\":\"flhhcaal\",\"eli\":\"yjpkiidzyexz\"},\"location\":\"nr\",\"sku\":{\"tier\":\"o\",\"name\":\"bnxknalaulppg\",\"capacity\":1987785731},\"properties\":{\"maxSizeBytes\":5149418490652934677,\"collation\":\"yiropu\",\"sourceDatabaseId\":\"igvpgylg\",\"recoverableDatabaseId\":\"itxmedjvcslynqww\",\"provisioningState\":\"wzz\",\"status\":\"gktrmgucnapkte\",\"restorePointInTime\":\"2021-08-31T01:54:16Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-03-29T03:31:11Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-10-30T20:36:32Z\"}}") + "{\"tags\":{\"tov\":\"luudfdlwggytsb\"},\"location\":\"gseinq\",\"sku\":{\"tier\":\"fxqknpirgneptt\",\"name\":\"msniffc\",\"capacity\":2032190732},\"properties\":{\"maxSizeBytes\":2726034943657769889,\"collation\":\"pij\",\"sourceDatabaseId\":\"rxfrddhc\",\"recoverableDatabaseId\":\"tizzronasxif\",\"provisioningState\":\"zq\",\"status\":\"hftwesgog\",\"restorePointInTime\":\"2021-04-03T17:56:27Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-01-14T03:36:17Z\",\"storageAccountType\":\"ZRS\"}}") .toObject(SqlPoolPatchInfo.class); - Assertions.assertEquals("flhhcaal", model.tags().get("jixisxyawjoyaqcs")); - Assertions.assertEquals("nr", model.location()); - Assertions.assertEquals("o", model.sku().tier()); - Assertions.assertEquals("bnxknalaulppg", model.sku().name()); - Assertions.assertEquals(1987785731, model.sku().capacity()); - Assertions.assertEquals(5149418490652934677L, model.maxSizeBytes()); - Assertions.assertEquals("yiropu", model.collation()); - Assertions.assertEquals("igvpgylg", model.sourceDatabaseId()); - Assertions.assertEquals("itxmedjvcslynqww", model.recoverableDatabaseId()); - Assertions.assertEquals("wzz", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-31T01:54:16Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T20:36:32Z"), model.sourceDatabaseDeletionDate()); + Assertions.assertEquals("luudfdlwggytsb", model.tags().get("tov")); + Assertions.assertEquals("gseinq", model.location()); + Assertions.assertEquals("fxqknpirgneptt", model.sku().tier()); + Assertions.assertEquals("msniffc", model.sku().name()); + Assertions.assertEquals(2032190732, model.sku().capacity()); + Assertions.assertEquals(2726034943657769889L, model.maxSizeBytes()); + Assertions.assertEquals("pij", model.collation()); + Assertions.assertEquals("rxfrddhc", model.sourceDatabaseId()); + Assertions.assertEquals("tizzronasxif", model.recoverableDatabaseId()); + Assertions.assertEquals("zq", model.provisioningState()); + Assertions.assertEquals("hftwesgog", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-03T17:56:27Z"), model.restorePointInTime()); + Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T03:36:17Z"), model.creationDate()); + Assertions.assertEquals(StorageAccountType.ZRS, model.storageAccountType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolPatchInfo model - = new SqlPoolPatchInfo().withTags(mapOf("jixisxyawjoyaqcs", "flhhcaal", "eli", "yjpkiidzyexz")) - .withLocation("nr") - .withSku(new Sku().withTier("o").withName("bnxknalaulppg").withCapacity(1987785731)) - .withMaxSizeBytes(5149418490652934677L) - .withCollation("yiropu") - .withSourceDatabaseId("igvpgylg") - .withRecoverableDatabaseId("itxmedjvcslynqww") - .withProvisioningState("wzz") - .withRestorePointInTime(OffsetDateTime.parse("2021-08-31T01:54:16Z")) - .withCreateMode(CreateMode.POINT_IN_TIME_RESTORE) - .withStorageAccountType(StorageAccountType.GRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-10-30T20:36:32Z")); + SqlPoolPatchInfo model = new SqlPoolPatchInfo().withTags(mapOf("tov", "luudfdlwggytsb")) + .withLocation("gseinq") + .withSku(new Sku().withTier("fxqknpirgneptt").withName("msniffc").withCapacity(2032190732)) + .withMaxSizeBytes(2726034943657769889L) + .withCollation("pij") + .withSourceDatabaseId("rxfrddhc") + .withRecoverableDatabaseId("tizzronasxif") + .withProvisioningState("zq") + .withStatus("hftwesgog") + .withRestorePointInTime(OffsetDateTime.parse("2021-04-03T17:56:27Z")) + .withCreateMode(CreateMode.DEFAULT) + .withCreationDate(OffsetDateTime.parse("2021-01-14T03:36:17Z")) + .withStorageAccountType(StorageAccountType.ZRS); model = BinaryData.fromObject(model).toObject(SqlPoolPatchInfo.class); - Assertions.assertEquals("flhhcaal", model.tags().get("jixisxyawjoyaqcs")); - Assertions.assertEquals("nr", model.location()); - Assertions.assertEquals("o", model.sku().tier()); - Assertions.assertEquals("bnxknalaulppg", model.sku().name()); - Assertions.assertEquals(1987785731, model.sku().capacity()); - Assertions.assertEquals(5149418490652934677L, model.maxSizeBytes()); - Assertions.assertEquals("yiropu", model.collation()); - Assertions.assertEquals("igvpgylg", model.sourceDatabaseId()); - Assertions.assertEquals("itxmedjvcslynqww", model.recoverableDatabaseId()); - Assertions.assertEquals("wzz", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-31T01:54:16Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T20:36:32Z"), model.sourceDatabaseDeletionDate()); + Assertions.assertEquals("luudfdlwggytsb", model.tags().get("tov")); + Assertions.assertEquals("gseinq", model.location()); + Assertions.assertEquals("fxqknpirgneptt", model.sku().tier()); + Assertions.assertEquals("msniffc", model.sku().name()); + Assertions.assertEquals(2032190732, model.sku().capacity()); + Assertions.assertEquals(2726034943657769889L, model.maxSizeBytes()); + Assertions.assertEquals("pij", model.collation()); + Assertions.assertEquals("rxfrddhc", model.sourceDatabaseId()); + Assertions.assertEquals("tizzronasxif", model.recoverableDatabaseId()); + Assertions.assertEquals("zq", model.provisioningState()); + Assertions.assertEquals("hftwesgog", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-03T17:56:27Z"), model.restorePointInTime()); + Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T03:36:17Z"), model.creationDate()); + Assertions.assertEquals(StorageAccountType.ZRS, model.storageAccountType()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateWithResponseMockTests.java index 2788d04f4968..1462798b93fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateWithResponseMockTests.java @@ -32,24 +32,20 @@ public void testUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolRecommendedSensitivityLabels() - .updateWithResponse("bwtdr", "wgzwllxzlhhfi", "acfculzjrmhpf", + .updateWithResponse("ph", "yv", "jw", new RecommendedSensitivityLabelUpdateList().withOperations(Arrays.asList( - new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("dqpz") - .withTable("zx") - .withColumn("oxinunjlzkdr"), - new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("p") - .withTable("c") - .withColumn("ryklleynqa"), - new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("qzjval") - .withTable("cx") - .withColumn("ibiwksdegyxsb"), new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) - .withSchema("hezpfkissaidqzs") - .withTable("aoq") - .withColumn("sgptotxjq"))), + .withSchema("ratjhdhzybspij") + .withTable("frzgdkkagvwukhs") + .withColumn("s"), + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) + .withSchema("yttlrcxiv") + .withTable("bkut") + .withColumn("umltwjflu"), + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) + .withSchema("rhwv") + .withTable("xqqggljky") + .withColumn("sjrclrvtzq"))), com.azure.core.util.Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameWithResponseMockTests.java index 9cf62af98783..483234228f31 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class SqlPoolReplicationLinksGetByNameWithResponseMockTests { @Test public void testGetByNameWithResponse() throws Exception { String responseStr - = "{\"location\":\"fb\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"mlnfyz\",\"partnerServer\":\"frbypi\",\"partnerDatabase\":\"bkpdjtaqhsmq\",\"partnerLocation\":\"pdgonjhxs\",\"role\":\"Source\",\"partnerRole\":\"Source\",\"startTime\":\"2021-10-01T18:48:21Z\",\"percentComplete\":1082014127,\"replicationState\":\"SEEDING\"},\"id\":\"ptkbvcpxtzhi\",\"name\":\"q\",\"type\":\"btimpkjblor\"}"; + = "{\"location\":\"lzmijajwolxfsv\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"ynwlslrcigtzjcv\",\"partnerServer\":\"qlapsnsso\",\"partnerDatabase\":\"xpavid\",\"partnerLocation\":\"ev\",\"role\":\"Secondary\",\"partnerRole\":\"Copy\",\"startTime\":\"2021-01-18T14:39:45Z\",\"percentComplete\":841631916,\"replicationState\":\"SUSPENDED\"},\"id\":\"puxgcbdsvalpnpt\",\"name\":\"trkxgpazwu\",\"type\":\"x\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetByNameWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ReplicationLink response = manager.sqlPoolReplicationLinks() - .getByNameWithResponse("apr", "ojxrjnbsconxavi", "neychbjizq", "sgnwdxzedpq", + .getByNameWithResponse("lpolwzrghsrle", "nkfscjfn", "jwvuag", "qwtltngvmreupt", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListMockTests.java index 2f6bd5be169b..547d06a7b2f0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolReplicationLinksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"rkskwztsdetjy\",\"properties\":{\"isTerminationAllowed\":false,\"replicationMode\":\"cq\",\"partnerServer\":\"lzkgysdgzyybzo\",\"partnerDatabase\":\"v\",\"partnerLocation\":\"ptvdxxheigm\",\"role\":\"Primary\",\"partnerRole\":\"Primary\",\"startTime\":\"2021-02-21T13:20:16Z\",\"percentComplete\":1650972175,\"replicationState\":\"SUSPENDED\"},\"id\":\"m\",\"name\":\"bzzbwayb\",\"type\":\"mdafbgymqt\"}]}"; + = "{\"value\":[{\"location\":\"pztraudsvhl\",\"properties\":{\"isTerminationAllowed\":false,\"replicationMode\":\"regp\",\"partnerServer\":\"moj\",\"partnerDatabase\":\"rztnv\",\"partnerLocation\":\"shqrdgrt\",\"role\":\"Source\",\"partnerRole\":\"Secondary\",\"startTime\":\"2021-09-25T13:34:45Z\",\"percentComplete\":1804650099,\"replicationState\":\"PENDING\"},\"id\":\"fa\",\"name\":\"zwjcaye\",\"type\":\"zrransyb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,8 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.sqlPoolReplicationLinks().list("oksz", "nm", "wgpterdiuw", com.azure.core.util.Context.NONE); + PagedIterable response = manager.sqlPoolReplicationLinks() + .list("ohaitranizerwgud", "smxubvf", "ngfcocefhpriyl", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolResourcePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolResourcePropertiesTests.java index c676978a8641..c7b4e936e0a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolResourcePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolResourcePropertiesTests.java @@ -15,39 +15,42 @@ public final class SqlPoolResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolResourceProperties model = BinaryData.fromString( - "{\"maxSizeBytes\":1034020554196499109,\"collation\":\"gpw\",\"sourceDatabaseId\":\"uh\",\"recoverableDatabaseId\":\"p\",\"provisioningState\":\"jyofdxluusdtto\",\"status\":\"aboekqv\",\"restorePointInTime\":\"2021-03-07T10:01:38Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-02-02T03:25:54Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-07-06T07:16:14Z\"}") + "{\"maxSizeBytes\":1375339389748279377,\"collation\":\"kkbnu\",\"sourceDatabaseId\":\"ywvtylbfpnc\",\"recoverableDatabaseId\":\"doiwi\",\"provisioningState\":\"htywubxcbihwq\",\"status\":\"fdntwjchrdgoih\",\"restorePointInTime\":\"2021-10-03T14:03:48Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-12-07T13:58:09Z\",\"storageAccountType\":\"ZRS\"}") .toObject(SqlPoolResourceProperties.class); - Assertions.assertEquals(1034020554196499109L, model.maxSizeBytes()); - Assertions.assertEquals("gpw", model.collation()); - Assertions.assertEquals("uh", model.sourceDatabaseId()); - Assertions.assertEquals("p", model.recoverableDatabaseId()); - Assertions.assertEquals("jyofdxluusdtto", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-07T10:01:38Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-06T07:16:14Z"), model.sourceDatabaseDeletionDate()); + Assertions.assertEquals(1375339389748279377L, model.maxSizeBytes()); + Assertions.assertEquals("kkbnu", model.collation()); + Assertions.assertEquals("ywvtylbfpnc", model.sourceDatabaseId()); + Assertions.assertEquals("doiwi", model.recoverableDatabaseId()); + Assertions.assertEquals("htywubxcbihwq", model.provisioningState()); + Assertions.assertEquals("fdntwjchrdgoih", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-03T14:03:48Z"), model.restorePointInTime()); + Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-07T13:58:09Z"), model.creationDate()); + Assertions.assertEquals(StorageAccountType.ZRS, model.storageAccountType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolResourceProperties model = new SqlPoolResourceProperties().withMaxSizeBytes(1034020554196499109L) - .withCollation("gpw") - .withSourceDatabaseId("uh") - .withRecoverableDatabaseId("p") - .withProvisioningState("jyofdxluusdtto") - .withRestorePointInTime(OffsetDateTime.parse("2021-03-07T10:01:38Z")) - .withCreateMode(CreateMode.DEFAULT) - .withStorageAccountType(StorageAccountType.LRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-07-06T07:16:14Z")); + SqlPoolResourceProperties model = new SqlPoolResourceProperties().withMaxSizeBytes(1375339389748279377L) + .withCollation("kkbnu") + .withSourceDatabaseId("ywvtylbfpnc") + .withRecoverableDatabaseId("doiwi") + .withProvisioningState("htywubxcbihwq") + .withStatus("fdntwjchrdgoih") + .withRestorePointInTime(OffsetDateTime.parse("2021-10-03T14:03:48Z")) + .withCreateMode(CreateMode.POINT_IN_TIME_RESTORE) + .withCreationDate(OffsetDateTime.parse("2021-12-07T13:58:09Z")) + .withStorageAccountType(StorageAccountType.ZRS); model = BinaryData.fromObject(model).toObject(SqlPoolResourceProperties.class); - Assertions.assertEquals(1034020554196499109L, model.maxSizeBytes()); - Assertions.assertEquals("gpw", model.collation()); - Assertions.assertEquals("uh", model.sourceDatabaseId()); - Assertions.assertEquals("p", model.recoverableDatabaseId()); - Assertions.assertEquals("jyofdxluusdtto", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-07T10:01:38Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-06T07:16:14Z"), model.sourceDatabaseDeletionDate()); + Assertions.assertEquals(1375339389748279377L, model.maxSizeBytes()); + Assertions.assertEquals("kkbnu", model.collation()); + Assertions.assertEquals("ywvtylbfpnc", model.sourceDatabaseId()); + Assertions.assertEquals("doiwi", model.recoverableDatabaseId()); + Assertions.assertEquals("htywubxcbihwq", model.provisioningState()); + Assertions.assertEquals("fdntwjchrdgoih", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-03T14:03:48Z"), model.restorePointInTime()); + Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-07T13:58:09Z"), model.creationDate()); + Assertions.assertEquals(StorageAccountType.ZRS, model.storageAccountType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateMockTests.java index d531cb1b298c..0af43640e34e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolRestorePointsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"location\":\"kzsifcuvb\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-09-22T13:29:06Z\",\"restorePointCreationDate\":\"2021-05-24T04:41:19Z\",\"restorePointLabel\":\"cbbwjtrdxriz\"},\"id\":\"gbbgiarksykp\",\"name\":\"dqxwabzrwiqrxhac\",\"type\":\"cdosqkptj\"}"; + = "{\"location\":\"hsoymhpvtyqf\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-01-15T09:39:29Z\",\"restorePointCreationDate\":\"2021-05-18T17:57:13Z\",\"restorePointLabel\":\"jstkfvvdshxcd\"},\"id\":\"dsuenygnxcgjtfrn\",\"name\":\"uktrfnslnlrx\",\"type\":\"myltrwntfmtbg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,8 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); RestorePoint response = manager.sqlPoolRestorePoints() - .create("cgbfzuscstun", "lhxd", "bkl", - new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("iichgjsysmvxodgw"), + .create("vzvluyq", "aiossscyvaifp", "uacvfy", + new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("owpsfxt"), com.azure.core.util.Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteWithResponseMockTests.java index 9726dac6399b..ebdda8726b81 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteWithResponseMockTests.java @@ -28,7 +28,8 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolRestorePoints() - .deleteWithResponse("ytlbtlqhopxouvm", "siflikyypzkgxf", "fmy", "qsdb", com.azure.core.util.Context.NONE); + .deleteWithResponse("fruwkud", "bcpftxudqyemebun", "ucmci", "tneemmjauwcgxef", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetWithResponseMockTests.java index 4ac81c4a5640..cc2d9b3f2f65 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class SqlPoolRestorePointsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"location\":\"z\",\"properties\":{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-03-10T16:16:19Z\",\"restorePointCreationDate\":\"2021-07-24T02:08:36Z\",\"restorePointLabel\":\"djufbnkl\"},\"id\":\"laxp\",\"name\":\"gjwdab\",\"type\":\"lfdxaglz\"}"; + = "{\"location\":\"opazdazgbs\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-04-08T11:25:56Z\",\"restorePointCreationDate\":\"2021-04-10T22:50:46Z\",\"restorePointLabel\":\"tmdpvozglqjbknlz\"},\"id\":\"lctzeyowmndcovd\",\"name\":\"zqauxzan\",\"type\":\"mk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,8 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); RestorePoint response = manager.sqlPoolRestorePoints() - .getWithResponse("gkifmmainwh", "d", "kp", "qwuntob", com.azure.core.util.Context.NONE) + .getWithResponse("jdxwnazkurrdre", "zjwhsetwwjwz", "qseuzuukykcyqhy", "qzzdcykeyste", + com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListMockTests.java index 5048af4fc891..28a1a815913d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolRestorePointsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"pqcrzgeuqxbpiat\",\"properties\":{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-05-13T02:18:51Z\",\"restorePointCreationDate\":\"2021-12-10T00:51:18Z\",\"restorePointLabel\":\"tadrakgddhj\"},\"id\":\"rukizyhgsqt\",\"name\":\"qsktxqf\",\"type\":\"jbqggweeiwdhdm\"}]}"; + = "{\"value\":[{\"location\":\"sn\",\"properties\":{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-02-10T21:22:46Z\",\"restorePointCreationDate\":\"2021-06-14T08:52:55Z\",\"restorePointLabel\":\"s\"},\"id\":\"bxbteogfgfiijry\",\"name\":\"wlefksxqceazfpxg\",\"type\":\"m\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.sqlPoolRestorePoints().list("hl", "kxp", "jpewpyjlfx", com.azure.core.util.Context.NONE); + = manager.sqlPoolRestorePoints().list("qww", "wjyofgwhnkbtl", "ljssm", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaInnerTests.java index 5e9f2fcd5a7c..b42d20e52b16 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaInnerTests.java @@ -11,7 +11,7 @@ public final class SqlPoolSchemaInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolSchemaInner model - = BinaryData.fromString("{\"id\":\"kpj\",\"name\":\"qqmtedltmmji\",\"type\":\"yeozphvwauyqncy\"}") + = BinaryData.fromString("{\"id\":\"slstvasy\",\"name\":\"wxdzaumweoohgu\",\"type\":\"fuzboyjathwtzolb\"}") .toObject(SqlPoolSchemaInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaListResultTests.java index 2b3f8ce3a72a..be544975d005 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaListResultTests.java @@ -11,7 +11,7 @@ public final class SqlPoolSchemaListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolSchemaListResult model = BinaryData.fromString( - "{\"value\":[{\"id\":\"lcrpw\",\"name\":\"xeznoi\",\"type\":\"brnjwmw\"},{\"id\":\"pn\",\"name\":\"saz\",\"type\":\"jjoqkagf\"},{\"id\":\"sxtta\",\"name\":\"gzxnfaazpxdtnk\",\"type\":\"mkqjj\"},{\"id\":\"wuenvr\",\"name\":\"pyouaibrebqaays\",\"type\":\"kixqtnqtt\"}],\"nextLink\":\"lwfffi\"}") + "{\"value\":[{\"id\":\"ankjpdnjzh\",\"name\":\"joylh\",\"type\":\"lmuoyxprimrsopte\"}],\"nextLink\":\"jme\"}") .toObject(SqlPoolSchemaListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetWithResponseMockTests.java index 2c953a6c400f..0d857cc50578 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class SqlPoolSchemasGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - String responseStr = "{\"id\":\"pwbmwhria\",\"name\":\"iwrycgnwplrrb\",\"type\":\"hctsbbibti\"}"; + String responseStr = "{\"id\":\"bgspf\",\"name\":\"esubzpvpv\",\"type\":\"ylytcovqseusr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SqlPoolSchema response = manager.sqlPoolSchemas() - .getWithResponse("xyauxre", "do", "mcnltmwytkujsqyc", "moxfablq", com.azure.core.util.Context.NONE) + .getWithResponse("sem", "mesrfsvpi", "kzpatqtdi", "wxspvckojaz", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListMockTests.java index a7d2f3485ace..d75c050e9e55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListMockTests.java @@ -20,7 +20,7 @@ public final class SqlPoolSchemasListMockTests { @Test public void testList() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"xq\",\"name\":\"wrswyiljp\",\"type\":\"bkgx\"}]}"; + String responseStr = "{\"value\":[{\"id\":\"axikhfjqebglcxk\",\"name\":\"gzzromv\",\"type\":\"g\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,8 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.sqlPoolSchemas().list("aoijolb", "a", "ktwieope", "e", com.azure.core.util.Context.NONE); + PagedIterable response = manager.sqlPoolSchemas() + .list("n", "qady", "zjahwriuomz", "zfkiceevsaaxwsp", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests.java index 8bbcde02ffb2..b369af4ec355 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"schemaName\":\"ik\",\"tableName\":\"hzixyqhfnkvy\",\"columnName\":\"qqdseipnquwzxhrp\",\"labelName\":\"odlhkfktl\",\"labelId\":\"dsobjopnouhbq\",\"informationType\":\"kqxs\",\"informationTypeId\":\"uzyigfcvcewbwqhd\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"mrncmaz\",\"id\":\"fsq\",\"name\":\"hyqmrejparnpv\",\"type\":\"rsz\"}"; + = "{\"properties\":{\"schemaName\":\"jozfym\",\"tableName\":\"m\",\"columnName\":\"pyvqy\",\"labelName\":\"i\",\"labelId\":\"ipsejbsvsia\",\"informationType\":\"swhddzydisnuep\",\"informationTypeId\":\"yjln\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"td\",\"id\":\"i\",\"name\":\"ocqibz\",\"type\":\"ihweeb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,18 @@ public void testCreateOrUpdateWithResponse() throws Exception { SensitivityLabel response = manager.sqlPoolSensitivityLabels() .define() - .withExistingColumn("kfqbriqulwwt", "jmeqkvy", "zokpoy", "ohuen", "na", "jphmpoejnglpws") - .withLabelName("wxf") - .withLabelId("kvemyzdpczaqpqi") - .withInformationType("bmptrwtxzu") - .withInformationTypeId("amonatnizex") + .withExistingColumn("gquxweysland", "dcdjhunh", "hcgawn", "rnquoxso", "ireimseobf", "xstcyilbvzm") + .withLabelName("bwmvogljsvl") + .withLabelId("idnwceha") + .withInformationType("do") + .withInformationTypeId("l") .withRank(SensitivityLabelRank.NONE) .create(); - Assertions.assertEquals("odlhkfktl", response.labelName()); - Assertions.assertEquals("dsobjopnouhbq", response.labelId()); - Assertions.assertEquals("kqxs", response.informationType()); - Assertions.assertEquals("uzyigfcvcewbwqhd", response.informationTypeId()); + Assertions.assertEquals("i", response.labelName()); + Assertions.assertEquals("ipsejbsvsia", response.labelId()); + Assertions.assertEquals("swhddzydisnuep", response.informationType()); + Assertions.assertEquals("yjln", response.informationTypeId()); Assertions.assertEquals(SensitivityLabelRank.HIGH, response.rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteWithResponseMockTests.java index 9d76872c8b44..64889d8b5f60 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolSensitivityLabels() - .deleteWithResponse("zbzuzudlev", "skejcgwfsgq", "styec", "pyuijp", "rdavsjcfmazpzdq", "uzvcmcok", + .deleteWithResponse("wrczfjjnnuxxrk", "mhmnulwemp", "cifrhjulrsulwzpf", "usnaw", "hhgzotf", "iyrgkoek", com.azure.core.util.Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationWithResponseMockTests.java index 409cde228069..a5010e48ffe6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationWithResponseMockTests.java @@ -28,8 +28,8 @@ public void testDisableRecommendationWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolSensitivityLabels() - .disableRecommendationWithResponse("wz", "drpizfulgyctsdb", "qgkujds", "oxrqw", "eurbtigapdyarik", - "ejdpdfhtwm", com.azure.core.util.Context.NONE); + .disableRecommendationWithResponse("dpr", "yxelyicghflr", "fss", "yghsf", "rkbhammgmqfm", "fgvqcpdw", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationWithResponseMockTests.java index bf82ea52e52c..78bd17a8aed4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationWithResponseMockTests.java @@ -28,8 +28,8 @@ public void testEnableRecommendationWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolSensitivityLabels() - .enableRecommendationWithResponse("dnox", "xn", "qaqotnn", "xolousdv", "g", "tqm", - com.azure.core.util.Context.NONE); + .enableRecommendationWithResponse("zamicb", "gwcd", "zseznuxkeuairaa", "m", "lqjbedpfixlhupmo", + "ihzbdnpxpk", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetWithResponseMockTests.java index 4bc00855ec54..72c738c222ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolSensitivityLabelsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"schemaName\":\"ejtpjfoj\",\"tableName\":\"nrlshx\",\"columnName\":\"nsy\",\"labelName\":\"toiboancdr\",\"labelId\":\"anvxuldxonckb\",\"informationType\":\"blfxlupibaqzi\",\"informationTypeId\":\"zpzwegh\",\"isDisabled\":true,\"rank\":\"Critical\"},\"managedBy\":\"vgfklqiyndveqe\",\"id\":\"sbfvdstrkzxsgtzn\",\"name\":\"vlrdsmovpi\",\"type\":\"y\"}"; + = "{\"properties\":{\"schemaName\":\"sx\",\"tableName\":\"d\",\"columnName\":\"wuyqaeo\",\"labelName\":\"jh\",\"labelId\":\"jkbvhhdaurgho\",\"informationType\":\"aexbkhxjxjo\",\"informationTypeId\":\"lqxr\",\"isDisabled\":false,\"rank\":\"None\"},\"managedBy\":\"bekt\",\"id\":\"b\",\"name\":\"z\",\"type\":\"m\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SensitivityLabel response = manager.sqlPoolSensitivityLabels() - .getWithResponse("izekuvfrj", "ucaonz", "ajbvbn", "rdemdidack", "idgzwdydamis", "pztdivyk", - SensitivityLabelSource.RECOMMENDED, com.azure.core.util.Context.NONE) + .getWithResponse("zwx", "yxhighc", "xb", "molpcqyde", "kvskiczdfrjei", "ikgqaboohxbms", + SensitivityLabelSource.CURRENT, com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("toiboancdr", response.labelName()); - Assertions.assertEquals("anvxuldxonckb", response.labelId()); - Assertions.assertEquals("blfxlupibaqzi", response.informationType()); - Assertions.assertEquals("zpzwegh", response.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.CRITICAL, response.rank()); + Assertions.assertEquals("jh", response.labelName()); + Assertions.assertEquals("jkbvhhdaurgho", response.labelId()); + Assertions.assertEquals("aexbkhxjxjo", response.informationType()); + Assertions.assertEquals("lqxr", response.informationTypeId()); + Assertions.assertEquals(SensitivityLabelRank.NONE, response.rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentMockTests.java index 0ad213e8ee82..cb7a18d68c46 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolSensitivityLabelsListCurrentMockTests { @Test public void testListCurrent() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"schemaName\":\"nzocxmtfshksnyzm\",\"tableName\":\"amwbwmbnlslcef\",\"columnName\":\"d\",\"labelName\":\"wtkvi\",\"labelId\":\"pfliwo\",\"informationType\":\"guuzh\",\"informationTypeId\":\"ladpcmhjha\",\"isDisabled\":false,\"rank\":\"Critical\"},\"managedBy\":\"kymffztsils\",\"id\":\"v\",\"name\":\"syeiih\",\"type\":\"ymkouih\"}]}"; + = "{\"value\":[{\"properties\":{\"schemaName\":\"fkwdvbtbrekqh\",\"tableName\":\"htfpwpqb\",\"columnName\":\"j\",\"labelName\":\"yqwdqi\",\"labelId\":\"ghg\",\"informationType\":\"z\",\"informationTypeId\":\"lujkhn\",\"isDisabled\":true,\"rank\":\"Critical\"},\"managedBy\":\"fmkhcqtwmlmhjnqt\",\"id\":\"eahjedv\",\"name\":\"agpokddxe\",\"type\":\"hhkvguavtptbk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,12 @@ public void testListCurrent() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.sqlPoolSensitivityLabels() - .listCurrent("vgs", "jtoxjdzjsj", "nvhxqqmqip", "y", com.azure.core.util.Context.NONE); + .listCurrent("tclg", "rvwerfwxbsmtb", "jj", "h", com.azure.core.util.Context.NONE); - Assertions.assertEquals("wtkvi", response.iterator().next().labelName()); - Assertions.assertEquals("pfliwo", response.iterator().next().labelId()); - Assertions.assertEquals("guuzh", response.iterator().next().informationType()); - Assertions.assertEquals("ladpcmhjha", response.iterator().next().informationTypeId()); + Assertions.assertEquals("yqwdqi", response.iterator().next().labelName()); + Assertions.assertEquals("ghg", response.iterator().next().labelId()); + Assertions.assertEquals("z", response.iterator().next().informationType()); + Assertions.assertEquals("lujkhn", response.iterator().next().informationTypeId()); Assertions.assertEquals(SensitivityLabelRank.CRITICAL, response.iterator().next().rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedMockTests.java index ad833aa0badd..5cfd0920a65c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolSensitivityLabelsListRecommendedMockTests { @Test public void testListRecommended() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"schemaName\":\"gongr\",\"tableName\":\"tsyiys\",\"columnName\":\"henigbeqngubab\",\"labelName\":\"deayscseydzje\",\"labelId\":\"xm\",\"informationType\":\"kvmuwrxlniwmcp\",\"informationTypeId\":\"rdlhvdvmiphbe\",\"isDisabled\":true,\"rank\":\"High\"},\"managedBy\":\"hkdcl\",\"id\":\"croczf\",\"name\":\"unerke\",\"type\":\"uxzshxz\"}]}"; + = "{\"value\":[{\"properties\":{\"schemaName\":\"oms\",\"tableName\":\"vjhvvlr\",\"columnName\":\"hewjjmajnkdflqio\",\"labelName\":\"waeqkzfzqxjosho\",\"labelId\":\"otryegp\",\"informationType\":\"xrmexznlw\",\"informationTypeId\":\"fokxk\",\"isDisabled\":false,\"rank\":\"None\"},\"managedBy\":\"ufgjblcdr\",\"id\":\"yfcemftz\",\"name\":\"yykyalu\",\"type\":\"ekdfqnhttwd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testListRecommended() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.sqlPoolSensitivityLabels() - .listRecommended("abwlyvx", "hpqvcts", "aeuhwwsknstvz", true, "hasupmlppdpgzvz", "azvbkar", + .listRecommended("wjekptycaydbj", "c", "ymlcfnzhmhsurlg", true, "kpmmz", "stauolawi", com.azure.core.util.Context.NONE); - Assertions.assertEquals("deayscseydzje", response.iterator().next().labelName()); - Assertions.assertEquals("xm", response.iterator().next().labelId()); - Assertions.assertEquals("kvmuwrxlniwmcp", response.iterator().next().informationType()); - Assertions.assertEquals("rdlhvdvmiphbe", response.iterator().next().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.HIGH, response.iterator().next().rank()); + Assertions.assertEquals("waeqkzfzqxjosho", response.iterator().next().labelName()); + Assertions.assertEquals("otryegp", response.iterator().next().labelId()); + Assertions.assertEquals("xrmexznlw", response.iterator().next().informationType()); + Assertions.assertEquals("fokxk", response.iterator().next().informationTypeId()); + Assertions.assertEquals(SensitivityLabelRank.NONE, response.iterator().next().rank()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateWithResponseMockTests.java index f1020baa244d..e7df3fb82514 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateWithResponseMockTests.java @@ -33,17 +33,12 @@ public void testUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolSensitivityLabels() - .updateWithResponse("eseuugci", "zhogsmgbvmtdw", "qbe", - new SensitivityLabelUpdateList().withOperations(Arrays.asList( - new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.REMOVE) - .withSchema("eglabtvkbiwznhtf") - .withTable("ficudyhiz") - .withColumn("aczmuh") - .withSensitivityLabel(new SensitivityLabelInner()), - new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.REMOVE) - .withSchema("cxiqq") - .withTable("jkoxdupna") - .withColumn("gl") + .updateWithResponse("wkqyns", "gbvoffbkk", "vdxaexqokmyrljia", + new SensitivityLabelUpdateList().withOperations( + Arrays.asList(new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.SET) + .withSchema("brqlpbcjtrpz") + .withTable("yudivbxnhsqeaeo") + .withColumn("qelwgdhuruzytza") .withSensitivityLabel(new SensitivityLabelInner()))), com.azure.core.util.Context.NONE); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameMockTests.java index f215188c1f79..14807a1713ff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolTableColumnsListByTableNameMockTests { @Test public void testListByTableName() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"columnType\":\"uniqueidentifier\",\"isComputed\":false},\"id\":\"bafeb\",\"name\":\"xfkjqutibh\",\"type\":\"enntrvrkpsabdux\"}]}"; + = "{\"value\":[{\"properties\":{\"columnType\":\"hierarchyid\",\"isComputed\":true},\"id\":\"vzgjyp\",\"name\":\"nhxmpdxxze\",\"type\":\"wwzjwotnxlkfhglh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,9 +33,9 @@ public void testListByTableName() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.sqlPoolTableColumns() - .listByTableName("hvazjpwexcdr", "probzzxezmnrkjgp", "euxsphlokfpmijp", "vzvfb", "wbdq", "fvcgnrglaqr", + .listByTableName("xlcskltez", "ugggzlfbgrdcgu", "srtmdylperpiltt", "zgczfcmfpfbode", "resrgvtshuvft", "ai", com.azure.core.util.Context.NONE); - Assertions.assertEquals(ColumnDataType.UNIQUEIDENTIFIER, response.iterator().next().columnType()); + Assertions.assertEquals(ColumnDataType.HIERARCHYID, response.iterator().next().columnType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableInnerTests.java index 87ef19060d1b..d2c37b123980 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableInnerTests.java @@ -10,8 +10,9 @@ public final class SqlPoolTableInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SqlPoolTableInner model = BinaryData.fromString("{\"id\":\"vhixbjxy\",\"name\":\"w\",\"type\":\"yl\"}") - .toObject(SqlPoolTableInner.class); + SqlPoolTableInner model + = BinaryData.fromString("{\"id\":\"quhiosrsjuivf\",\"name\":\"disyirnxz\",\"type\":\"czexrxzbujrtrhqv\"}") + .toObject(SqlPoolTableInner.class); } @org.junit.jupiter.api.Test diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableListResultTests.java index af13008da420..7e68aea84708 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableListResultTests.java @@ -11,7 +11,7 @@ public final class SqlPoolTableListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolTableListResult model = BinaryData.fromString( - "{\"value\":[{\"id\":\"kvi\",\"name\":\"mdscwxqupev\",\"type\":\"hfstotxhojujbyp\"}],\"nextLink\":\"mc\"}") + "{\"value\":[{\"id\":\"wm\",\"name\":\"xmeb\",\"type\":\"jscjpahl\"},{\"id\":\"veabfqxnmwmqtib\",\"name\":\"yijddtvqcttad\",\"type\":\"jaeukmrsieekpn\"},{\"id\":\"zaapmudqmeqwi\",\"name\":\"pibudqwyxebeybpm\",\"type\":\"znrtffyaqit\"},{\"id\":\"hheioqaqhvseuf\",\"name\":\"qyrxp\",\"type\":\"lcgqlsismj\"}],\"nextLink\":\"rddga\"}") .toObject(SqlPoolTableListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetWithResponseMockTests.java index 8743940c34ab..3da2a5603322 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class SqlPoolTablesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - String responseStr = "{\"id\":\"exojfccy\",\"name\":\"h\",\"type\":\"rh\"}"; + String responseStr = "{\"id\":\"vgllixdgby\",\"name\":\"gwewqkjvxprwpxso\",\"type\":\"hu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SqlPoolTable response = manager.sqlPoolTables() - .getWithResponse("oywlunpipcwyb", "zfn", "npatpftsae", "wf", "hxorpwaltzwu", + .getWithResponse("vdpwwobtdphti", "sffofwanmhksca", "w", "zcgwdfriw", "ybjpozoks", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaMockTests.java index 0e21fb900f61..8773df827aab 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaMockTests.java @@ -20,7 +20,7 @@ public final class SqlPoolTablesListBySchemaMockTests { @Test public void testListBySchema() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"rcmvouujx\",\"name\":\"iikmoxrezsvavlrx\",\"type\":\"kj\"}]}"; + String responseStr = "{\"value\":[{\"id\":\"qgnnbz\",\"name\":\"tftedz\",\"type\":\"ubjtvgjsxmtyjjv\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,7 @@ public void testListBySchema() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.sqlPoolTables() - .listBySchema("uhqvums", "bfs", "eqbbewfcuqfpy", "xmzrmtmvwitu", "eyyjshcybwfuppox", - com.azure.core.util.Context.NONE); + .listBySchema("j", "d", "zfxnxmlbmuos", "kjmdihdcyy", "zlwhbwzjnufzrfgm", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMockTests.java index 165ecf6c77a4..efeab56fd1a4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMo @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"location\":\"nlmsoo\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"ecdh\",\"name\":\"yswcrptveajczx\",\"type\":\"lgsrgkrfizrpywlp\"}"; + = "{\"location\":\"gmnzjotvmrx\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"bvvjbhvhdiq\",\"name\":\"yfluiyuosnuudte\",\"type\":\"vhyibdrqrsw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,8 +34,8 @@ public void testCreateOrUpdateWithResponse() throws Exception { TransparentDataEncryption response = manager.sqlPoolTransparentDataEncryptions() .define(TransparentDataEncryptionName.CURRENT) - .withExistingSqlPool("oti", "fbbcngkegxcypxbb", "etwilyrzoxpd") - .withStatus(TransparentDataEncryptionStatus.ENABLED) + .withExistingSqlPool("exkydfb", "lj", "vhuerkjddvrglieg") + .withStatus(TransparentDataEncryptionStatus.DISABLED) .create(); Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, response.status()); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetWithResponseMockTests.java index 94321fcfb95c..cc16a074dfe7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolTransparentDataEncryptionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"location\":\"tqstqkqsygxiyne\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"gzkheubanl\",\"name\":\"u\",\"type\":\"pqcckqiawzlz\"}"; + = "{\"location\":\"xljtxbusqtbxxn\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"dzhgbdgzpags\",\"name\":\"cnadbuwqrgxf\",\"type\":\"lmqiynezoel\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); TransparentDataEncryption response = manager.sqlPoolTransparentDataEncryptions() - .getWithResponse("hqwhitxnmxgnmguz", "uwvorbalkjn", "kbd", TransparentDataEncryptionName.CURRENT, + .getWithResponse("gfquwz", "w", "ibelwcerwkw", TransparentDataEncryptionName.CURRENT, com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(TransparentDataEncryptionStatus.ENABLED, response.status()); + Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, response.status()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListMockTests.java index b72d3a0300fe..fb7595ec65b1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolTransparentDataEncryptionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"oejtig\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"pytn\",\"name\":\"qbalahovuuwxhme\",\"type\":\"jnhj\"}]}"; + = "{\"value\":[{\"location\":\"lduwzorxsb\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"klxymxkqvfqepdxc\",\"name\":\"tuubwyvpjb\",\"type\":\"wcpjqduqgi\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,7 +33,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.sqlPoolTransparentDataEncryptions() - .list("laslgacizux", "r", "rwpewsa", com.azure.core.util.Context.NONE); + .list("nkkiiwvmtumxpy", "djf", "axroqvqpilrgunc", com.azure.core.util.Context.NONE); Assertions.assertEquals(TransparentDataEncryptionStatus.ENABLED, response.iterator().next().status()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageInnerTests.java index 74073b13d7d5..0ac9a865ee50 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageInnerTests.java @@ -11,7 +11,7 @@ public final class SqlPoolUsageInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolUsageInner model = BinaryData.fromString( - "{\"name\":\"gdknnqv\",\"resourceName\":\"znqntoru\",\"displayName\":\"gsahmkycgrauw\",\"currentValue\":35.149572223577785,\"limit\":27.237904606376194,\"unit\":\"ruvdmov\",\"nextResetTime\":\"2021-10-21T17:37:50Z\"}") + "{\"name\":\"y\",\"resourceName\":\"etoge\",\"displayName\":\"oxslh\",\"currentValue\":35.44101401146429,\"limit\":63.22883329954221,\"unit\":\"nk\",\"nextResetTime\":\"2021-02-01T01:24:39Z\"}") .toObject(SqlPoolUsageInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageListResultTests.java index 144698ff2c04..907a66f2b7af 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageListResultTests.java @@ -13,13 +13,14 @@ public final class SqlPoolUsageListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolUsageListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"nwdcfhu\",\"resourceName\":\"dpfuvg\",\"displayName\":\"bjj\",\"currentValue\":36.3222034919501,\"limit\":87.04760186425912,\"unit\":\"vudutncor\",\"nextResetTime\":\"2021-05-08T09:13:15Z\"}],\"nextLink\":\"qtvcofudflvkgj\"}") + "{\"value\":[{\"name\":\"gqouwifzmpj\",\"resourceName\":\"ivqikfxcvhr\",\"displayName\":\"phuagrttikteusq\",\"currentValue\":87.87099495421192,\"limit\":46.588120409870506,\"unit\":\"ubyjaffmmf\",\"nextResetTime\":\"2021-09-28T19:04:07Z\"},{\"name\":\"cuubgq\",\"resourceName\":\"rtalmet\",\"displayName\":\"wgdsl\",\"currentValue\":33.67256782052066,\"limit\":50.135091196767334,\"unit\":\"oi\",\"nextResetTime\":\"2021-02-26T07:29:44Z\"}],\"nextLink\":\"ypxiutcxap\"}") .toObject(SqlPoolUsageListResult.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolUsageListResult model = new SqlPoolUsageListResult().withValue(Arrays.asList(new SqlPoolUsageInner())); + SqlPoolUsageListResult model + = new SqlPoolUsageListResult().withValue(Arrays.asList(new SqlPoolUsageInner(), new SqlPoolUsageInner())); model = BinaryData.fromObject(model).toObject(SqlPoolUsageListResult.class); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListMockTests.java index fc3c144e8b04..3a367c6183f4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolUsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"qcahfsgbjmlree\",\"resourceName\":\"fwsszvlcwlis\",\"displayName\":\"ntfxxcrqmipfjwfo\",\"currentValue\":55.736030908437186,\"limit\":3.2255222256611926,\"unit\":\"xbaizab\",\"nextResetTime\":\"2021-04-04T08:17:35Z\"}]}"; + = "{\"value\":[{\"name\":\"adydg\",\"resourceName\":\"autw\",\"displayName\":\"exzgpmnmabedd\",\"currentValue\":75.83144024777224,\"limit\":0.5419004717089115,\"unit\":\"fqfp\",\"nextResetTime\":\"2020-12-26T19:35:53Z\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.sqlPoolUsages().list("trlxcznnhzkbn", "mxlxmwtygeq", "usi", com.azure.core.util.Context.NONE); + = manager.sqlPoolUsages().list("imioyo", "glkmiqwnnr", "clibbfqpsp", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests.java index d72d5f47de0e..957930bf4113 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests.java @@ -14,18 +14,17 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolVulnerabilityAssessmentRuleBaselineInner model = BinaryData.fromString( - "{\"properties\":{\"baselineResults\":[{\"result\":[\"qfzgemjdftul\"]},{\"result\":[\"tduceamt\",\"czu\"]}]},\"id\":\"m\",\"name\":\"jw\",\"type\":\"w\"}") + "{\"properties\":{\"baselineResults\":[{\"result\":[\"jmygvk\",\"qkjjeokbz\",\"fezrx\",\"czurtlei\"]}]},\"id\":\"q\",\"name\":\"bkwvzg\",\"type\":\"zvd\"}") .toObject(SqlPoolVulnerabilityAssessmentRuleBaselineInner.class); - Assertions.assertEquals("qfzgemjdftul", model.baselineResults().get(0).result().get(0)); + Assertions.assertEquals("jmygvk", model.baselineResults().get(0).result().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineInner model - = new SqlPoolVulnerabilityAssessmentRuleBaselineInner().withBaselineResults(Arrays.asList( - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("qfzgemjdftul")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("tduceamt", "czu")))); + SqlPoolVulnerabilityAssessmentRuleBaselineInner model = new SqlPoolVulnerabilityAssessmentRuleBaselineInner() + .withBaselineResults(Arrays.asList(new SqlPoolVulnerabilityAssessmentRuleBaselineItem() + .withResult(Arrays.asList("jmygvk", "qkjjeokbz", "fezrx", "czurtlei")))); model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentRuleBaselineInner.class); - Assertions.assertEquals("qfzgemjdftul", model.baselineResults().get(0).result().get(0)); + Assertions.assertEquals("jmygvk", model.baselineResults().get(0).result().get(0)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineItemTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineItemTests.java index e2f4ecf87b90..d438bde992e3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineItemTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineItemTests.java @@ -12,16 +12,16 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselineItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineItem model = BinaryData.fromString("{\"result\":[\"htba\"]}") + SqlPoolVulnerabilityAssessmentRuleBaselineItem model = BinaryData.fromString("{\"result\":[\"la\"]}") .toObject(SqlPoolVulnerabilityAssessmentRuleBaselineItem.class); - Assertions.assertEquals("htba", model.result().get(0)); + Assertions.assertEquals("la", model.result().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SqlPoolVulnerabilityAssessmentRuleBaselineItem model - = new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("htba")); + = new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("la")); model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentRuleBaselineItem.class); - Assertions.assertEquals("htba", model.result().get(0)); + Assertions.assertEquals("la", model.result().get(0)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests.java index e995c877b088..fbecb30709b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests.java @@ -13,22 +13,21 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineProperties model = BinaryData.fromString( - "{\"baselineResults\":[{\"result\":[\"oknssxmojmsvpkjp\",\"vk\",\"cfzq\"]},{\"result\":[\"yxgtczh\",\"ydbsd\"]},{\"result\":[\"m\",\"xmaehvbbxu\",\"iplt\"]}]}") + SqlPoolVulnerabilityAssessmentRuleBaselineProperties model = BinaryData + .fromString( + "{\"baselineResults\":[{\"result\":[\"d\"]},{\"result\":[\"zmqpnodawopqhewj\",\"tmcg\",\"bostzel\"]}]}") .toObject(SqlPoolVulnerabilityAssessmentRuleBaselineProperties.class); - Assertions.assertEquals("oknssxmojmsvpkjp", model.baselineResults().get(0).result().get(0)); + Assertions.assertEquals("d", model.baselineResults().get(0).result().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SqlPoolVulnerabilityAssessmentRuleBaselineProperties model - = new SqlPoolVulnerabilityAssessmentRuleBaselineProperties().withBaselineResults(Arrays.asList( - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("oknssxmojmsvpkjp", "vk", "cfzq")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("yxgtczh", "ydbsd")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("m", "xmaehvbbxu", "iplt")))); + = new SqlPoolVulnerabilityAssessmentRuleBaselineProperties().withBaselineResults( + Arrays.asList(new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("d")), + new SqlPoolVulnerabilityAssessmentRuleBaselineItem() + .withResult(Arrays.asList("zmqpnodawopqhewj", "tmcg", "bostzel")))); model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentRuleBaselineProperties.class); - Assertions.assertEquals("oknssxmojmsvpkjp", model.baselineResults().get(0).result().get(0)); + Assertions.assertEquals("d", model.baselineResults().get(0).result().get(0)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWithResponseMockTests.java index c2de95b786e5..2ed790d3034e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWithResponseMockTests.java @@ -25,7 +25,7 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWith @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"baselineResults\":[{\"result\":[\"wayqshwyqxrid\",\"tb\",\"aqjmkgxqwque\"]},{\"result\":[\"ylztp\",\"iizevjykofvez\",\"fkhkqtwqlep\",\"jzkcasfwzcntog\"]},{\"result\":[\"jwajnrtw\",\"vaqkifmxawost\"]},{\"result\":[\"knhrkmjqncf\"]}]},\"id\":\"dscnhemvwfnqqwy\",\"name\":\"vndrwbgodtg\",\"type\":\"rssgwjf\"}"; + = "{\"properties\":{\"baselineResults\":[{\"result\":[\"yfpqd\"]},{\"result\":[\"kpp\",\"wyytfvpctf\",\"ikff\"]}]},\"id\":\"fgkuh\",\"name\":\"nwhvuldbkkejj\",\"type\":\"jigawgaz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,17 +36,13 @@ public void testCreateOrUpdateWithResponse() throws Exception { SqlPoolVulnerabilityAssessmentRuleBaseline response = manager.sqlPoolVulnerabilityAssessmentRuleBaselines() .define(VulnerabilityAssessmentPolicyBaselineName.DEFAULT) - .withExistingRule("loggdusxursu", "v", "xcjkcoqwczsy", VulnerabilityAssessmentName.DEFAULT, "rizfwihvaang") + .withExistingRule("e", "qlvge", "pwgoljt", VulnerabilityAssessmentName.DEFAULT, "nm") .withBaselineResults(Arrays.asList( - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("rfdmfdvbbaexx")), new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("wtgdfkkaui", "vmuafmc", "fedyuep", "vpltidajjvy")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("ocfkumcfjxoky", "lsyasv", "nkwmygjj", "krknf")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("ugjqyckgtxkrdt", "lcr", "jdkl")))) + .withResult(Arrays.asList("ygoogxqapjxva", "yjfucsaod")), + new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("os", "kvibfa")))) .create(); - Assertions.assertEquals("wayqshwyqxrid", response.baselineResults().get(0).result().get(0)); + Assertions.assertEquals("yfpqd", response.baselineResults().get(0).result().get(0)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteWithResponseMockTests.java index f0ddec9ac72f..eade2273c211 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteWithResponseMockTests.java @@ -30,8 +30,8 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolVulnerabilityAssessmentRuleBaselines() - .deleteWithResponse("iqcpszpmcvq", "vrdmvxyrxdh", "vqojbxaotcgbz", VulnerabilityAssessmentName.DEFAULT, - "btplefoi", VulnerabilityAssessmentPolicyBaselineName.DEFAULT, com.azure.core.util.Context.NONE); + .deleteWithResponse("oxz", "wpsyxjij", "ypdvrbkerdkdkga", VulnerabilityAssessmentName.DEFAULT, + "wjxildfkcefeyg", VulnerabilityAssessmentPolicyBaselineName.MASTER, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMockTests.java index d9ef7def0f91..59548f0f2cb3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMoc @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"baselineResults\":[{\"result\":[\"nvynfaooeactedc\",\"lsk\",\"k\"]},{\"result\":[\"id\",\"hzllrqmtlpbyxro\"]},{\"result\":[\"uyqyp\",\"fmnoiicsudy\"]},{\"result\":[\"rjjtalxrdsjrho\",\"uqwg\",\"sxxhdodp\",\"wyblv\"]}]},\"id\":\"bdmvsby\",\"name\":\"daelqpv\",\"type\":\"kmkwjfbo\"}"; + = "{\"properties\":{\"baselineResults\":[{\"result\":[\"ycoybajasqubf\",\"j\",\"ywhjqwmchq\",\"htfxcpupuki\"]},{\"result\":[\"j\",\"pwdlvwti\",\"smosaonhqnam\",\"pultas\"]}]},\"id\":\"aekewnazea\",\"name\":\"bkajlcyizy\",\"type\":\"dcvxodkrvfsxxby\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SqlPoolVulnerabilityAssessmentRuleBaseline response = manager.sqlPoolVulnerabilityAssessmentRuleBaselines() - .getWithResponse("idoxznvgvdtmuuv", "awsxmrszbknimxlp", "erxrzutylcurza", - VulnerabilityAssessmentName.DEFAULT, "nbxqaeht", VulnerabilityAssessmentPolicyBaselineName.DEFAULT, - com.azure.core.util.Context.NONE) + .getWithResponse("pjois", "mnaybdjnxumentq", "ntwhymxymulwiv", VulnerabilityAssessmentName.DEFAULT, "o", + VulnerabilityAssessmentPolicyBaselineName.MASTER, com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nvynfaooeactedc", response.baselineResults().get(0).result().get(0)); + Assertions.assertEquals("ycoybajasqubf", response.baselineResults().get(0).result().get(0)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScanExportPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScanExportPropertiesTests.java index 69e87fb63be3..f10fcb00087c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScanExportPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScanExportPropertiesTests.java @@ -11,7 +11,7 @@ public final class SqlPoolVulnerabilityAssessmentScanExportPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolVulnerabilityAssessmentScanExportProperties model - = BinaryData.fromString("{\"exportedReportLocation\":\"wp\"}") + = BinaryData.fromString("{\"exportedReportLocation\":\"r\"}") .toObject(SqlPoolVulnerabilityAssessmentScanExportProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportInnerTests.java index d633c6aeb17f..260b0cf4d6fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportInnerTests.java @@ -11,7 +11,7 @@ public final class SqlPoolVulnerabilityAssessmentScansExportInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlPoolVulnerabilityAssessmentScansExportInner model = BinaryData.fromString( - "{\"properties\":{\"exportedReportLocation\":\"rsre\"},\"id\":\"zvxurisjnhny\",\"name\":\"xifqjzgxm\",\"type\":\"hu\"}") + "{\"properties\":{\"exportedReportLocation\":\"bmqzbqqxlajrnwx\"},\"id\":\"cevehjkuyxoafg\",\"name\":\"oqltfae\",\"type\":\"linmfgv\"}") .toObject(SqlPoolVulnerabilityAssessmentScansExportInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTests.java index b0870a90ce07..c053b1622afc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTest @Test public void testExportWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"exportedReportLocation\":\"eot\"},\"id\":\"xuarigrjdljl\",\"name\":\"q\",\"type\":\"vkrbzkuastaxklpr\"}"; + = "{\"properties\":{\"exportedReportLocation\":\"njdllwktlepowavv\"},\"id\":\"xu\",\"name\":\"jgcq\",\"type\":\"ulynkgfcfd\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testExportWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SqlPoolVulnerabilityAssessmentScansExport response = manager.sqlPoolVulnerabilityAssessmentScans() - .exportWithResponse("gkfh", "xttpfs", "wgsghqucumldd", VulnerabilityAssessmentName.DEFAULT, "qm", + .exportWithResponse("atecaa", "sdohz", "iucbda", VulnerabilityAssessmentName.DEFAULT, "b", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanMockTests.java index 83e31a7c6039..8d183bf5f64b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanMockTests.java @@ -29,7 +29,7 @@ public void testInitiateScan() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolVulnerabilityAssessmentScans() - .initiateScan("gbrhbjd", "knhqnmotpuwnnohm", "zngocfrjuypwyiul", VulnerabilityAssessmentName.DEFAULT, "nos", + .initiateScan("phfky", "zolgjzmicuydocc", "xshanzb", VulnerabilityAssessmentName.DEFAULT, "adh", com.azure.core.util.Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteWithResponseMockTests.java index 29e8dc63c550..53b2dec1bcac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteWithResponseMockTests.java @@ -29,7 +29,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolVulnerabilityAssessments() - .deleteWithResponse("lniibncg", "gdvcdqhftz", "pyfaofdfp", VulnerabilityAssessmentName.DEFAULT, + .deleteWithResponse("pdtsdfjyiesocwi", "bu", "utmp", VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersCreateOrUpdateMockTests.java index 2e245080b968..7af8e02ba8f1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersCreateOrUpdateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersCreateOrUpdateMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolWorkloadClassifiersCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"memberName\":\"idtoakat\",\"label\":\"ytgrhzbqfd\",\"context\":\"aw\",\"startTime\":\"tvcshtkutzcttb\",\"endTime\":\"dirdammtzjgc\",\"importance\":\"fxtbwjjirmuydg\"},\"id\":\"t\",\"name\":\"mdofgeoagfuoft\",\"type\":\"xodwxm\"}"; + = "{\"properties\":{\"memberName\":\"wglihezomu\",\"label\":\"qgisnionetbzdrd\",\"context\":\"enx\",\"startTime\":\"tlzlmtrlxcznnhz\",\"endTime\":\"nbmxlx\",\"importance\":\"tygeqzus\"},\"id\":\"toqcahfsgbjm\",\"name\":\"reesrfwsszvl\",\"type\":\"wliso\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,21 +31,21 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadClassifier response = manager.sqlPoolWorkloadClassifiers() - .define("ry") - .withExistingWorkloadGroup("qllczipvwdtgckz", "qiqdlratrkwxoau", "xsuykznhrfg", "lglh") - .withMemberName("zihuioaeo") - .withLabel("ajtfey") - .withContext("bdgddkrh") - .withStartTime("cxbeuuqutkzwtjww") - .withEndTime("zytijcx") - .withImportance("ondegjdydhqkkk") + .define("hqodv") + .withExistingWorkloadGroup("fwzlgzawkgyepeya", "nnidmdiawpzxk", "rntmkctdhu", "sgwqpsqaz") + .withMemberName("cnbhcb") + .withLabel("kztibni") + .withContext("tsxjmfmeftvhkmoo") + .withStartTime("rh") + .withEndTime("bwgmjgrul") + .withImportance("ogxhcxn") .create(); - Assertions.assertEquals("idtoakat", response.memberName()); - Assertions.assertEquals("ytgrhzbqfd", response.label()); - Assertions.assertEquals("aw", response.context()); - Assertions.assertEquals("tvcshtkutzcttb", response.startTime()); - Assertions.assertEquals("dirdammtzjgc", response.endTime()); - Assertions.assertEquals("fxtbwjjirmuydg", response.importance()); + Assertions.assertEquals("wglihezomu", response.memberName()); + Assertions.assertEquals("qgisnionetbzdrd", response.label()); + Assertions.assertEquals("enx", response.context()); + Assertions.assertEquals("tlzlmtrlxcznnhz", response.startTime()); + Assertions.assertEquals("nbmxlx", response.endTime()); + Assertions.assertEquals("tygeqzus", response.importance()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersDeleteMockTests.java index 32ab4e44f1cd..cb58e18bec79 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersDeleteMockTests.java @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolWorkloadClassifiers() - .delete("vyztxlno", "fpbjc", "egvyieztkutnj", "llukkreh", "htmjo", com.azure.core.util.Context.NONE); + .delete("fetwi", "y", "zox", "dxqlfrolq", "wnk", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersGetWithResponseMockTests.java index 48221bf61535..687f008d8df9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolWorkloadClassifiersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"memberName\":\"oiauesugmocpcj\",\"label\":\"boel\",\"context\":\"ttwfldsiuorini\",\"startTime\":\"edpksriwmmtmqrxr\",\"endTime\":\"vvyczy\",\"importance\":\"ubt\"},\"id\":\"mbxiqahra\",\"name\":\"pxmib\",\"type\":\"lnupoyryefqmw\"}"; + = "{\"properties\":{\"memberName\":\"ubanlxunpq\",\"label\":\"kqiawzlzklasl\",\"context\":\"ciz\",\"startTime\":\"lrarwpewsaudo\",\"endTime\":\"tighsxjpy\",\"importance\":\"kqbalah\"},\"id\":\"vuuwxhmeh\",\"name\":\"nhjiotiffb\",\"type\":\"cngkegxcypxb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadClassifier response = manager.sqlPoolWorkloadClassifiers() - .getWithResponse("ewikfyaqandmym", "qoq", "umov", "fbpbvzopaxmfmvsm", "woxfaxdtnqifbsa", + .getWithResponse("hqwhitxnmxgnmguz", "uwvorbalkjn", "kbd", "lltqstqkqs", "gxiynecovagzk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("oiauesugmocpcj", response.memberName()); - Assertions.assertEquals("boel", response.label()); - Assertions.assertEquals("ttwfldsiuorini", response.context()); - Assertions.assertEquals("edpksriwmmtmqrxr", response.startTime()); - Assertions.assertEquals("vvyczy", response.endTime()); - Assertions.assertEquals("ubt", response.importance()); + Assertions.assertEquals("ubanlxunpq", response.memberName()); + Assertions.assertEquals("kqiawzlzklasl", response.label()); + Assertions.assertEquals("ciz", response.context()); + Assertions.assertEquals("lrarwpewsaudo", response.startTime()); + Assertions.assertEquals("tighsxjpy", response.endTime()); + Assertions.assertEquals("kqbalah", response.importance()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersListMockTests.java index 8cd765e2249f..0a2ecaf04009 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersListMockTests.java @@ -22,7 +22,7 @@ public final class SqlPoolWorkloadClassifiersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"memberName\":\"zkddnvovb\",\"label\":\"qbmdqrxyglaets\",\"context\":\"lw\",\"startTime\":\"dtlri\",\"endTime\":\"ooy\",\"importance\":\"uxdtzcq\"},\"id\":\"psdudgco\",\"name\":\"zomehxlantolam\",\"type\":\"bijux\"}]}"; + = "{\"value\":[{\"properties\":{\"memberName\":\"wcrpt\",\"label\":\"ajczxvl\",\"context\":\"rgkrfi\",\"startTime\":\"pywlptyuqhrl\",\"endTime\":\"skykpfuofix\",\"importance\":\"pcfykkpy\"},\"id\":\"cpawmp\",\"name\":\"prdpwrpc\",\"type\":\"pcf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.sqlPoolWorkloadClassifiers() - .list("uif", "ulxfaryrvjl", "dezvjqw", "hoyiyaxqvjweiw", com.azure.core.util.Context.NONE); + .list("u", "jew", "ahwkxjjm", "tnlmsoodtmvecdhd", com.azure.core.util.Context.NONE); - Assertions.assertEquals("zkddnvovb", response.iterator().next().memberName()); - Assertions.assertEquals("qbmdqrxyglaets", response.iterator().next().label()); - Assertions.assertEquals("lw", response.iterator().next().context()); - Assertions.assertEquals("dtlri", response.iterator().next().startTime()); - Assertions.assertEquals("ooy", response.iterator().next().endTime()); - Assertions.assertEquals("uxdtzcq", response.iterator().next().importance()); + Assertions.assertEquals("wcrpt", response.iterator().next().memberName()); + Assertions.assertEquals("ajczxvl", response.iterator().next().label()); + Assertions.assertEquals("rgkrfi", response.iterator().next().context()); + Assertions.assertEquals("pywlptyuqhrl", response.iterator().next().startTime()); + Assertions.assertEquals("skykpfuofix", response.iterator().next().endTime()); + Assertions.assertEquals("pcfykkpy", response.iterator().next().importance()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsCreateOrUpdateMockTests.java index 5c1100b58493..588b96254f7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsCreateOrUpdateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsCreateOrUpdateMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolWorkloadGroupsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"minResourcePercent\":464620773,\"maxResourcePercent\":1081611869,\"minResourcePercentPerRequest\":26.635860012908495,\"maxResourcePercentPerRequest\":37.11285666442489,\"importance\":\"orimmo\",\"queryExecutionTimeout\":1287065466},\"id\":\"de\",\"name\":\"kkmvhzfovanyrva\",\"type\":\"rtgelg\"}"; + = "{\"properties\":{\"minResourcePercent\":1820004369,\"maxResourcePercent\":138567947,\"minResourcePercentPerRequest\":91.25878692489961,\"maxResourcePercentPerRequest\":23.282740053067407,\"importance\":\"vztiucwviqllukh\",\"queryExecutionTimeout\":576317178},\"id\":\"qxgcbvzarmqcbpo\",\"name\":\"stsinvag\",\"type\":\"vjyhdrxbrdvc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,21 +31,21 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadGroup response = manager.sqlPoolWorkloadGroups() - .define("qvkixnmbzmecuyrz") - .withExistingSqlPool("flqjfshtu", "cyohigimwdcs", "lkq") - .withMinResourcePercent(1409427025) - .withMaxResourcePercent(513897021) - .withMinResourcePercentPerRequest(67.91735830131613) - .withMaxResourcePercentPerRequest(85.2231290647608D) - .withImportance("vrietvfp") - .withQueryExecutionTimeout(1948776985) + .define("i") + .withExistingSqlPool("ikyjtkakvlb", "shjvpzaptuoskaoi", "jixwfgc") + .withMinResourcePercent(1869059553) + .withMaxResourcePercent(89327285) + .withMinResourcePercentPerRequest(50.80002194867509) + .withMaxResourcePercentPerRequest(64.43193670749677D) + .withImportance("qynvavitmdm") + .withQueryExecutionTimeout(708536304) .create(); - Assertions.assertEquals(464620773, response.minResourcePercent()); - Assertions.assertEquals(1081611869, response.maxResourcePercent()); - Assertions.assertEquals(26.635860012908495, response.minResourcePercentPerRequest()); - Assertions.assertEquals(37.11285666442489D, response.maxResourcePercentPerRequest()); - Assertions.assertEquals("orimmo", response.importance()); - Assertions.assertEquals(1287065466, response.queryExecutionTimeout()); + Assertions.assertEquals(1820004369, response.minResourcePercent()); + Assertions.assertEquals(138567947, response.maxResourcePercent()); + Assertions.assertEquals(91.25878692489961, response.minResourcePercentPerRequest()); + Assertions.assertEquals(23.282740053067407D, response.maxResourcePercentPerRequest()); + Assertions.assertEquals("vztiucwviqllukh", response.importance()); + Assertions.assertEquals(576317178, response.queryExecutionTimeout()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsDeleteMockTests.java index 13275a278906..9e34867f7269 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsDeleteMockTests.java @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.sqlPoolWorkloadGroups() - .delete("vcdsvm", "bit", "kdtfo", "vfiybxqichgyb", com.azure.core.util.Context.NONE); + .delete("nrecchdidrm", "hkahmjedbiucvkh", "wmjpjbweunxcqrr", "hu", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsGetWithResponseMockTests.java index cfef454613d2..0a49a8ef7e62 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SqlPoolWorkloadGroupsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"minResourcePercent\":1518766637,\"maxResourcePercent\":1643198710,\"minResourcePercentPerRequest\":18.202032298846227,\"maxResourcePercentPerRequest\":85.92328199984041,\"importance\":\"uvjhxmnrqstjc\",\"queryExecutionTimeout\":1223754124},\"id\":\"wmlgicvnpv\",\"name\":\"dhgjnaqyqi\",\"type\":\"slz\"}"; + = "{\"properties\":{\"minResourcePercent\":399252436,\"maxResourcePercent\":164724572,\"minResourcePercentPerRequest\":90.82031338914143,\"maxResourcePercentPerRequest\":26.39726268452598,\"importance\":\"y\",\"queryExecutionTimeout\":969990707},\"id\":\"wmpftmfoe\",\"name\":\"jogsyx\",\"type\":\"etamfddrvlkpzwb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadGroup response = manager.sqlPoolWorkloadGroups() - .getWithResponse("gzrujlqc", "ny", "lleiq", "cbgvsbt", com.azure.core.util.Context.NONE) + .getWithResponse("xwjnfcz", "nniixyxvqba", "os", "tgirnb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(1518766637, response.minResourcePercent()); - Assertions.assertEquals(1643198710, response.maxResourcePercent()); - Assertions.assertEquals(18.202032298846227, response.minResourcePercentPerRequest()); - Assertions.assertEquals(85.92328199984041D, response.maxResourcePercentPerRequest()); - Assertions.assertEquals("uvjhxmnrqstjc", response.importance()); - Assertions.assertEquals(1223754124, response.queryExecutionTimeout()); + Assertions.assertEquals(399252436, response.minResourcePercent()); + Assertions.assertEquals(164724572, response.maxResourcePercent()); + Assertions.assertEquals(90.82031338914143, response.minResourcePercentPerRequest()); + Assertions.assertEquals(26.39726268452598D, response.maxResourcePercentPerRequest()); + Assertions.assertEquals("y", response.importance()); + Assertions.assertEquals(969990707, response.queryExecutionTimeout()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsListMockTests.java index 0357f183bf98..d06ea5563579 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsListMockTests.java @@ -22,7 +22,7 @@ public final class SqlPoolWorkloadGroupsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"minResourcePercent\":756636638,\"maxResourcePercent\":1143558986,\"minResourcePercentPerRequest\":91.5593139339048,\"maxResourcePercentPerRequest\":1.7688079195071205,\"importance\":\"mdutzfk\",\"queryExecutionTimeout\":1273960341},\"id\":\"no\",\"name\":\"dccgndjgdpriggqq\",\"type\":\"eqfcbuulpy\"}]}"; + = "{\"value\":[{\"properties\":{\"minResourcePercent\":998362511,\"maxResourcePercent\":1079143873,\"minResourcePercentPerRequest\":11.698060849667225,\"maxResourcePercentPerRequest\":42.57665178263599,\"importance\":\"uzvkunhdimjuk\",\"queryExecutionTimeout\":57578265},\"id\":\"zkaugpucdocfqpl\",\"name\":\"gofmhxwrjlv\",\"type\":\"klkvb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,14 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.sqlPoolWorkloadGroups() - .list("zdqekivycpzcvd", "zulrqt", "htre", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.sqlPoolWorkloadGroups().list("oihppi", "bxv", "nzuz", com.azure.core.util.Context.NONE); - Assertions.assertEquals(756636638, response.iterator().next().minResourcePercent()); - Assertions.assertEquals(1143558986, response.iterator().next().maxResourcePercent()); - Assertions.assertEquals(91.5593139339048, response.iterator().next().minResourcePercentPerRequest()); - Assertions.assertEquals(1.7688079195071205D, response.iterator().next().maxResourcePercentPerRequest()); - Assertions.assertEquals("mdutzfk", response.iterator().next().importance()); - Assertions.assertEquals(1273960341, response.iterator().next().queryExecutionTimeout()); + Assertions.assertEquals(998362511, response.iterator().next().minResourcePercent()); + Assertions.assertEquals(1079143873, response.iterator().next().maxResourcePercent()); + Assertions.assertEquals(11.698060849667225, response.iterator().next().minResourcePercentPerRequest()); + Assertions.assertEquals(42.57665178263599D, response.iterator().next().maxResourcePercentPerRequest()); + Assertions.assertEquals("uzvkunhdimjuk", response.iterator().next().importance()); + Assertions.assertEquals(57578265, response.iterator().next().queryExecutionTimeout()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateMockTests.java index 6a7b44a96456..20802521455f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateMockTests.java @@ -26,7 +26,7 @@ public final class SqlPoolsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"sku\":{\"tier\":\"xkukm\",\"name\":\"zynuh\",\"capacity\":556850765},\"properties\":{\"maxSizeBytes\":1119204092487656709,\"collation\":\"vl\",\"sourceDatabaseId\":\"k\",\"recoverableDatabaseId\":\"rqolnthbb\",\"provisioningState\":\"Succeeded\",\"status\":\"nzkjthfceyjn\",\"restorePointInTime\":\"2021-11-10T15:42:33Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-01-15T20:08:38Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-08-31T04:50:59Z\"},\"location\":\"fiddhlrufzcq\",\"tags\":{\"k\":\"qrfuiocusel\"},\"id\":\"sazrhxuddqmdtff\",\"name\":\"sjmrkkhm\",\"type\":\"dmdlgyqixokw\"}"; + = "{\"sku\":{\"tier\":\"qtoyrpl\",\"name\":\"lajmllp\",\"capacity\":86519488},\"properties\":{\"maxSizeBytes\":2269079436448448677,\"collation\":\"owgw\",\"sourceDatabaseId\":\"mkekxpkzwaqxo\",\"recoverableDatabaseId\":\"ovchiqbplvfid\",\"provisioningState\":\"Succeeded\",\"status\":\"ihpq\",\"restorePointInTime\":\"2021-11-29T16:42:23Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-11-13T12:07:33Z\",\"storageAccountType\":\"GRS\"},\"location\":\"cx\",\"tags\":{\"vcxjsgbipcukdvek\":\"jfowxwy\"},\"id\":\"buhoduchv\",\"name\":\"scrdp\",\"type\":\"bfdyjduss\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,36 +36,38 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SqlPool response = manager.sqlPools() - .define("nm") - .withRegion("whvuldbkk") - .withExistingWorkspace("krvfsxxbydes", "lvgecpwgoljtz") - .withTags(mapOf("gawgazmxjqi", "kj", "jjsbcmlzaahzbhur", "h", "lirh", "olk")) - .withSku(new Sku().withTier("obygoo").withName("qa").withCapacity(323165043)) - .withMaxSizeBytes(6874264411354040379L) - .withCollation("fucsaodjnosdkvi") - .withSourceDatabaseId("asgmatrnzpd") - .withRecoverableDatabaseId("daaktuj") - .withProvisioningState("zboimyfpqdo") - .withRestorePointInTime(OffsetDateTime.parse("2021-09-15T03:44:33Z")) - .withCreateMode(CreateMode.POINT_IN_TIME_RESTORE) - .withStorageAccountType(StorageAccountType.LRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-08-30T07:51:53Z")) + .define("wakwseivmakxhys") + .withRegion("eituugedhfpjs") + .withExistingWorkspace("atuztjct", "bpvbkaehxsmzygd") + .withTags(mapOf("yjdeolctaebfs", "mbl", "tb", "rledjcu", "d", "tqi")) + .withSku(new Sku().withTier("juxlkbectvtfjm").withName("dchmaiubavlz").withCapacity(1418013122)) + .withMaxSizeBytes(8179148681287507578L) + .withCollation("kzaz") + .withSourceDatabaseId("oke") + .withRecoverableDatabaseId("jqafkmkro") + .withProvisioningState("rthqe") + .withStatus("pqrtvaoznqni") + .withRestorePointInTime(OffsetDateTime.parse("2020-12-25T05:02:08Z")) + .withCreateMode(CreateMode.RECOVERY) + .withCreationDate(OffsetDateTime.parse("2021-10-31T07:16:56Z")) + .withStorageAccountType(StorageAccountType.GRS) .create(); - Assertions.assertEquals("fiddhlrufzcq", response.location()); - Assertions.assertEquals("qrfuiocusel", response.tags().get("k")); - Assertions.assertEquals("xkukm", response.sku().tier()); - Assertions.assertEquals("zynuh", response.sku().name()); - Assertions.assertEquals(556850765, response.sku().capacity()); - Assertions.assertEquals(1119204092487656709L, response.maxSizeBytes()); - Assertions.assertEquals("vl", response.collation()); - Assertions.assertEquals("k", response.sourceDatabaseId()); - Assertions.assertEquals("rqolnthbb", response.recoverableDatabaseId()); + Assertions.assertEquals("cx", response.location()); + Assertions.assertEquals("jfowxwy", response.tags().get("vcxjsgbipcukdvek")); + Assertions.assertEquals("qtoyrpl", response.sku().tier()); + Assertions.assertEquals("lajmllp", response.sku().name()); + Assertions.assertEquals(86519488, response.sku().capacity()); + Assertions.assertEquals(2269079436448448677L, response.maxSizeBytes()); + Assertions.assertEquals("owgw", response.collation()); + Assertions.assertEquals("mkekxpkzwaqxo", response.sourceDatabaseId()); + Assertions.assertEquals("ovchiqbplvfid", response.recoverableDatabaseId()); Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T15:42:33Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, response.createMode()); + Assertions.assertEquals("ihpq", response.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-29T16:42:23Z"), response.restorePointInTime()); + Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, response.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-13T12:07:33Z"), response.creationDate()); Assertions.assertEquals(StorageAccountType.GRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-31T04:50:59Z"), response.sourceDatabaseDeletionDate()); } // Use "Map.of" if available diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteMockTests.java index 92357607bbe2..4f6cf2bcd64b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteMockTests.java @@ -10,20 +10,15 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; public final class SqlPoolsDeleteMockTests { @Test public void testDelete() throws Exception { - String responseStr - = "{\"sku\":{\"tier\":\"yzgleofjs\",\"name\":\"bwwzvdajf\",\"capacity\":237480750},\"properties\":{\"maxSizeBytes\":1453633443337432425,\"collation\":\"iqgjjrlhiql\",\"sourceDatabaseId\":\"xvtbougux\",\"recoverableDatabaseId\":\"dop\",\"provisioningState\":\"Succeeded\",\"status\":\"lapdlnd\",\"restorePointInTime\":\"2021-11-18T07:15:08Z\",\"createMode\":\"Recovery\",\"creationDate\":\"2021-08-26T23:47:14Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-07-04T21:04:33Z\"},\"location\":\"wy\",\"tags\":{\"zfe\":\"bfqvzfjmspu\"},\"id\":\"zjljmphfk\",\"name\":\"ezolgjzm\",\"type\":\"cuydoccnxshanz\"}"; + String responseStr = "\"datajpp\""; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,22 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - SqlPool response - = manager.sqlPools().delete("eaqgrvgpomxpupd", "sdfjyiesoc", "iqbuou", com.azure.core.util.Context.NONE); + Object response + = manager.sqlPools().delete("fzuvrzmz", "mzjqrbr", "vnmdyfoeboj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("wy", response.location()); - Assertions.assertEquals("bfqvzfjmspu", response.tags().get("zfe")); - Assertions.assertEquals("yzgleofjs", response.sku().tier()); - Assertions.assertEquals("bwwzvdajf", response.sku().name()); - Assertions.assertEquals(237480750, response.sku().capacity()); - Assertions.assertEquals(1453633443337432425L, response.maxSizeBytes()); - Assertions.assertEquals("iqgjjrlhiql", response.collation()); - Assertions.assertEquals("xvtbougux", response.sourceDatabaseId()); - Assertions.assertEquals("dop", response.recoverableDatabaseId()); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-18T07:15:08Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.RECOVERY, response.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-04T21:04:33Z"), response.sourceDatabaseDeletionDate()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetWithResponseMockTests.java index 6d7474d435be..cc86b65b335c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class SqlPoolsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"sku\":{\"tier\":\"klvzrl\",\"name\":\"l\",\"capacity\":1219772220},\"properties\":{\"maxSizeBytes\":8845842496565245250,\"collation\":\"zivfqbqnasdsy\",\"sourceDatabaseId\":\"zsieuscplhyvd\",\"recoverableDatabaseId\":\"lyzkxitds\",\"provisioningState\":\"zsvko\",\"status\":\"upjo\",\"restorePointInTime\":\"2021-01-15T17:21:56Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-06-21T07:21Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-10-20T06:12:37Z\"},\"location\":\"zwzlp\",\"tags\":{\"cmbezac\":\"zuykykipfsdyepfn\",\"tgkppgkqzkcyzmff\":\"pztgazwyqejgaaok\",\"goiutgw\":\"gdyfcixrhlcqvhoe\",\"yntacihnco\":\"mkahpqha\"},\"id\":\"mip\",\"name\":\"mliqmvlb\",\"type\":\"i\"}"; + = "{\"sku\":{\"tier\":\"chl\",\"name\":\"pwctofl\",\"capacity\":2128667253},\"properties\":{\"maxSizeBytes\":8723499745139166146,\"collation\":\"txkbr\",\"sourceDatabaseId\":\"drwjiy\",\"recoverableDatabaseId\":\"hfjsrwqrxetf\",\"provisioningState\":\"wvrrmdqn\",\"status\":\"cnawth\",\"restorePointInTime\":\"2021-06-23T07:16:30Z\",\"createMode\":\"Recovery\",\"creationDate\":\"2021-09-22T14:21:25Z\",\"storageAccountType\":\"LRS\"},\"location\":\"a\",\"tags\":{\"cpqtwloesq\":\"hudfjecehok\",\"uwj\":\"ggvrbnyrukoilaci\",\"pjlh\":\"e\",\"whbgxvellvul\":\"yxpzruzythqk\"},\"id\":\"xdm\",\"name\":\"itmujdtvm\",\"type\":\"lyymffhmjpddny\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,22 +33,23 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SqlPool response = manager.sqlPools() - .getWithResponse("qwec", "snhpcselqx", "vppqi", com.azure.core.util.Context.NONE) + .getWithResponse("meboywhczzq", "hmngqb", "dygisrzwnykd", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zwzlp", response.location()); - Assertions.assertEquals("zuykykipfsdyepfn", response.tags().get("cmbezac")); - Assertions.assertEquals("klvzrl", response.sku().tier()); - Assertions.assertEquals("l", response.sku().name()); - Assertions.assertEquals(1219772220, response.sku().capacity()); - Assertions.assertEquals(8845842496565245250L, response.maxSizeBytes()); - Assertions.assertEquals("zivfqbqnasdsy", response.collation()); - Assertions.assertEquals("zsieuscplhyvd", response.sourceDatabaseId()); - Assertions.assertEquals("lyzkxitds", response.recoverableDatabaseId()); - Assertions.assertEquals("zsvko", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-15T17:21:56Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, response.createMode()); + Assertions.assertEquals("a", response.location()); + Assertions.assertEquals("hudfjecehok", response.tags().get("cpqtwloesq")); + Assertions.assertEquals("chl", response.sku().tier()); + Assertions.assertEquals("pwctofl", response.sku().name()); + Assertions.assertEquals(2128667253, response.sku().capacity()); + Assertions.assertEquals(8723499745139166146L, response.maxSizeBytes()); + Assertions.assertEquals("txkbr", response.collation()); + Assertions.assertEquals("drwjiy", response.sourceDatabaseId()); + Assertions.assertEquals("hfjsrwqrxetf", response.recoverableDatabaseId()); + Assertions.assertEquals("wvrrmdqn", response.provisioningState()); + Assertions.assertEquals("cnawth", response.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-23T07:16:30Z"), response.restorePointInTime()); + Assertions.assertEquals(CreateMode.RECOVERY, response.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-22T14:21:25Z"), response.creationDate()); Assertions.assertEquals(StorageAccountType.LRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T06:12:37Z"), response.sourceDatabaseDeletionDate()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceMockTests.java index 1574ba635f70..c0532f18a142 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceMockTests.java @@ -24,7 +24,7 @@ public final class SqlPoolsListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"sku\":{\"tier\":\"bdaombwi\",\"name\":\"jdllwktle\",\"capacity\":2136761436},\"properties\":{\"maxSizeBytes\":1207794170823919039,\"collation\":\"uajgcqwulynk\",\"sourceDatabaseId\":\"cfdruwsikxx\",\"recoverableDatabaseId\":\"lhuulriqb\",\"provisioningState\":\"kvjgbzs\",\"status\":\"br\",\"restorePointInTime\":\"2021-06-18T17:18:19Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-09-16T01:07:28Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-08-19T00:40:55Z\"},\"location\":\"suoardnagttp\",\"tags\":{\"xiplkysolsyj\":\"bpgnrholhujbf\",\"tbbzj\":\"rxslwhdmcv\",\"huwzbxpcqzgi\":\"f\",\"rskapbxwieexu\":\"otjecohmxvvl\"},\"id\":\"aderltfokyk\",\"name\":\"yimyccgrvk\",\"type\":\"xzznnui\"}]}"; + = "{\"value\":[{\"sku\":{\"tier\":\"ilaywkdcwm\",\"name\":\"yrilmhxdqaolf\",\"capacity\":2119969330},\"properties\":{\"maxSizeBytes\":8273826460703438414,\"collation\":\"jvlywl\",\"sourceDatabaseId\":\"fwobb\",\"recoverableDatabaseId\":\"hlwyjfnqzocrd\",\"provisioningState\":\"czeuntgx\",\"status\":\"ca\",\"restorePointInTime\":\"2021-02-28T23:34:05Z\",\"createMode\":\"Restore\",\"creationDate\":\"2021-10-09T15:57:20Z\",\"storageAccountType\":\"LRS\"},\"location\":\"uvny\",\"tags\":{\"yri\":\"gix\",\"lqtxnrflkndrn\":\"lgmgbe\",\"hdaqotwfhipxwg\":\"pgfjo\",\"zuu\":\"abvcipowzaf\"},\"id\":\"ljcirvpefycdvei\",\"name\":\"itjn\",\"type\":\"xzajlnsjhwjuyxxb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,23 +34,24 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.sqlPools().listByWorkspace("uiadhbatecaatsdo", "zn", com.azure.core.util.Context.NONE); + = manager.sqlPools().listByWorkspace("laohoqkp", "t", com.azure.core.util.Context.NONE); - Assertions.assertEquals("suoardnagttp", response.iterator().next().location()); - Assertions.assertEquals("bpgnrholhujbf", response.iterator().next().tags().get("xiplkysolsyj")); - Assertions.assertEquals("bdaombwi", response.iterator().next().sku().tier()); - Assertions.assertEquals("jdllwktle", response.iterator().next().sku().name()); - Assertions.assertEquals(2136761436, response.iterator().next().sku().capacity()); - Assertions.assertEquals(1207794170823919039L, response.iterator().next().maxSizeBytes()); - Assertions.assertEquals("uajgcqwulynk", response.iterator().next().collation()); - Assertions.assertEquals("cfdruwsikxx", response.iterator().next().sourceDatabaseId()); - Assertions.assertEquals("lhuulriqb", response.iterator().next().recoverableDatabaseId()); - Assertions.assertEquals("kvjgbzs", response.iterator().next().provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-18T17:18:19Z"), + Assertions.assertEquals("uvny", response.iterator().next().location()); + Assertions.assertEquals("gix", response.iterator().next().tags().get("yri")); + Assertions.assertEquals("ilaywkdcwm", response.iterator().next().sku().tier()); + Assertions.assertEquals("yrilmhxdqaolf", response.iterator().next().sku().name()); + Assertions.assertEquals(2119969330, response.iterator().next().sku().capacity()); + Assertions.assertEquals(8273826460703438414L, response.iterator().next().maxSizeBytes()); + Assertions.assertEquals("jvlywl", response.iterator().next().collation()); + Assertions.assertEquals("fwobb", response.iterator().next().sourceDatabaseId()); + Assertions.assertEquals("hlwyjfnqzocrd", response.iterator().next().recoverableDatabaseId()); + Assertions.assertEquals("czeuntgx", response.iterator().next().provisioningState()); + Assertions.assertEquals("ca", response.iterator().next().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T23:34:05Z"), response.iterator().next().restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, response.iterator().next().createMode()); - Assertions.assertEquals(StorageAccountType.GRS, response.iterator().next().storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T00:40:55Z"), - response.iterator().next().sourceDatabaseDeletionDate()); + Assertions.assertEquals(CreateMode.RESTORE, response.iterator().next().createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-09T15:57:20Z"), + response.iterator().next().creationDate()); + Assertions.assertEquals(StorageAccountType.LRS, response.iterator().next().storageAccountType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseMockTests.java index 21e294197fc6..59404b2025f2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseMockTests.java @@ -10,20 +10,15 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; public final class SqlPoolsPauseMockTests { @Test public void testPause() throws Exception { - String responseStr - = "{\"sku\":{\"tier\":\"otjgxieqfkyfhi\",\"name\":\"jaqupbyynvskpaj\",\"capacity\":1759748665},\"properties\":{\"maxSizeBytes\":2039790406204571348,\"collation\":\"mj\",\"sourceDatabaseId\":\"cbccwkqmt\",\"recoverableDatabaseId\":\"p\",\"provisioningState\":\"Succeeded\",\"status\":\"lgftrqrejdaa\",\"restorePointInTime\":\"2021-09-25T09:55:52Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-08-03T10:17:37Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-07-07T07:02:15Z\"},\"location\":\"xlm\",\"tags\":{\"oshjgcze\":\"muadjnfsncski\",\"j\":\"ybnxgztlcgc\"},\"id\":\"hfjv\",\"name\":\"ywjzebecuvlbefvw\",\"type\":\"ljkxpylrwoxz\"}"; + String responseStr = "\"datacdrnxsl\""; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,22 +27,8 @@ public void testPause() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - SqlPool response - = manager.sqlPools().pause("ersejeg", "rkjguwrjmwvvbt", "qkxximwgxql", com.azure.core.util.Context.NONE); + Object response + = manager.sqlPools().pause("qvmvuaytuadxkxe", "bwpntghy", "sa", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xlm", response.location()); - Assertions.assertEquals("muadjnfsncski", response.tags().get("oshjgcze")); - Assertions.assertEquals("otjgxieqfkyfhi", response.sku().tier()); - Assertions.assertEquals("jaqupbyynvskpaj", response.sku().name()); - Assertions.assertEquals(1759748665, response.sku().capacity()); - Assertions.assertEquals(2039790406204571348L, response.maxSizeBytes()); - Assertions.assertEquals("mj", response.collation()); - Assertions.assertEquals("cbccwkqmt", response.sourceDatabaseId()); - Assertions.assertEquals("p", response.recoverableDatabaseId()); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-25T09:55:52Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, response.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-07T07:02:15Z"), response.sourceDatabaseDeletionDate()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeMockTests.java index a3ed149177cd..a259f57cb5e3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeMockTests.java @@ -10,20 +10,15 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; public final class SqlPoolsResumeMockTests { @Test public void testResume() throws Exception { - String responseStr - = "{\"sku\":{\"tier\":\"kc\",\"name\":\"eygzqpjo\",\"capacity\":684800308},\"properties\":{\"maxSizeBytes\":7169815585717806941,\"collation\":\"djnxument\",\"sourceDatabaseId\":\"ntwhymxymulwiv\",\"recoverableDatabaseId\":\"o\",\"provisioningState\":\"Succeeded\",\"status\":\"ycoybajasqubf\",\"restorePointInTime\":\"2021-10-01T15:57:43Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-01-27T18:49:57Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-07-23T19:47:46Z\"},\"location\":\"hqohtfxcpup\",\"tags\":{\"osaonhqnamppu\":\"ymjzpwdlvwtiws\"},\"id\":\"tassaekewna\",\"name\":\"eajbkajlcyizyddc\",\"type\":\"xo\"}"; + String responseStr = "\"datawzdanojisgglmvo\""; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,22 +27,7 @@ public void testResume() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - SqlPool response - = manager.sqlPools().resume("wpsyxjij", "ypdvrbkerdkdkga", "qwjxi", com.azure.core.util.Context.NONE); + Object response = manager.sqlPools().resume("vlzladl", "x", "pbqhvfdqqjwkr", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hqohtfxcpup", response.location()); - Assertions.assertEquals("ymjzpwdlvwtiws", response.tags().get("osaonhqnamppu")); - Assertions.assertEquals("kc", response.sku().tier()); - Assertions.assertEquals("eygzqpjo", response.sku().name()); - Assertions.assertEquals(684800308, response.sku().capacity()); - Assertions.assertEquals(7169815585717806941L, response.maxSizeBytes()); - Assertions.assertEquals("djnxument", response.collation()); - Assertions.assertEquals("ntwhymxymulwiv", response.sourceDatabaseId()); - Assertions.assertEquals("o", response.recoverableDatabaseId()); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-01T15:57:43Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, response.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-23T19:47:46Z"), response.sourceDatabaseDeletionDate()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentReferenceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentReferenceTests.java index 30d4a15b033e..afd006c0c1ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentReferenceTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentReferenceTests.java @@ -12,24 +12,24 @@ public final class SsisEnvironmentReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisEnvironmentReference model = BinaryData.fromString( - "{\"id\":1753008731900141970,\"environmentFolderName\":\"vellvulnxdmnitm\",\"environmentName\":\"dtvm\",\"referenceType\":\"yymffhmjp\"}") + "{\"id\":6742029069493076450,\"environmentFolderName\":\"zhupeuknijduyye\",\"environmentName\":\"ydjfb\",\"referenceType\":\"yv\"}") .toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(1753008731900141970L, model.id()); - Assertions.assertEquals("vellvulnxdmnitm", model.environmentFolderName()); - Assertions.assertEquals("dtvm", model.environmentName()); - Assertions.assertEquals("yymffhmjp", model.referenceType()); + Assertions.assertEquals(6742029069493076450L, model.id()); + Assertions.assertEquals("zhupeuknijduyye", model.environmentFolderName()); + Assertions.assertEquals("ydjfb", model.environmentName()); + Assertions.assertEquals("yv", model.referenceType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SsisEnvironmentReference model = new SsisEnvironmentReference().withId(1753008731900141970L) - .withEnvironmentFolderName("vellvulnxdmnitm") - .withEnvironmentName("dtvm") - .withReferenceType("yymffhmjp"); + SsisEnvironmentReference model = new SsisEnvironmentReference().withId(6742029069493076450L) + .withEnvironmentFolderName("zhupeuknijduyye") + .withEnvironmentName("ydjfb") + .withReferenceType("yv"); model = BinaryData.fromObject(model).toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(1753008731900141970L, model.id()); - Assertions.assertEquals("vellvulnxdmnitm", model.environmentFolderName()); - Assertions.assertEquals("dtvm", model.environmentName()); - Assertions.assertEquals("yymffhmjp", model.referenceType()); + Assertions.assertEquals(6742029069493076450L, model.id()); + Assertions.assertEquals("zhupeuknijduyye", model.environmentFolderName()); + Assertions.assertEquals("ydjfb", model.environmentName()); + Assertions.assertEquals("yv", model.referenceType()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentTests.java index f2f49b187220..a383a3640281 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentTests.java @@ -14,60 +14,67 @@ public final class SsisEnvironmentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisEnvironment model = BinaryData.fromString( - "{\"type\":\"Environment\",\"folderId\":5765243190059885212,\"variables\":[{\"id\":5075537748712888882,\"name\":\"pvbkaehxsmzyg\",\"description\":\"wakwseivmakxhys\",\"dataType\":\"ljuxl\",\"sensitive\":false,\"value\":\"tvtfjms\",\"sensitiveValue\":\"chmaiubavlzwpvgm\"},{\"id\":129021540036272066,\"name\":\"azmgokedgjqafk\",\"description\":\"rokzrthqetwpq\",\"dataType\":\"vaozn\",\"sensitive\":false,\"value\":\"iezeagm\",\"sensitiveValue\":\"it\"},{\"id\":4049580837618581148,\"name\":\"hfpjstlzmbls\",\"description\":\"deolctaebfs\",\"dataType\":\"ledjcustbvtqigd\",\"sensitive\":false,\"value\":\"geafgfosehxlzsxe\",\"sensitiveValue\":\"p\"}],\"id\":1486338255394506808,\"name\":\"es\",\"description\":\"fjlpze\"}") + "{\"type\":\"Environment\",\"folderId\":7640942206625706999,\"variables\":[{\"id\":8945709107897326494,\"name\":\"zozk\",\"description\":\"wnf\",\"dataType\":\"hhhqosm\",\"sensitive\":true,\"value\":\"utycyarnroohguab\",\"sensitiveValue\":\"ghktdpy\"},{\"id\":1480571121331214079,\"name\":\"eocnhzqrottj\",\"description\":\"fyjzptwr\",\"dataType\":\"h\",\"sensitive\":true,\"value\":\"nfszpyglqdhmrjz\",\"sensitiveValue\":\"l\"},{\"id\":4160849224608918918,\"name\":\"yypsjoqc\",\"description\":\"nkyhf\",\"dataType\":\"vsqxfxjelgcmpzqj\",\"sensitive\":false,\"value\":\"xuwyvc\",\"sensitiveValue\":\"oyvivbsiz\"},{\"id\":4716726373168082286,\"name\":\"lbscmnlz\",\"description\":\"iufehgmvf\",\"dataType\":\"wyvq\",\"sensitive\":false,\"value\":\"rlniyl\",\"sensitiveValue\":\"yfw\"}],\"id\":9207125625982168561,\"name\":\"qztw\",\"description\":\"hmupgxyjtcdxabbu\"}") .toObject(SsisEnvironment.class); - Assertions.assertEquals(1486338255394506808L, model.id()); - Assertions.assertEquals("es", model.name()); - Assertions.assertEquals("fjlpze", model.description()); - Assertions.assertEquals(5765243190059885212L, model.folderId()); - Assertions.assertEquals(5075537748712888882L, model.variables().get(0).id()); - Assertions.assertEquals("pvbkaehxsmzyg", model.variables().get(0).name()); - Assertions.assertEquals("wakwseivmakxhys", model.variables().get(0).description()); - Assertions.assertEquals("ljuxl", model.variables().get(0).dataType()); - Assertions.assertEquals(false, model.variables().get(0).sensitive()); - Assertions.assertEquals("tvtfjms", model.variables().get(0).value()); - Assertions.assertEquals("chmaiubavlzwpvgm", model.variables().get(0).sensitiveValue()); + Assertions.assertEquals(9207125625982168561L, model.id()); + Assertions.assertEquals("qztw", model.name()); + Assertions.assertEquals("hmupgxyjtcdxabbu", model.description()); + Assertions.assertEquals(7640942206625706999L, model.folderId()); + Assertions.assertEquals(8945709107897326494L, model.variables().get(0).id()); + Assertions.assertEquals("zozk", model.variables().get(0).name()); + Assertions.assertEquals("wnf", model.variables().get(0).description()); + Assertions.assertEquals("hhhqosm", model.variables().get(0).dataType()); + Assertions.assertEquals(true, model.variables().get(0).sensitive()); + Assertions.assertEquals("utycyarnroohguab", model.variables().get(0).value()); + Assertions.assertEquals("ghktdpy", model.variables().get(0).sensitiveValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SsisEnvironment model = new SsisEnvironment().withId(1486338255394506808L) - .withName("es") - .withDescription("fjlpze") - .withFolderId(5765243190059885212L) + SsisEnvironment model = new SsisEnvironment().withId(9207125625982168561L) + .withName("qztw") + .withDescription("hmupgxyjtcdxabbu") + .withFolderId(7640942206625706999L) .withVariables(Arrays.asList( - new SsisVariable().withId(5075537748712888882L) - .withName("pvbkaehxsmzyg") - .withDescription("wakwseivmakxhys") - .withDataType("ljuxl") + new SsisVariable().withId(8945709107897326494L) + .withName("zozk") + .withDescription("wnf") + .withDataType("hhhqosm") + .withSensitive(true) + .withValue("utycyarnroohguab") + .withSensitiveValue("ghktdpy"), + new SsisVariable().withId(1480571121331214079L) + .withName("eocnhzqrottj") + .withDescription("fyjzptwr") + .withDataType("h") + .withSensitive(true) + .withValue("nfszpyglqdhmrjz") + .withSensitiveValue("l"), + new SsisVariable().withId(4160849224608918918L) + .withName("yypsjoqc") + .withDescription("nkyhf") + .withDataType("vsqxfxjelgcmpzqj") .withSensitive(false) - .withValue("tvtfjms") - .withSensitiveValue("chmaiubavlzwpvgm"), - new SsisVariable().withId(129021540036272066L) - .withName("azmgokedgjqafk") - .withDescription("rokzrthqetwpq") - .withDataType("vaozn") + .withValue("xuwyvc") + .withSensitiveValue("oyvivbsiz"), + new SsisVariable().withId(4716726373168082286L) + .withName("lbscmnlz") + .withDescription("iufehgmvf") + .withDataType("wyvq") .withSensitive(false) - .withValue("iezeagm") - .withSensitiveValue("it"), - new SsisVariable().withId(4049580837618581148L) - .withName("hfpjstlzmbls") - .withDescription("deolctaebfs") - .withDataType("ledjcustbvtqigd") - .withSensitive(false) - .withValue("geafgfosehxlzsxe") - .withSensitiveValue("p"))); + .withValue("rlniyl") + .withSensitiveValue("yfw"))); model = BinaryData.fromObject(model).toObject(SsisEnvironment.class); - Assertions.assertEquals(1486338255394506808L, model.id()); - Assertions.assertEquals("es", model.name()); - Assertions.assertEquals("fjlpze", model.description()); - Assertions.assertEquals(5765243190059885212L, model.folderId()); - Assertions.assertEquals(5075537748712888882L, model.variables().get(0).id()); - Assertions.assertEquals("pvbkaehxsmzyg", model.variables().get(0).name()); - Assertions.assertEquals("wakwseivmakxhys", model.variables().get(0).description()); - Assertions.assertEquals("ljuxl", model.variables().get(0).dataType()); - Assertions.assertEquals(false, model.variables().get(0).sensitive()); - Assertions.assertEquals("tvtfjms", model.variables().get(0).value()); - Assertions.assertEquals("chmaiubavlzwpvgm", model.variables().get(0).sensitiveValue()); + Assertions.assertEquals(9207125625982168561L, model.id()); + Assertions.assertEquals("qztw", model.name()); + Assertions.assertEquals("hmupgxyjtcdxabbu", model.description()); + Assertions.assertEquals(7640942206625706999L, model.folderId()); + Assertions.assertEquals(8945709107897326494L, model.variables().get(0).id()); + Assertions.assertEquals("zozk", model.variables().get(0).name()); + Assertions.assertEquals("wnf", model.variables().get(0).description()); + Assertions.assertEquals("hhhqosm", model.variables().get(0).dataType()); + Assertions.assertEquals(true, model.variables().get(0).sensitive()); + Assertions.assertEquals("utycyarnroohguab", model.variables().get(0).value()); + Assertions.assertEquals("ghktdpy", model.variables().get(0).sensitiveValue()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisFolderTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisFolderTests.java index 7330cdd48b93..b3bc0d278298 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisFolderTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisFolderTests.java @@ -13,19 +13,19 @@ public final class SsisFolderTests { public void testDeserialize() throws Exception { SsisFolder model = BinaryData .fromString( - "{\"type\":\"Folder\",\"id\":6460287447467668445,\"name\":\"djizcbf\",\"description\":\"crunfhi\"}") + "{\"type\":\"Folder\",\"id\":3275417738670174369,\"name\":\"qpbrlc\",\"description\":\"duczkgof\"}") .toObject(SsisFolder.class); - Assertions.assertEquals(6460287447467668445L, model.id()); - Assertions.assertEquals("djizcbf", model.name()); - Assertions.assertEquals("crunfhi", model.description()); + Assertions.assertEquals(3275417738670174369L, model.id()); + Assertions.assertEquals("qpbrlc", model.name()); + Assertions.assertEquals("duczkgof", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SsisFolder model = new SsisFolder().withId(6460287447467668445L).withName("djizcbf").withDescription("crunfhi"); + SsisFolder model = new SsisFolder().withId(3275417738670174369L).withName("qpbrlc").withDescription("duczkgof"); model = BinaryData.fromObject(model).toObject(SsisFolder.class); - Assertions.assertEquals(6460287447467668445L, model.id()); - Assertions.assertEquals("djizcbf", model.name()); - Assertions.assertEquals("crunfhi", model.description()); + Assertions.assertEquals(3275417738670174369L, model.id()); + Assertions.assertEquals("qpbrlc", model.name()); + Assertions.assertEquals("duczkgof", model.description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataListResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataListResponseInnerTests.java index cad89362b071..c63c4e32793f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataListResponseInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataListResponseInnerTests.java @@ -14,26 +14,24 @@ public final class SsisObjectMetadataListResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisObjectMetadataListResponseInner model = BinaryData.fromString( - "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":4789820977941465731,\"name\":\"tn\",\"description\":\"bf\"},{\"type\":\"SsisObjectMetadata\",\"id\":7299515932151450621,\"name\":\"g\",\"description\":\"nlgmtrwahzjmu\"},{\"type\":\"SsisObjectMetadata\",\"id\":1604192815314271002,\"name\":\"r\",\"description\":\"rohkpigqfusu\"}],\"nextLink\":\"zmkw\"}") + "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":5158769929678256713,\"name\":\"iwwzjuqk\",\"description\":\"sa\"}],\"nextLink\":\"wkuofoskghsauu\"}") .toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(4789820977941465731L, model.value().get(0).id()); - Assertions.assertEquals("tn", model.value().get(0).name()); - Assertions.assertEquals("bf", model.value().get(0).description()); - Assertions.assertEquals("zmkw", model.nextLink()); + Assertions.assertEquals(5158769929678256713L, model.value().get(0).id()); + Assertions.assertEquals("iwwzjuqk", model.value().get(0).name()); + Assertions.assertEquals("sa", model.value().get(0).description()); + Assertions.assertEquals("wkuofoskghsauu", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SsisObjectMetadataListResponseInner model = new SsisObjectMetadataListResponseInner() .withValue(Arrays.asList( - new SsisObjectMetadata().withId(4789820977941465731L).withName("tn").withDescription("bf"), - new SsisObjectMetadata().withId(7299515932151450621L).withName("g").withDescription("nlgmtrwahzjmu"), - new SsisObjectMetadata().withId(1604192815314271002L).withName("r").withDescription("rohkpigqfusu"))) - .withNextLink("zmkw"); + new SsisObjectMetadata().withId(5158769929678256713L).withName("iwwzjuqk").withDescription("sa"))) + .withNextLink("wkuofoskghsauu"); model = BinaryData.fromObject(model).toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(4789820977941465731L, model.value().get(0).id()); - Assertions.assertEquals("tn", model.value().get(0).name()); - Assertions.assertEquals("bf", model.value().get(0).description()); - Assertions.assertEquals("zmkw", model.nextLink()); + Assertions.assertEquals(5158769929678256713L, model.value().get(0).id()); + Assertions.assertEquals("iwwzjuqk", model.value().get(0).name()); + Assertions.assertEquals("sa", model.value().get(0).description()); + Assertions.assertEquals("wkuofoskghsauu", model.nextLink()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataStatusResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataStatusResponseInnerTests.java index a1e93a9a9011..12cb71e96a4e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataStatusResponseInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataStatusResponseInnerTests.java @@ -12,26 +12,25 @@ public final class SsisObjectMetadataStatusResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisObjectMetadataStatusResponseInner model = BinaryData - .fromString( - "{\"status\":\"nfpubntnbatz\",\"name\":\"qs\",\"properties\":\"saaelca\",\"error\":\"cjuhplrvkm\"}") + .fromString("{\"status\":\"fhvpesaps\",\"name\":\"dqmh\",\"properties\":\"dhtldwkyz\",\"error\":\"utknc\"}") .toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("nfpubntnbatz", model.status()); - Assertions.assertEquals("qs", model.name()); - Assertions.assertEquals("saaelca", model.properties()); - Assertions.assertEquals("cjuhplrvkm", model.error()); + Assertions.assertEquals("fhvpesaps", model.status()); + Assertions.assertEquals("dqmh", model.name()); + Assertions.assertEquals("dhtldwkyz", model.properties()); + Assertions.assertEquals("utknc", model.error()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SsisObjectMetadataStatusResponseInner model - = new SsisObjectMetadataStatusResponseInner().withStatus("nfpubntnbatz") - .withName("qs") - .withProperties("saaelca") - .withError("cjuhplrvkm"); + = new SsisObjectMetadataStatusResponseInner().withStatus("fhvpesaps") + .withName("dqmh") + .withProperties("dhtldwkyz") + .withError("utknc"); model = BinaryData.fromObject(model).toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("nfpubntnbatz", model.status()); - Assertions.assertEquals("qs", model.name()); - Assertions.assertEquals("saaelca", model.properties()); - Assertions.assertEquals("cjuhplrvkm", model.error()); + Assertions.assertEquals("fhvpesaps", model.status()); + Assertions.assertEquals("dqmh", model.name()); + Assertions.assertEquals("dhtldwkyz", model.properties()); + Assertions.assertEquals("utknc", model.error()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataTests.java index ad796e39e4e0..3e7d062e9d9f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataTests.java @@ -12,21 +12,20 @@ public final class SsisObjectMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisObjectMetadata model = BinaryData.fromString( - "{\"type\":\"SsisObjectMetadata\",\"id\":3254840130763842184,\"name\":\"xaxmq\",\"description\":\"alhhjnhgwydyynfs\"}") + "{\"type\":\"SsisObjectMetadata\",\"id\":6549860277400431394,\"name\":\"xieduugidyjrr\",\"description\":\"y\"}") .toObject(SsisObjectMetadata.class); - Assertions.assertEquals(3254840130763842184L, model.id()); - Assertions.assertEquals("xaxmq", model.name()); - Assertions.assertEquals("alhhjnhgwydyynfs", model.description()); + Assertions.assertEquals(6549860277400431394L, model.id()); + Assertions.assertEquals("xieduugidyjrr", model.name()); + Assertions.assertEquals("y", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SsisObjectMetadata model = new SsisObjectMetadata().withId(3254840130763842184L) - .withName("xaxmq") - .withDescription("alhhjnhgwydyynfs"); + SsisObjectMetadata model + = new SsisObjectMetadata().withId(6549860277400431394L).withName("xieduugidyjrr").withDescription("y"); model = BinaryData.fromObject(model).toObject(SsisObjectMetadata.class); - Assertions.assertEquals(3254840130763842184L, model.id()); - Assertions.assertEquals("xaxmq", model.name()); - Assertions.assertEquals("alhhjnhgwydyynfs", model.description()); + Assertions.assertEquals(6549860277400431394L, model.id()); + Assertions.assertEquals("xieduugidyjrr", model.name()); + Assertions.assertEquals("y", model.description()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisPackageTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisPackageTests.java index b629c71b5fe6..7737f50b4fac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisPackageTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisPackageTests.java @@ -14,79 +14,91 @@ public final class SsisPackageTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisPackage model = BinaryData.fromString( - "{\"type\":\"Package\",\"folderId\":3757612595954231819,\"projectVersion\":6441424923409023610,\"projectId\":2362497736544874450,\"parameters\":[{\"id\":727503827438884548,\"name\":\"jw\",\"description\":\"wyjfnqzocrdzgcze\",\"dataType\":\"tgxdncaqt\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"fuvnyttzgixgyri\",\"defaultValue\":\"gm\",\"sensitiveDefaultValue\":\"ehlq\",\"valueType\":\"nrflkndrndpg\",\"valueSet\":false,\"variable\":\"hdaqotwfhipxwg\"},{\"id\":4982003429888600074,\"name\":\"ipowza\",\"description\":\"zuu\",\"dataType\":\"jcirvpefycdvei\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"xzajlnsjhwjuyxxb\",\"defaultValue\":\"vmv\",\"sensitiveDefaultValue\":\"ytuadxkxeqbwp\",\"valueType\":\"ghyksarcdrnxs\",\"valueSet\":false,\"variable\":\"zladltxkpbq\"}],\"id\":3216403021820124598,\"name\":\"qjwkrhwz\",\"description\":\"nojisgglmvok\"}") + "{\"type\":\"Package\",\"folderId\":584876326460558844,\"projectVersion\":6826834716367989324,\"projectId\":8490261921990561365,\"parameters\":[{\"id\":8329988246873401375,\"name\":\"uahxs\",\"description\":\"jcmmzrrscub\",\"dataType\":\"sd\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"odiffjxcjrmmua\",\"defaultValue\":\"ibvjogjonmcy\",\"sensitiveDefaultValue\":\"oyzbamwineofvf\",\"valueType\":\"kpoldtvevboc\",\"valueSet\":false,\"variable\":\"jknyu\"},{\"id\":1613523004175535231,\"name\":\"xpn\",\"description\":\"pzaamrdixtreki\",\"dataType\":\"wyskbruffgll\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"lxhrp\",\"defaultValue\":\"vmblcouqe\",\"sensitiveDefaultValue\":\"hbcdsziry\",\"valueType\":\"ndo\",\"valueSet\":false,\"variable\":\"ltoormkfqlwxldyk\"},{\"id\":2290741949919595433,\"name\":\"aolnjpnnbmjk\",\"description\":\"bjgsjjxxahmrn\",\"dataType\":\"zyqegxyiv\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"wbjijkgq\",\"defaultValue\":\"h\",\"sensitiveDefaultValue\":\"keznjaujvaa\",\"valueType\":\"ggiycwkdtaawxwf\",\"valueSet\":true,\"variable\":\"mrrqmbzmqkratb\"}],\"id\":3100972651307211313,\"name\":\"sidbirkf\",\"description\":\"sokdgoge\"}") .toObject(SsisPackage.class); - Assertions.assertEquals(3216403021820124598L, model.id()); - Assertions.assertEquals("qjwkrhwz", model.name()); - Assertions.assertEquals("nojisgglmvok", model.description()); - Assertions.assertEquals(3757612595954231819L, model.folderId()); - Assertions.assertEquals(6441424923409023610L, model.projectVersion()); - Assertions.assertEquals(2362497736544874450L, model.projectId()); - Assertions.assertEquals(727503827438884548L, model.parameters().get(0).id()); - Assertions.assertEquals("jw", model.parameters().get(0).name()); - Assertions.assertEquals("wyjfnqzocrdzgcze", model.parameters().get(0).description()); - Assertions.assertEquals("tgxdncaqt", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); + Assertions.assertEquals(3100972651307211313L, model.id()); + Assertions.assertEquals("sidbirkf", model.name()); + Assertions.assertEquals("sokdgoge", model.description()); + Assertions.assertEquals(584876326460558844L, model.folderId()); + Assertions.assertEquals(6826834716367989324L, model.projectVersion()); + Assertions.assertEquals(8490261921990561365L, model.projectId()); + Assertions.assertEquals(8329988246873401375L, model.parameters().get(0).id()); + Assertions.assertEquals("uahxs", model.parameters().get(0).name()); + Assertions.assertEquals("jcmmzrrscub", model.parameters().get(0).description()); + Assertions.assertEquals("sd", model.parameters().get(0).dataType()); + Assertions.assertEquals(false, model.parameters().get(0).required()); Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("fuvnyttzgixgyri", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("gm", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("ehlq", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("nrflkndrndpg", model.parameters().get(0).valueType()); + Assertions.assertEquals("odiffjxcjrmmua", model.parameters().get(0).designDefaultValue()); + Assertions.assertEquals("ibvjogjonmcy", model.parameters().get(0).defaultValue()); + Assertions.assertEquals("oyzbamwineofvf", model.parameters().get(0).sensitiveDefaultValue()); + Assertions.assertEquals("kpoldtvevboc", model.parameters().get(0).valueType()); Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("hdaqotwfhipxwg", model.parameters().get(0).variable()); + Assertions.assertEquals("jknyu", model.parameters().get(0).variable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SsisPackage model = new SsisPackage().withId(3216403021820124598L) - .withName("qjwkrhwz") - .withDescription("nojisgglmvok") - .withFolderId(3757612595954231819L) - .withProjectVersion(6441424923409023610L) - .withProjectId(2362497736544874450L) + SsisPackage model = new SsisPackage().withId(3100972651307211313L) + .withName("sidbirkf") + .withDescription("sokdgoge") + .withFolderId(584876326460558844L) + .withProjectVersion(6826834716367989324L) + .withProjectId(8490261921990561365L) .withParameters(Arrays.asList( - new SsisParameter().withId(727503827438884548L) - .withName("jw") - .withDescription("wyjfnqzocrdzgcze") - .withDataType("tgxdncaqt") + new SsisParameter().withId(8329988246873401375L) + .withName("uahxs") + .withDescription("jcmmzrrscub") + .withDataType("sd") + .withRequired(false) + .withSensitive(true) + .withDesignDefaultValue("odiffjxcjrmmua") + .withDefaultValue("ibvjogjonmcy") + .withSensitiveDefaultValue("oyzbamwineofvf") + .withValueType("kpoldtvevboc") + .withValueSet(false) + .withVariable("jknyu"), + new SsisParameter().withId(1613523004175535231L) + .withName("xpn") + .withDescription("pzaamrdixtreki") + .withDataType("wyskbruffgll") .withRequired(true) .withSensitive(true) - .withDesignDefaultValue("fuvnyttzgixgyri") - .withDefaultValue("gm") - .withSensitiveDefaultValue("ehlq") - .withValueType("nrflkndrndpg") + .withDesignDefaultValue("lxhrp") + .withDefaultValue("vmblcouqe") + .withSensitiveDefaultValue("hbcdsziry") + .withValueType("ndo") .withValueSet(false) - .withVariable("hdaqotwfhipxwg"), - new SsisParameter().withId(4982003429888600074L) - .withName("ipowza") - .withDescription("zuu") - .withDataType("jcirvpefycdvei") + .withVariable("ltoormkfqlwxldyk"), + new SsisParameter().withId(2290741949919595433L) + .withName("aolnjpnnbmjk") + .withDescription("bjgsjjxxahmrn") + .withDataType("zyqegxyiv") .withRequired(false) .withSensitive(true) - .withDesignDefaultValue("xzajlnsjhwjuyxxb") - .withDefaultValue("vmv") - .withSensitiveDefaultValue("ytuadxkxeqbwp") - .withValueType("ghyksarcdrnxs") - .withValueSet(false) - .withVariable("zladltxkpbq"))); + .withDesignDefaultValue("wbjijkgq") + .withDefaultValue("h") + .withSensitiveDefaultValue("keznjaujvaa") + .withValueType("ggiycwkdtaawxwf") + .withValueSet(true) + .withVariable("mrrqmbzmqkratb"))); model = BinaryData.fromObject(model).toObject(SsisPackage.class); - Assertions.assertEquals(3216403021820124598L, model.id()); - Assertions.assertEquals("qjwkrhwz", model.name()); - Assertions.assertEquals("nojisgglmvok", model.description()); - Assertions.assertEquals(3757612595954231819L, model.folderId()); - Assertions.assertEquals(6441424923409023610L, model.projectVersion()); - Assertions.assertEquals(2362497736544874450L, model.projectId()); - Assertions.assertEquals(727503827438884548L, model.parameters().get(0).id()); - Assertions.assertEquals("jw", model.parameters().get(0).name()); - Assertions.assertEquals("wyjfnqzocrdzgcze", model.parameters().get(0).description()); - Assertions.assertEquals("tgxdncaqt", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); + Assertions.assertEquals(3100972651307211313L, model.id()); + Assertions.assertEquals("sidbirkf", model.name()); + Assertions.assertEquals("sokdgoge", model.description()); + Assertions.assertEquals(584876326460558844L, model.folderId()); + Assertions.assertEquals(6826834716367989324L, model.projectVersion()); + Assertions.assertEquals(8490261921990561365L, model.projectId()); + Assertions.assertEquals(8329988246873401375L, model.parameters().get(0).id()); + Assertions.assertEquals("uahxs", model.parameters().get(0).name()); + Assertions.assertEquals("jcmmzrrscub", model.parameters().get(0).description()); + Assertions.assertEquals("sd", model.parameters().get(0).dataType()); + Assertions.assertEquals(false, model.parameters().get(0).required()); Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("fuvnyttzgixgyri", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("gm", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("ehlq", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("nrflkndrndpg", model.parameters().get(0).valueType()); + Assertions.assertEquals("odiffjxcjrmmua", model.parameters().get(0).designDefaultValue()); + Assertions.assertEquals("ibvjogjonmcy", model.parameters().get(0).defaultValue()); + Assertions.assertEquals("oyzbamwineofvf", model.parameters().get(0).sensitiveDefaultValue()); + Assertions.assertEquals("kpoldtvevboc", model.parameters().get(0).valueType()); Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("hdaqotwfhipxwg", model.parameters().get(0).variable()); + Assertions.assertEquals("jknyu", model.parameters().get(0).variable()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisParameterTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisParameterTests.java index 990ec53e04a3..e9ed83484d37 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisParameterTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisParameterTests.java @@ -12,48 +12,48 @@ public final class SsisParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisParameter model = BinaryData.fromString( - "{\"id\":651265008484411670,\"name\":\"fzuvrzmz\",\"description\":\"zjqr\",\"dataType\":\"pv\",\"required\":false,\"sensitive\":false,\"designDefaultValue\":\"ebojtjppglao\",\"defaultValue\":\"qk\",\"sensitiveDefaultValue\":\"t\",\"valueType\":\"jilaywkdcwmqsyri\",\"valueSet\":false,\"variable\":\"dqaolfylnkk\"}") + "{\"id\":2704241280285106932,\"name\":\"tywikd\",\"description\":\"lakuflgbhgauacd\",\"dataType\":\"mxu\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"qg\",\"defaultValue\":\"fnozoeoqbvjh\",\"sensitiveDefaultValue\":\"f\",\"valueType\":\"bmq\",\"valueSet\":true,\"variable\":\"tasfaymxbulpzeal\"}") .toObject(SsisParameter.class); - Assertions.assertEquals(651265008484411670L, model.id()); - Assertions.assertEquals("fzuvrzmz", model.name()); - Assertions.assertEquals("zjqr", model.description()); - Assertions.assertEquals("pv", model.dataType()); - Assertions.assertEquals(false, model.required()); + Assertions.assertEquals(2704241280285106932L, model.id()); + Assertions.assertEquals("tywikd", model.name()); + Assertions.assertEquals("lakuflgbhgauacd", model.description()); + Assertions.assertEquals("mxu", model.dataType()); + Assertions.assertEquals(true, model.required()); Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("ebojtjppglao", model.designDefaultValue()); - Assertions.assertEquals("qk", model.defaultValue()); - Assertions.assertEquals("t", model.sensitiveDefaultValue()); - Assertions.assertEquals("jilaywkdcwmqsyri", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("dqaolfylnkk", model.variable()); + Assertions.assertEquals("qg", model.designDefaultValue()); + Assertions.assertEquals("fnozoeoqbvjh", model.defaultValue()); + Assertions.assertEquals("f", model.sensitiveDefaultValue()); + Assertions.assertEquals("bmq", model.valueType()); + Assertions.assertEquals(true, model.valueSet()); + Assertions.assertEquals("tasfaymxbulpzeal", model.variable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SsisParameter model = new SsisParameter().withId(651265008484411670L) - .withName("fzuvrzmz") - .withDescription("zjqr") - .withDataType("pv") - .withRequired(false) + SsisParameter model = new SsisParameter().withId(2704241280285106932L) + .withName("tywikd") + .withDescription("lakuflgbhgauacd") + .withDataType("mxu") + .withRequired(true) .withSensitive(false) - .withDesignDefaultValue("ebojtjppglao") - .withDefaultValue("qk") - .withSensitiveDefaultValue("t") - .withValueType("jilaywkdcwmqsyri") - .withValueSet(false) - .withVariable("dqaolfylnkk"); + .withDesignDefaultValue("qg") + .withDefaultValue("fnozoeoqbvjh") + .withSensitiveDefaultValue("f") + .withValueType("bmq") + .withValueSet(true) + .withVariable("tasfaymxbulpzeal"); model = BinaryData.fromObject(model).toObject(SsisParameter.class); - Assertions.assertEquals(651265008484411670L, model.id()); - Assertions.assertEquals("fzuvrzmz", model.name()); - Assertions.assertEquals("zjqr", model.description()); - Assertions.assertEquals("pv", model.dataType()); - Assertions.assertEquals(false, model.required()); + Assertions.assertEquals(2704241280285106932L, model.id()); + Assertions.assertEquals("tywikd", model.name()); + Assertions.assertEquals("lakuflgbhgauacd", model.description()); + Assertions.assertEquals("mxu", model.dataType()); + Assertions.assertEquals(true, model.required()); Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("ebojtjppglao", model.designDefaultValue()); - Assertions.assertEquals("qk", model.defaultValue()); - Assertions.assertEquals("t", model.sensitiveDefaultValue()); - Assertions.assertEquals("jilaywkdcwmqsyri", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("dqaolfylnkk", model.variable()); + Assertions.assertEquals("qg", model.designDefaultValue()); + Assertions.assertEquals("fnozoeoqbvjh", model.defaultValue()); + Assertions.assertEquals("f", model.sensitiveDefaultValue()); + Assertions.assertEquals("bmq", model.valueType()); + Assertions.assertEquals(true, model.valueSet()); + Assertions.assertEquals("tasfaymxbulpzeal", model.variable()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisProjectTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisProjectTests.java index d01e34af540a..f770f8acf387 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisProjectTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisProjectTests.java @@ -15,121 +15,113 @@ public final class SsisProjectTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisProject model = BinaryData.fromString( - "{\"type\":\"Project\",\"folderId\":5506500934153991782,\"version\":7714612897077216943,\"environmentRefs\":[{\"id\":4459170957000750161,\"environmentFolderName\":\"rumzuedk\",\"environmentName\":\"bfvxovqkxiuxq\",\"referenceType\":\"vqrnhyhlwcjsqgg\"},{\"id\":2090625114501237179,\"environmentFolderName\":\"xrqrkijpeuqlsd\",\"environmentName\":\"qztvx\",\"referenceType\":\"wwmjs\"},{\"id\":1193372060293598999,\"environmentFolderName\":\"wamec\",\"environmentName\":\"qioulndhzyoeojht\",\"referenceType\":\"lhsvidmytzlnglxp\"}],\"parameters\":[{\"id\":5364304877177881109,\"name\":\"fbcswqagyw\",\"description\":\"xigvjrktpgaeuk\",\"dataType\":\"wohpmwhqnucs\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"sjt\",\"defaultValue\":\"pbninjgazlsvbzfc\",\"sensitiveDefaultValue\":\"o\",\"valueType\":\"dwjcciklhs\",\"valueSet\":false,\"variable\":\"drenxol\"},{\"id\":7163548671113747724,\"name\":\"qbeiv\",\"description\":\"hydwbdbfgrlp\",\"dataType\":\"ytjlkesmmpath\",\"required\":false,\"sensitive\":false,\"designDefaultValue\":\"e\",\"defaultValue\":\"iiwllbvgwzsf\",\"sensitiveDefaultValue\":\"edous\",\"valueType\":\"tjtgravaqogfkb\",\"valueSet\":true,\"variable\":\"zlqbtxxwpfhn\"},{\"id\":1439198591936874433,\"name\":\"tpzkgmeboywhcz\",\"description\":\"rhmngqbedy\",\"dataType\":\"s\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"d\",\"defaultValue\":\"jch\",\"sensitiveDefaultValue\":\"mpwctoflds\",\"valueType\":\"cdhz\",\"valueSet\":true,\"variable\":\"rfgdrwj\"},{\"id\":5816710989706810096,\"name\":\"fj\",\"description\":\"wqrxetfgcwv\",\"dataType\":\"mdqntycnaw\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"gnuyeamcmhu\",\"defaultValue\":\"jecehokwc\",\"sensitiveDefaultValue\":\"twloesqr\",\"valueType\":\"vrbnyrukoil\",\"valueSet\":false,\"variable\":\"uwj\"}],\"id\":5566998054274641117,\"name\":\"lh\",\"description\":\"xpzruzythqkk\"}") + "{\"type\":\"Project\",\"folderId\":6835409342308647438,\"version\":1177146418590007172,\"environmentRefs\":[{\"id\":8080220027377198790,\"environmentFolderName\":\"jttbstv\",\"environmentName\":\"aqnrmvvfkoxmlg\",\"referenceType\":\"tuidvrmazlpd\"},{\"id\":8735716523166265297,\"environmentFolderName\":\"mzvlazipbh\",\"environmentName\":\"vqs\",\"referenceType\":\"yy\"},{\"id\":5528301359583556891,\"environmentFolderName\":\"ens\",\"environmentName\":\"meyyvpkpatlb\",\"referenceType\":\"pzgsk\"},{\"id\":4251232617023680058,\"environmentFolderName\":\"v\",\"environmentName\":\"mknbnxwcdommpv\",\"referenceType\":\"awz\"}],\"parameters\":[{\"id\":7285486993195955494,\"name\":\"iac\",\"description\":\"iexhajl\",\"dataType\":\"t\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"t\",\"defaultValue\":\"iygbpvn\",\"sensitiveDefaultValue\":\"wmtxkyctwwgz\",\"valueType\":\"jlmec\",\"valueSet\":false,\"variable\":\"gzyvnee\"},{\"id\":3613374493627536729,\"name\":\"htmoqqtlffhzbkr\",\"description\":\"jjavfq\",\"dataType\":\"hnqoewdo\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"sypvidbztjhqtfb\",\"defaultValue\":\"nynkbwet\",\"sensitiveDefaultValue\":\"uhpsprkzyaupia\",\"valueType\":\"xnafbw\",\"valueSet\":true,\"variable\":\"htuov\"},{\"id\":6160359867810551901,\"name\":\"rjtumghih\",\"description\":\"ecmslclbl\",\"dataType\":\"xltbsjuscvsf\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"gxuupbezqccydrtc\",\"defaultValue\":\"kdqkkyihzt\",\"sensitiveDefaultValue\":\"qm\",\"valueType\":\"zgwldoychillcec\",\"valueSet\":true,\"variable\":\"waoaguhi\"}],\"id\":4879267275298407418,\"name\":\"zstacsjvhrweft\",\"description\":\"qejpmvssehaepwa\"}") .toObject(SsisProject.class); - Assertions.assertEquals(5566998054274641117L, model.id()); - Assertions.assertEquals("lh", model.name()); - Assertions.assertEquals("xpzruzythqkk", model.description()); - Assertions.assertEquals(5506500934153991782L, model.folderId()); - Assertions.assertEquals(7714612897077216943L, model.version()); - Assertions.assertEquals(4459170957000750161L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("rumzuedk", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("bfvxovqkxiuxq", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("vqrnhyhlwcjsqgg", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(5364304877177881109L, model.parameters().get(0).id()); - Assertions.assertEquals("fbcswqagyw", model.parameters().get(0).name()); - Assertions.assertEquals("xigvjrktpgaeuk", model.parameters().get(0).description()); - Assertions.assertEquals("wohpmwhqnucs", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(false, model.parameters().get(0).sensitive()); - Assertions.assertEquals("sjt", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("pbninjgazlsvbzfc", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("o", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("dwjcciklhs", model.parameters().get(0).valueType()); + Assertions.assertEquals(4879267275298407418L, model.id()); + Assertions.assertEquals("zstacsjvhrweft", model.name()); + Assertions.assertEquals("qejpmvssehaepwa", model.description()); + Assertions.assertEquals(6835409342308647438L, model.folderId()); + Assertions.assertEquals(1177146418590007172L, model.version()); + Assertions.assertEquals(8080220027377198790L, model.environmentRefs().get(0).id()); + Assertions.assertEquals("jttbstv", model.environmentRefs().get(0).environmentFolderName()); + Assertions.assertEquals("aqnrmvvfkoxmlg", model.environmentRefs().get(0).environmentName()); + Assertions.assertEquals("tuidvrmazlpd", model.environmentRefs().get(0).referenceType()); + Assertions.assertEquals(7285486993195955494L, model.parameters().get(0).id()); + Assertions.assertEquals("iac", model.parameters().get(0).name()); + Assertions.assertEquals("iexhajl", model.parameters().get(0).description()); + Assertions.assertEquals("t", model.parameters().get(0).dataType()); + Assertions.assertEquals(false, model.parameters().get(0).required()); + Assertions.assertEquals(true, model.parameters().get(0).sensitive()); + Assertions.assertEquals("t", model.parameters().get(0).designDefaultValue()); + Assertions.assertEquals("iygbpvn", model.parameters().get(0).defaultValue()); + Assertions.assertEquals("wmtxkyctwwgz", model.parameters().get(0).sensitiveDefaultValue()); + Assertions.assertEquals("jlmec", model.parameters().get(0).valueType()); Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("drenxol", model.parameters().get(0).variable()); + Assertions.assertEquals("gzyvnee", model.parameters().get(0).variable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SsisProject model = new SsisProject().withId(5566998054274641117L) - .withName("lh") - .withDescription("xpzruzythqkk") - .withFolderId(5506500934153991782L) - .withVersion(7714612897077216943L) + SsisProject model = new SsisProject().withId(4879267275298407418L) + .withName("zstacsjvhrweft") + .withDescription("qejpmvssehaepwa") + .withFolderId(6835409342308647438L) + .withVersion(1177146418590007172L) .withEnvironmentRefs(Arrays.asList( - new SsisEnvironmentReference().withId(4459170957000750161L) - .withEnvironmentFolderName("rumzuedk") - .withEnvironmentName("bfvxovqkxiuxq") - .withReferenceType("vqrnhyhlwcjsqgg"), - new SsisEnvironmentReference().withId(2090625114501237179L) - .withEnvironmentFolderName("xrqrkijpeuqlsd") - .withEnvironmentName("qztvx") - .withReferenceType("wwmjs"), - new SsisEnvironmentReference().withId(1193372060293598999L) - .withEnvironmentFolderName("wamec") - .withEnvironmentName("qioulndhzyoeojht") - .withReferenceType("lhsvidmytzlnglxp"))) + new SsisEnvironmentReference().withId(8080220027377198790L) + .withEnvironmentFolderName("jttbstv") + .withEnvironmentName("aqnrmvvfkoxmlg") + .withReferenceType("tuidvrmazlpd"), + new SsisEnvironmentReference().withId(8735716523166265297L) + .withEnvironmentFolderName("mzvlazipbh") + .withEnvironmentName("vqs") + .withReferenceType("yy"), + new SsisEnvironmentReference().withId(5528301359583556891L) + .withEnvironmentFolderName("ens") + .withEnvironmentName("meyyvpkpatlb") + .withReferenceType("pzgsk"), + new SsisEnvironmentReference().withId(4251232617023680058L) + .withEnvironmentFolderName("v") + .withEnvironmentName("mknbnxwcdommpv") + .withReferenceType("awz"))) .withParameters(Arrays.asList( - new SsisParameter().withId(5364304877177881109L) - .withName("fbcswqagyw") - .withDescription("xigvjrktpgaeuk") - .withDataType("wohpmwhqnucs") - .withRequired(true) - .withSensitive(false) - .withDesignDefaultValue("sjt") - .withDefaultValue("pbninjgazlsvbzfc") - .withSensitiveDefaultValue("o") - .withValueType("dwjcciklhs") + new SsisParameter().withId(7285486993195955494L) + .withName("iac") + .withDescription("iexhajl") + .withDataType("t") + .withRequired(false) + .withSensitive(true) + .withDesignDefaultValue("t") + .withDefaultValue("iygbpvn") + .withSensitiveDefaultValue("wmtxkyctwwgz") + .withValueType("jlmec") .withValueSet(false) - .withVariable("drenxol"), - new SsisParameter().withId(7163548671113747724L) - .withName("qbeiv") - .withDescription("hydwbdbfgrlp") - .withDataType("ytjlkesmmpath") + .withVariable("gzyvnee"), + new SsisParameter().withId(3613374493627536729L) + .withName("htmoqqtlffhzbkr") + .withDescription("jjavfq") + .withDataType("hnqoewdo") .withRequired(false) - .withSensitive(false) - .withDesignDefaultValue("e") - .withDefaultValue("iiwllbvgwzsf") - .withSensitiveDefaultValue("edous") - .withValueType("tjtgravaqogfkb") + .withSensitive(true) + .withDesignDefaultValue("sypvidbztjhqtfb") + .withDefaultValue("nynkbwet") + .withSensitiveDefaultValue("uhpsprkzyaupia") + .withValueType("xnafbw") .withValueSet(true) - .withVariable("zlqbtxxwpfhn"), - new SsisParameter().withId(1439198591936874433L) - .withName("tpzkgmeboywhcz") - .withDescription("rhmngqbedy") - .withDataType("s") + .withVariable("htuov"), + new SsisParameter().withId(6160359867810551901L) + .withName("rjtumghih") + .withDescription("ecmslclbl") + .withDataType("xltbsjuscvsf") .withRequired(true) - .withSensitive(false) - .withDesignDefaultValue("d") - .withDefaultValue("jch") - .withSensitiveDefaultValue("mpwctoflds") - .withValueType("cdhz") + .withSensitive(true) + .withDesignDefaultValue("gxuupbezqccydrtc") + .withDefaultValue("kdqkkyihzt") + .withSensitiveDefaultValue("qm") + .withValueType("zgwldoychillcec") .withValueSet(true) - .withVariable("rfgdrwj"), - new SsisParameter().withId(5816710989706810096L) - .withName("fj") - .withDescription("wqrxetfgcwv") - .withDataType("mdqntycnaw") - .withRequired(true) - .withSensitive(false) - .withDesignDefaultValue("gnuyeamcmhu") - .withDefaultValue("jecehokwc") - .withSensitiveDefaultValue("twloesqr") - .withValueType("vrbnyrukoil") - .withValueSet(false) - .withVariable("uwj"))); + .withVariable("waoaguhi"))); model = BinaryData.fromObject(model).toObject(SsisProject.class); - Assertions.assertEquals(5566998054274641117L, model.id()); - Assertions.assertEquals("lh", model.name()); - Assertions.assertEquals("xpzruzythqkk", model.description()); - Assertions.assertEquals(5506500934153991782L, model.folderId()); - Assertions.assertEquals(7714612897077216943L, model.version()); - Assertions.assertEquals(4459170957000750161L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("rumzuedk", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("bfvxovqkxiuxq", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("vqrnhyhlwcjsqgg", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(5364304877177881109L, model.parameters().get(0).id()); - Assertions.assertEquals("fbcswqagyw", model.parameters().get(0).name()); - Assertions.assertEquals("xigvjrktpgaeuk", model.parameters().get(0).description()); - Assertions.assertEquals("wohpmwhqnucs", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(false, model.parameters().get(0).sensitive()); - Assertions.assertEquals("sjt", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("pbninjgazlsvbzfc", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("o", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("dwjcciklhs", model.parameters().get(0).valueType()); + Assertions.assertEquals(4879267275298407418L, model.id()); + Assertions.assertEquals("zstacsjvhrweft", model.name()); + Assertions.assertEquals("qejpmvssehaepwa", model.description()); + Assertions.assertEquals(6835409342308647438L, model.folderId()); + Assertions.assertEquals(1177146418590007172L, model.version()); + Assertions.assertEquals(8080220027377198790L, model.environmentRefs().get(0).id()); + Assertions.assertEquals("jttbstv", model.environmentRefs().get(0).environmentFolderName()); + Assertions.assertEquals("aqnrmvvfkoxmlg", model.environmentRefs().get(0).environmentName()); + Assertions.assertEquals("tuidvrmazlpd", model.environmentRefs().get(0).referenceType()); + Assertions.assertEquals(7285486993195955494L, model.parameters().get(0).id()); + Assertions.assertEquals("iac", model.parameters().get(0).name()); + Assertions.assertEquals("iexhajl", model.parameters().get(0).description()); + Assertions.assertEquals("t", model.parameters().get(0).dataType()); + Assertions.assertEquals(false, model.parameters().get(0).required()); + Assertions.assertEquals(true, model.parameters().get(0).sensitive()); + Assertions.assertEquals("t", model.parameters().get(0).designDefaultValue()); + Assertions.assertEquals("iygbpvn", model.parameters().get(0).defaultValue()); + Assertions.assertEquals("wmtxkyctwwgz", model.parameters().get(0).sensitiveDefaultValue()); + Assertions.assertEquals("jlmec", model.parameters().get(0).valueType()); Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("drenxol", model.parameters().get(0).variable()); + Assertions.assertEquals("gzyvnee", model.parameters().get(0).variable()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisVariableTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisVariableTests.java index 8ed27cef5494..41892e4ca758 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisVariableTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisVariableTests.java @@ -12,33 +12,33 @@ public final class SsisVariableTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SsisVariable model = BinaryData.fromString( - "{\"id\":9009344102822195529,\"name\":\"plixlajmllpqu\",\"description\":\"hamfowgwbtmk\",\"dataType\":\"xpk\",\"sensitive\":false,\"value\":\"xofqovchi\",\"sensitiveValue\":\"p\"}") + "{\"id\":8863809603382559898,\"name\":\"enbbklqpxzucafed\",\"description\":\"wnlzafwxu\",\"dataType\":\"nhgookrtalvnbw\",\"sensitive\":true,\"value\":\"meluclvdjj\",\"sensitiveValue\":\"yrdnqod\"}") .toObject(SsisVariable.class); - Assertions.assertEquals(9009344102822195529L, model.id()); - Assertions.assertEquals("plixlajmllpqu", model.name()); - Assertions.assertEquals("hamfowgwbtmk", model.description()); - Assertions.assertEquals("xpk", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("xofqovchi", model.value()); - Assertions.assertEquals("p", model.sensitiveValue()); + Assertions.assertEquals(8863809603382559898L, model.id()); + Assertions.assertEquals("enbbklqpxzucafed", model.name()); + Assertions.assertEquals("wnlzafwxu", model.description()); + Assertions.assertEquals("nhgookrtalvnbw", model.dataType()); + Assertions.assertEquals(true, model.sensitive()); + Assertions.assertEquals("meluclvdjj", model.value()); + Assertions.assertEquals("yrdnqod", model.sensitiveValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SsisVariable model = new SsisVariable().withId(9009344102822195529L) - .withName("plixlajmllpqu") - .withDescription("hamfowgwbtmk") - .withDataType("xpk") - .withSensitive(false) - .withValue("xofqovchi") - .withSensitiveValue("p"); + SsisVariable model = new SsisVariable().withId(8863809603382559898L) + .withName("enbbklqpxzucafed") + .withDescription("wnlzafwxu") + .withDataType("nhgookrtalvnbw") + .withSensitive(true) + .withValue("meluclvdjj") + .withSensitiveValue("yrdnqod"); model = BinaryData.fromObject(model).toObject(SsisVariable.class); - Assertions.assertEquals(9009344102822195529L, model.id()); - Assertions.assertEquals("plixlajmllpqu", model.name()); - Assertions.assertEquals("hamfowgwbtmk", model.description()); - Assertions.assertEquals("xpk", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("xofqovchi", model.value()); - Assertions.assertEquals("p", model.sensitiveValue()); + Assertions.assertEquals(8863809603382559898L, model.id()); + Assertions.assertEquals("enbbklqpxzucafed", model.name()); + Assertions.assertEquals("wnlzafwxu", model.description()); + Assertions.assertEquals("nhgookrtalvnbw", model.dataType()); + Assertions.assertEquals(true, model.sensitive()); + Assertions.assertEquals("meluclvdjj", model.value()); + Assertions.assertEquals("yrdnqod", model.sensitiveValue()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TableLevelSharingPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TableLevelSharingPropertiesTests.java deleted file mode 100644 index f94f5c683f5c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TableLevelSharingPropertiesTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TableLevelSharingPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TableLevelSharingProperties model = BinaryData.fromString( - "{\"tablesToInclude\":[\"gjfoknubnoitpkpz\",\"rgdg\",\"vcoqraswugyxpqi\"],\"tablesToExclude\":[\"ialwv\",\"kbuhzaca\",\"ty\"],\"externalTablesToInclude\":[\"oqc\"],\"externalTablesToExclude\":[\"dsxzakuejkmvb\",\"ztjofqcvovjufyc\",\"jmlbemyejiriux\"],\"materializedViewsToInclude\":[\"hortu\"],\"materializedViewsToExclude\":[\"lpjfelqerpptcbgq\",\"zmnhiilialwc\",\"gckbb\",\"ccgzpraoxnyu\"]}") - .toObject(TableLevelSharingProperties.class); - Assertions.assertEquals("gjfoknubnoitpkpz", model.tablesToInclude().get(0)); - Assertions.assertEquals("ialwv", model.tablesToExclude().get(0)); - Assertions.assertEquals("oqc", model.externalTablesToInclude().get(0)); - Assertions.assertEquals("dsxzakuejkmvb", model.externalTablesToExclude().get(0)); - Assertions.assertEquals("hortu", model.materializedViewsToInclude().get(0)); - Assertions.assertEquals("lpjfelqerpptcbgq", model.materializedViewsToExclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TableLevelSharingProperties model = new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("gjfoknubnoitpkpz", "rgdg", "vcoqraswugyxpqi")) - .withTablesToExclude(Arrays.asList("ialwv", "kbuhzaca", "ty")) - .withExternalTablesToInclude(Arrays.asList("oqc")) - .withExternalTablesToExclude(Arrays.asList("dsxzakuejkmvb", "ztjofqcvovjufyc", "jmlbemyejiriux")) - .withMaterializedViewsToInclude(Arrays.asList("hortu")) - .withMaterializedViewsToExclude(Arrays.asList("lpjfelqerpptcbgq", "zmnhiilialwc", "gckbb", "ccgzpraoxnyu")); - model = BinaryData.fromObject(model).toObject(TableLevelSharingProperties.class); - Assertions.assertEquals("gjfoknubnoitpkpz", model.tablesToInclude().get(0)); - Assertions.assertEquals("ialwv", model.tablesToExclude().get(0)); - Assertions.assertEquals("oqc", model.externalTablesToInclude().get(0)); - Assertions.assertEquals("dsxzakuejkmvb", model.externalTablesToExclude().get(0)); - Assertions.assertEquals("hortu", model.materializedViewsToInclude().get(0)); - Assertions.assertEquals("lpjfelqerpptcbgq", model.materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionInnerTests.java index 9f4583384709..bff9b149061e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionInnerTests.java @@ -13,7 +13,7 @@ public final class TransparentDataEncryptionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TransparentDataEncryptionInner model = BinaryData.fromString( - "{\"location\":\"t\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"rxcyjmoad\",\"name\":\"uvarmywdmjsjq\",\"type\":\"jhhyxxrwlycoduhp\"}") + "{\"location\":\"sttijfybvp\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"sgsgbdhu\",\"name\":\"qgnjdgkynscli\",\"type\":\"hzvhxnkomtkubo\"}") .toObject(TransparentDataEncryptionInner.class); Assertions.assertEquals(TransparentDataEncryptionStatus.ENABLED, model.status()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionListResultTests.java index 9afbb774e32d..345abfaca13e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionListResultTests.java @@ -11,7 +11,7 @@ public final class TransparentDataEncryptionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TransparentDataEncryptionListResult model = BinaryData.fromString( - "{\"value\":[{\"location\":\"areqna\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"gjhkycubeddg\",\"name\":\"sofwqmzqalkrmnji\",\"type\":\"pxacqqudfn\"},{\"location\":\"xbaaabjyv\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"imrzrtuzqog\",\"name\":\"exn\",\"type\":\"vfdnwnwmewzsyyce\"},{\"location\":\"soibjudpfrx\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"zvaytdwkqbr\",\"name\":\"ubpaxhe\",\"type\":\"iilivpdtiirqtd\"},{\"location\":\"axoruzfgsquy\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"xleptramx\",\"name\":\"ezw\",\"type\":\"wnwxuqlcvyd\"}],\"nextLink\":\"atdooaojkniod\"}") + "{\"value\":[{\"location\":\"xz\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"frbbc\",\"name\":\"vqagtltdhlf\",\"type\":\"qojpy\"},{\"location\":\"gtrd\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"mzzs\",\"name\":\"ymbrnysuxmpraf\",\"type\":\"g\"},{\"location\":\"hocxvdfffwafqrou\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"avehhrvkbunzo\",\"name\":\"ud\",\"type\":\"cxgkmoyxcdyui\"},{\"location\":\"mfdn\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"vfvfcj\",\"name\":\"aeoisrvh\",\"type\":\"gorf\"}],\"nextLink\":\"kiscvwmzhwpl\"}") .toObject(TransparentDataEncryptionListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionPropertiesTests.java index b4a512df8fce..cc37a659a1d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionPropertiesTests.java @@ -13,15 +13,15 @@ public final class TransparentDataEncryptionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TransparentDataEncryptionProperties model - = BinaryData.fromString("{\"status\":\"Disabled\"}").toObject(TransparentDataEncryptionProperties.class); - Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, model.status()); + = BinaryData.fromString("{\"status\":\"Enabled\"}").toObject(TransparentDataEncryptionProperties.class); + Assertions.assertEquals(TransparentDataEncryptionStatus.ENABLED, model.status()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TransparentDataEncryptionProperties model - = new TransparentDataEncryptionProperties().withStatus(TransparentDataEncryptionStatus.DISABLED); + = new TransparentDataEncryptionProperties().withStatus(TransparentDataEncryptionStatus.ENABLED); model = BinaryData.fromObject(model).toObject(TransparentDataEncryptionProperties.class); - Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, model.status()); + Assertions.assertEquals(TransparentDataEncryptionStatus.ENABLED, model.status()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeNodeRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeNodeRequestTests.java index cde051f3306c..989f2464dd3e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeNodeRequestTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeNodeRequestTests.java @@ -11,16 +11,16 @@ public final class UpdateIntegrationRuntimeNodeRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model = BinaryData.fromString("{\"concurrentJobsLimit\":1481197377}") + UpdateIntegrationRuntimeNodeRequest model = BinaryData.fromString("{\"concurrentJobsLimit\":1558612469}") .toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(1481197377, model.concurrentJobsLimit()); + Assertions.assertEquals(1558612469, model.concurrentJobsLimit()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { UpdateIntegrationRuntimeNodeRequest model - = new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(1481197377); + = new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(1558612469); model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(1481197377, model.concurrentJobsLimit()); + Assertions.assertEquals(1558612469, model.concurrentJobsLimit()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeRequestTests.java index f5ed86666bd5..0198c534ad76 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeRequestTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeRequestTests.java @@ -13,19 +13,19 @@ public final class UpdateIntegrationRuntimeRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpdateIntegrationRuntimeRequest model - = BinaryData.fromString("{\"autoUpdate\":\"On\",\"updateDelayOffset\":\"vcopex\"}") + = BinaryData.fromString("{\"autoUpdate\":\"On\",\"updateDelayOffset\":\"zrkgqhcjrefovg\"}") .toObject(UpdateIntegrationRuntimeRequest.class); Assertions.assertEquals(IntegrationRuntimeAutoUpdate.ON, model.autoUpdate()); - Assertions.assertEquals("vcopex", model.updateDelayOffset()); + Assertions.assertEquals("zrkgqhcjrefovg", model.updateDelayOffset()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { UpdateIntegrationRuntimeRequest model = new UpdateIntegrationRuntimeRequest().withAutoUpdate(IntegrationRuntimeAutoUpdate.ON) - .withUpdateDelayOffset("vcopex"); + .withUpdateDelayOffset("zrkgqhcjrefovg"); model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeRequest.class); Assertions.assertEquals(IntegrationRuntimeAutoUpdate.ON, model.autoUpdate()); - Assertions.assertEquals("vcopex", model.updateDelayOffset()); + Assertions.assertEquals("zrkgqhcjrefovg", model.updateDelayOffset()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UserAssignedManagedIdentityTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UserAssignedManagedIdentityTests.java deleted file mode 100644 index 0111c3e3b5aa..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UserAssignedManagedIdentityTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.UserAssignedManagedIdentity; - -public final class UserAssignedManagedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedManagedIdentity model = BinaryData.fromString( - "{\"clientId\":\"f05980dc-2221-4842-a2c9-a95751cdf162\",\"principalId\":\"70efa340-ce84-48ca-b546-27b939b7b8b9\"}") - .toObject(UserAssignedManagedIdentity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedManagedIdentity model = new UserAssignedManagedIdentity(); - model = BinaryData.fromObject(model).toObject(UserAssignedManagedIdentity.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VirtualNetworkProfileTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VirtualNetworkProfileTests.java index 0e4c88940808..7d0f7c97aa49 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VirtualNetworkProfileTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VirtualNetworkProfileTests.java @@ -12,14 +12,14 @@ public final class VirtualNetworkProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualNetworkProfile model - = BinaryData.fromString("{\"computeSubnetId\":\"prtujwsawdd\"}").toObject(VirtualNetworkProfile.class); - Assertions.assertEquals("prtujwsawdd", model.computeSubnetId()); + = BinaryData.fromString("{\"computeSubnetId\":\"ijtk\"}").toObject(VirtualNetworkProfile.class); + Assertions.assertEquals("ijtk", model.computeSubnetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VirtualNetworkProfile model = new VirtualNetworkProfile().withComputeSubnetId("prtujwsawdd"); + VirtualNetworkProfile model = new VirtualNetworkProfile().withComputeSubnetId("ijtk"); model = BinaryData.fromObject(model).toObject(VirtualNetworkProfile.class); - Assertions.assertEquals("prtujwsawdd", model.computeSubnetId()); + Assertions.assertEquals("ijtk", model.computeSubnetId()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesTests.java index 5346235b5f3e..695c5581255c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesTests.java @@ -12,23 +12,24 @@ public final class VulnerabilityAssessmentRecurringScansPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VulnerabilityAssessmentRecurringScansProperties model = BinaryData.fromString( - "{\"isEnabled\":false,\"emailSubscriptionAdmins\":false,\"emails\":[\"ibgjmfxumvfcl\",\"yo\",\"wxnb\"]}") + VulnerabilityAssessmentRecurringScansProperties model = BinaryData + .fromString( + "{\"isEnabled\":false,\"emailSubscriptionAdmins\":true,\"emails\":[\"asccbiui\",\"zdlyjdfqw\"]}") .toObject(VulnerabilityAssessmentRecurringScansProperties.class); Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(false, model.emailSubscriptionAdmins()); - Assertions.assertEquals("ibgjmfxumvfcl", model.emails().get(0)); + Assertions.assertEquals(true, model.emailSubscriptionAdmins()); + Assertions.assertEquals("asccbiui", model.emails().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VulnerabilityAssessmentRecurringScansProperties model = new VulnerabilityAssessmentRecurringScansProperties().withIsEnabled(false) - .withEmailSubscriptionAdmins(false) - .withEmails(Arrays.asList("ibgjmfxumvfcl", "yo", "wxnb")); + .withEmailSubscriptionAdmins(true) + .withEmails(Arrays.asList("asccbiui", "zdlyjdfqw")); model = BinaryData.fromObject(model).toObject(VulnerabilityAssessmentRecurringScansProperties.class); Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(false, model.emailSubscriptionAdmins()); - Assertions.assertEquals("ibgjmfxumvfcl", model.emails().get(0)); + Assertions.assertEquals(true, model.emailSubscriptionAdmins()); + Assertions.assertEquals("asccbiui", model.emails().get(0)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierInnerTests.java index 12ee964e8f9e..410687596ea9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierInnerTests.java @@ -12,30 +12,30 @@ public final class WorkloadClassifierInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadClassifierInner model = BinaryData.fromString( - "{\"properties\":{\"memberName\":\"ril\",\"label\":\"apeewchpxlkt\",\"context\":\"uziycsl\",\"startTime\":\"ufuztcktyhjtq\",\"endTime\":\"cgzulwmmrqzzr\",\"importance\":\"vpglydz\"},\"id\":\"krvq\",\"name\":\"ev\",\"type\":\"oepry\"}") + "{\"properties\":{\"memberName\":\"srxuzvoam\",\"label\":\"cqiosmgbza\",\"context\":\"xqdlyrtltlapr\",\"startTime\":\"zkatb\",\"endTime\":\"mznnbsoqeqalarvl\",\"importance\":\"un\"},\"id\":\"tgfebwln\",\"name\":\"mhyreeudz\",\"type\":\"av\"}") .toObject(WorkloadClassifierInner.class); - Assertions.assertEquals("ril", model.memberName()); - Assertions.assertEquals("apeewchpxlkt", model.label()); - Assertions.assertEquals("uziycsl", model.context()); - Assertions.assertEquals("ufuztcktyhjtq", model.startTime()); - Assertions.assertEquals("cgzulwmmrqzzr", model.endTime()); - Assertions.assertEquals("vpglydz", model.importance()); + Assertions.assertEquals("srxuzvoam", model.memberName()); + Assertions.assertEquals("cqiosmgbza", model.label()); + Assertions.assertEquals("xqdlyrtltlapr", model.context()); + Assertions.assertEquals("zkatb", model.startTime()); + Assertions.assertEquals("mznnbsoqeqalarvl", model.endTime()); + Assertions.assertEquals("un", model.importance()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadClassifierInner model = new WorkloadClassifierInner().withMemberName("ril") - .withLabel("apeewchpxlkt") - .withContext("uziycsl") - .withStartTime("ufuztcktyhjtq") - .withEndTime("cgzulwmmrqzzr") - .withImportance("vpglydz"); + WorkloadClassifierInner model = new WorkloadClassifierInner().withMemberName("srxuzvoam") + .withLabel("cqiosmgbza") + .withContext("xqdlyrtltlapr") + .withStartTime("zkatb") + .withEndTime("mznnbsoqeqalarvl") + .withImportance("un"); model = BinaryData.fromObject(model).toObject(WorkloadClassifierInner.class); - Assertions.assertEquals("ril", model.memberName()); - Assertions.assertEquals("apeewchpxlkt", model.label()); - Assertions.assertEquals("uziycsl", model.context()); - Assertions.assertEquals("ufuztcktyhjtq", model.startTime()); - Assertions.assertEquals("cgzulwmmrqzzr", model.endTime()); - Assertions.assertEquals("vpglydz", model.importance()); + Assertions.assertEquals("srxuzvoam", model.memberName()); + Assertions.assertEquals("cqiosmgbza", model.label()); + Assertions.assertEquals("xqdlyrtltlapr", model.context()); + Assertions.assertEquals("zkatb", model.startTime()); + Assertions.assertEquals("mznnbsoqeqalarvl", model.endTime()); + Assertions.assertEquals("un", model.importance()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierListResultTests.java index 302320c7cfd0..9e9eac2e5f7c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierListResultTests.java @@ -11,7 +11,7 @@ public final class WorkloadClassifierListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadClassifierListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"memberName\":\"okpvzm\",\"label\":\"t\",\"context\":\"dgxobfircl\",\"startTime\":\"kciayzri\",\"endTime\":\"hya\",\"importance\":\"vjlboxqvk\"},\"id\":\"lmxhomdyn\",\"name\":\"dwdigumb\",\"type\":\"raauzzpt\"},{\"properties\":{\"memberName\":\"zysdzh\",\"label\":\"wwvaiqyuvvfonk\",\"context\":\"hqyikvy\",\"startTime\":\"uyav\",\"endTime\":\"wmn\",\"importance\":\"ttijfybvpoekrs\"},\"id\":\"sgbdhuz\",\"name\":\"gnjdgkynscliqhz\",\"type\":\"h\"}],\"nextLink\":\"komtkubotppn\"}") + "{\"value\":[{\"properties\":{\"memberName\":\"kpak\",\"label\":\"ifmjnn\",\"context\":\"tqabpxuckpgg\",\"startTime\":\"wey\",\"endTime\":\"dhlisngwflqqmpi\",\"importance\":\"uwnpqxpxiwfcng\"},\"id\":\"saasiixtmkzj\",\"name\":\"kv\",\"type\":\"irhgfgrwsdp\"},{\"properties\":{\"memberName\":\"atzv\",\"label\":\"glbyvi\",\"context\":\"ctbrxkjzwrgxffm\",\"startTime\":\"kwfbkgo\",\"endTime\":\"wopdbydpiz\",\"importance\":\"clnapxbiygnugjkn\"},\"id\":\"smfcttuxuuyilfl\",\"name\":\"oiquvrehmrnjhvs\",\"type\":\"jztczytqj\"}],\"nextLink\":\"h\"}") .toObject(WorkloadClassifierListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierPropertiesTests.java index eb41f7c865db..6aa8f7801a0c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierPropertiesTests.java @@ -12,30 +12,30 @@ public final class WorkloadClassifierPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadClassifierProperties model = BinaryData.fromString( - "{\"memberName\":\"t\",\"label\":\"ytp\",\"context\":\"mov\",\"startTime\":\"fvaawzqa\",\"endTime\":\"lgzurig\",\"importance\":\"ecxn\"}") + "{\"memberName\":\"pdqmjxlyyzglgouw\",\"label\":\"mjjyuojq\",\"context\":\"baxk\",\"startTime\":\"ytunlbfjkwr\",\"endTime\":\"nkqbhsyrq\",\"importance\":\"jqhden\"}") .toObject(WorkloadClassifierProperties.class); - Assertions.assertEquals("t", model.memberName()); - Assertions.assertEquals("ytp", model.label()); - Assertions.assertEquals("mov", model.context()); - Assertions.assertEquals("fvaawzqa", model.startTime()); - Assertions.assertEquals("lgzurig", model.endTime()); - Assertions.assertEquals("ecxn", model.importance()); + Assertions.assertEquals("pdqmjxlyyzglgouw", model.memberName()); + Assertions.assertEquals("mjjyuojq", model.label()); + Assertions.assertEquals("baxk", model.context()); + Assertions.assertEquals("ytunlbfjkwr", model.startTime()); + Assertions.assertEquals("nkqbhsyrq", model.endTime()); + Assertions.assertEquals("jqhden", model.importance()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadClassifierProperties model = new WorkloadClassifierProperties().withMemberName("t") - .withLabel("ytp") - .withContext("mov") - .withStartTime("fvaawzqa") - .withEndTime("lgzurig") - .withImportance("ecxn"); + WorkloadClassifierProperties model = new WorkloadClassifierProperties().withMemberName("pdqmjxlyyzglgouw") + .withLabel("mjjyuojq") + .withContext("baxk") + .withStartTime("ytunlbfjkwr") + .withEndTime("nkqbhsyrq") + .withImportance("jqhden"); model = BinaryData.fromObject(model).toObject(WorkloadClassifierProperties.class); - Assertions.assertEquals("t", model.memberName()); - Assertions.assertEquals("ytp", model.label()); - Assertions.assertEquals("mov", model.context()); - Assertions.assertEquals("fvaawzqa", model.startTime()); - Assertions.assertEquals("lgzurig", model.endTime()); - Assertions.assertEquals("ecxn", model.importance()); + Assertions.assertEquals("pdqmjxlyyzglgouw", model.memberName()); + Assertions.assertEquals("mjjyuojq", model.label()); + Assertions.assertEquals("baxk", model.context()); + Assertions.assertEquals("ytunlbfjkwr", model.startTime()); + Assertions.assertEquals("nkqbhsyrq", model.endTime()); + Assertions.assertEquals("jqhden", model.importance()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupInnerTests.java index 77dfc91711a2..aa8b2622b00d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupInnerTests.java @@ -12,30 +12,30 @@ public final class WorkloadGroupInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadGroupInner model = BinaryData.fromString( - "{\"properties\":{\"minResourcePercent\":1299849927,\"maxResourcePercent\":941654553,\"minResourcePercentPerRequest\":16.953184002601585,\"maxResourcePercentPerRequest\":83.0162433234308,\"importance\":\"nbzoggcu\",\"queryExecutionTimeout\":15755117},\"id\":\"z\",\"name\":\"y\",\"type\":\"pgogtqxepny\"}") + "{\"properties\":{\"minResourcePercent\":1519805829,\"maxResourcePercent\":1196099059,\"minResourcePercentPerRequest\":26.846239571831887,\"maxResourcePercentPerRequest\":65.52472598577988,\"importance\":\"birdsvuwcobiegs\",\"queryExecutionTimeout\":1923237132},\"id\":\"inwjizcilngh\",\"name\":\"shejjtbxqm\",\"type\":\"luxlxqzvnersby\"}") .toObject(WorkloadGroupInner.class); - Assertions.assertEquals(1299849927, model.minResourcePercent()); - Assertions.assertEquals(941654553, model.maxResourcePercent()); - Assertions.assertEquals(16.953184002601585, model.minResourcePercentPerRequest()); - Assertions.assertEquals(83.0162433234308D, model.maxResourcePercentPerRequest()); - Assertions.assertEquals("nbzoggcu", model.importance()); - Assertions.assertEquals(15755117, model.queryExecutionTimeout()); + Assertions.assertEquals(1519805829, model.minResourcePercent()); + Assertions.assertEquals(1196099059, model.maxResourcePercent()); + Assertions.assertEquals(26.846239571831887, model.minResourcePercentPerRequest()); + Assertions.assertEquals(65.52472598577988D, model.maxResourcePercentPerRequest()); + Assertions.assertEquals("birdsvuwcobiegs", model.importance()); + Assertions.assertEquals(1923237132, model.queryExecutionTimeout()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadGroupInner model = new WorkloadGroupInner().withMinResourcePercent(1299849927) - .withMaxResourcePercent(941654553) - .withMinResourcePercentPerRequest(16.953184002601585) - .withMaxResourcePercentPerRequest(83.0162433234308D) - .withImportance("nbzoggcu") - .withQueryExecutionTimeout(15755117); + WorkloadGroupInner model = new WorkloadGroupInner().withMinResourcePercent(1519805829) + .withMaxResourcePercent(1196099059) + .withMinResourcePercentPerRequest(26.846239571831887) + .withMaxResourcePercentPerRequest(65.52472598577988D) + .withImportance("birdsvuwcobiegs") + .withQueryExecutionTimeout(1923237132); model = BinaryData.fromObject(model).toObject(WorkloadGroupInner.class); - Assertions.assertEquals(1299849927, model.minResourcePercent()); - Assertions.assertEquals(941654553, model.maxResourcePercent()); - Assertions.assertEquals(16.953184002601585, model.minResourcePercentPerRequest()); - Assertions.assertEquals(83.0162433234308D, model.maxResourcePercentPerRequest()); - Assertions.assertEquals("nbzoggcu", model.importance()); - Assertions.assertEquals(15755117, model.queryExecutionTimeout()); + Assertions.assertEquals(1519805829, model.minResourcePercent()); + Assertions.assertEquals(1196099059, model.maxResourcePercent()); + Assertions.assertEquals(26.846239571831887, model.minResourcePercentPerRequest()); + Assertions.assertEquals(65.52472598577988D, model.maxResourcePercentPerRequest()); + Assertions.assertEquals("birdsvuwcobiegs", model.importance()); + Assertions.assertEquals(1923237132, model.queryExecutionTimeout()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupListResultTests.java index 9bed3ce6c003..69c95d2b0088 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupListResultTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupListResultTests.java @@ -11,7 +11,7 @@ public final class WorkloadGroupListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadGroupListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"minResourcePercent\":146318685,\"maxResourcePercent\":595342906,\"minResourcePercentPerRequest\":13.140682023988093,\"maxResourcePercentPerRequest\":93.55016256081733,\"importance\":\"rkjpvdwxfzwii\",\"queryExecutionTimeout\":615358685},\"id\":\"jbhyzsxjrkambtr\",\"name\":\"egv\",\"type\":\"nvuqeqvldspa\"}],\"nextLink\":\"jbkkdmflvestmjl\"}") + "{\"value\":[{\"properties\":{\"minResourcePercent\":1274607788,\"maxResourcePercent\":965940259,\"minResourcePercentPerRequest\":44.58868998024772,\"maxResourcePercentPerRequest\":37.32980536554752,\"importance\":\"swhvhczznvfbycj\",\"queryExecutionTimeout\":728305495},\"id\":\"wwixzvumw\",\"name\":\"xqhndvnoamlds\",\"type\":\"haohdjhhflzokxc\"},{\"properties\":{\"minResourcePercent\":94741475,\"maxResourcePercent\":256270382,\"minResourcePercentPerRequest\":55.13879535054193,\"maxResourcePercentPerRequest\":12.954779211935541,\"importance\":\"gltsxoat\",\"queryExecutionTimeout\":184618447},\"id\":\"zpnpbswv\",\"name\":\"floccsrmozih\",\"type\":\"ipgawtxx\"},{\"properties\":{\"minResourcePercent\":156137612,\"maxResourcePercent\":2137168460,\"minResourcePercentPerRequest\":47.95767631994743,\"maxResourcePercentPerRequest\":50.32173910151165,\"importance\":\"rytfmpcycil\",\"queryExecutionTimeout\":735394972},\"id\":\"aykggnoxu\",\"name\":\"t\",\"type\":\"ksxwpnd\"}],\"nextLink\":\"pfnznthjtwkj\"}") .toObject(WorkloadGroupListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupPropertiesTests.java index 7f703a1354c1..f76a2e6a4a5c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupPropertiesTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupPropertiesTests.java @@ -12,30 +12,30 @@ public final class WorkloadGroupPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadGroupProperties model = BinaryData.fromString( - "{\"minResourcePercent\":225364695,\"maxResourcePercent\":1445730158,\"minResourcePercentPerRequest\":33.73918507647764,\"maxResourcePercentPerRequest\":23.249660703328836,\"importance\":\"tlvofq\",\"queryExecutionTimeout\":811442311}") + "{\"minResourcePercent\":1981390532,\"maxResourcePercent\":29183092,\"minResourcePercentPerRequest\":59.62316253580416,\"maxResourcePercentPerRequest\":73.38620327467183,\"importance\":\"kzebrqbsm\",\"queryExecutionTimeout\":1700673148}") .toObject(WorkloadGroupProperties.class); - Assertions.assertEquals(225364695, model.minResourcePercent()); - Assertions.assertEquals(1445730158, model.maxResourcePercent()); - Assertions.assertEquals(33.73918507647764, model.minResourcePercentPerRequest()); - Assertions.assertEquals(23.249660703328836D, model.maxResourcePercentPerRequest()); - Assertions.assertEquals("tlvofq", model.importance()); - Assertions.assertEquals(811442311, model.queryExecutionTimeout()); + Assertions.assertEquals(1981390532, model.minResourcePercent()); + Assertions.assertEquals(29183092, model.maxResourcePercent()); + Assertions.assertEquals(59.62316253580416, model.minResourcePercentPerRequest()); + Assertions.assertEquals(73.38620327467183D, model.maxResourcePercentPerRequest()); + Assertions.assertEquals("kzebrqbsm", model.importance()); + Assertions.assertEquals(1700673148, model.queryExecutionTimeout()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadGroupProperties model = new WorkloadGroupProperties().withMinResourcePercent(225364695) - .withMaxResourcePercent(1445730158) - .withMinResourcePercentPerRequest(33.73918507647764) - .withMaxResourcePercentPerRequest(23.249660703328836D) - .withImportance("tlvofq") - .withQueryExecutionTimeout(811442311); + WorkloadGroupProperties model = new WorkloadGroupProperties().withMinResourcePercent(1981390532) + .withMaxResourcePercent(29183092) + .withMinResourcePercentPerRequest(59.62316253580416) + .withMaxResourcePercentPerRequest(73.38620327467183D) + .withImportance("kzebrqbsm") + .withQueryExecutionTimeout(1700673148); model = BinaryData.fromObject(model).toObject(WorkloadGroupProperties.class); - Assertions.assertEquals(225364695, model.minResourcePercent()); - Assertions.assertEquals(1445730158, model.maxResourcePercent()); - Assertions.assertEquals(33.73918507647764, model.minResourcePercentPerRequest()); - Assertions.assertEquals(23.249660703328836D, model.maxResourcePercentPerRequest()); - Assertions.assertEquals("tlvofq", model.importance()); - Assertions.assertEquals(811442311, model.queryExecutionTimeout()); + Assertions.assertEquals(1981390532, model.minResourcePercent()); + Assertions.assertEquals(29183092, model.maxResourcePercent()); + Assertions.assertEquals(59.62316253580416, model.minResourcePercentPerRequest()); + Assertions.assertEquals(73.38620327467183D, model.maxResourcePercentPerRequest()); + Assertions.assertEquals("kzebrqbsm", model.importance()); + Assertions.assertEquals(1700673148, model.queryExecutionTimeout()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminInfoInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminInfoInnerTests.java index 42854b214bff..03b2d7841515 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminInfoInnerTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminInfoInnerTests.java @@ -12,24 +12,24 @@ public final class WorkspaceAadAdminInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceAadAdminInfoInner model = BinaryData.fromString( - "{\"properties\":{\"tenantId\":\"libph\",\"login\":\"zmizakakan\",\"administratorType\":\"p\",\"sid\":\"jzhajoy\"},\"id\":\"hjlmu\",\"name\":\"y\",\"type\":\"primr\"}") + "{\"properties\":{\"tenantId\":\"bo\",\"login\":\"cqxypokkhminq\",\"administratorType\":\"mczngn\",\"sid\":\"xxewu\"},\"id\":\"invudbch\",\"name\":\"qdtvqecrqctmxx\",\"type\":\"tddmf\"}") .toObject(WorkspaceAadAdminInfoInner.class); - Assertions.assertEquals("libph", model.tenantId()); - Assertions.assertEquals("zmizakakan", model.login()); - Assertions.assertEquals("p", model.administratorType()); - Assertions.assertEquals("jzhajoy", model.sid()); + Assertions.assertEquals("bo", model.tenantId()); + Assertions.assertEquals("cqxypokkhminq", model.login()); + Assertions.assertEquals("mczngn", model.administratorType()); + Assertions.assertEquals("xxewu", model.sid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkspaceAadAdminInfoInner model = new WorkspaceAadAdminInfoInner().withTenantId("libph") - .withLogin("zmizakakan") - .withAdministratorType("p") - .withSid("jzhajoy"); + WorkspaceAadAdminInfoInner model = new WorkspaceAadAdminInfoInner().withTenantId("bo") + .withLogin("cqxypokkhminq") + .withAdministratorType("mczngn") + .withSid("xxewu"); model = BinaryData.fromObject(model).toObject(WorkspaceAadAdminInfoInner.class); - Assertions.assertEquals("libph", model.tenantId()); - Assertions.assertEquals("zmizakakan", model.login()); - Assertions.assertEquals("p", model.administratorType()); - Assertions.assertEquals("jzhajoy", model.sid()); + Assertions.assertEquals("bo", model.tenantId()); + Assertions.assertEquals("cqxypokkhminq", model.login()); + Assertions.assertEquals("mczngn", model.administratorType()); + Assertions.assertEquals("xxewu", model.sid()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateMockTests.java index 1ffcee9bf930..77e6c60e236a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateMockTests.java @@ -22,7 +22,7 @@ public final class WorkspaceAadAdminsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"tenantId\":\"ywezy\",\"login\":\"adgaaqwvkgjpy\",\"administratorType\":\"mpvdnogeh\",\"sid\":\"fbortbnukk\"},\"id\":\"axzs\",\"name\":\"bx\",\"type\":\"yjisskobq\"}"; + = "{\"properties\":{\"tenantId\":\"ijolbuauktwieope\",\"login\":\"lxqdwr\",\"administratorType\":\"yil\",\"sid\":\"ibkgxyxyau\"},\"id\":\"reddobmcnlt\",\"name\":\"wytkujsqy\",\"type\":\"mmoxfablqgpwbmwh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkspaceAadAdminInfo response = manager.workspaceAadAdmins() - .createOrUpdate("youergaghp", "zxkpyehhfdyld", - new WorkspaceAadAdminInfoInner().withTenantId("edzfzqiyuqhtdere") - .withLogin("oka") - .withAdministratorType("whpjlw") - .withSid("edznmxrfomckewv"), + .createOrUpdate("yxsbfpz", "oikvntwcz", + new WorkspaceAadAdminInfoInner().withTenantId("ushlcxpblalh") + .withLogin("zpfkis") + .withAdministratorType("idqzsaaoqdsgpto") + .withSid("jq"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("ywezy", response.tenantId()); - Assertions.assertEquals("adgaaqwvkgjpy", response.login()); - Assertions.assertEquals("mpvdnogeh", response.administratorType()); - Assertions.assertEquals("fbortbnukk", response.sid()); + Assertions.assertEquals("ijolbuauktwieope", response.tenantId()); + Assertions.assertEquals("lxqdwr", response.login()); + Assertions.assertEquals("yil", response.administratorType()); + Assertions.assertEquals("ibkgxyxyau", response.sid()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteMockTests.java index 048242f8628c..e81e776fc985 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.workspaceAadAdmins().delete("clflioe", "yhxess", com.azure.core.util.Context.NONE); + manager.workspaceAadAdmins().delete("ialiwry", "gnwplrrb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetWithResponseMockTests.java index 7267bfb4636f..cd20f7d98141 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class WorkspaceAadAdminsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"tenantId\":\"quzxpixhyoipnf\",\"login\":\"gsoscienezfvb\",\"administratorType\":\"n\",\"sid\":\"kbpjnrte\"},\"id\":\"w\",\"name\":\"nthropmdudsyiu\",\"type\":\"ztvktjhffecqko\"}"; + = "{\"properties\":{\"tenantId\":\"hftpzcrrykll\",\"login\":\"nqanhkigglclwal\",\"administratorType\":\"ubhg\",\"sid\":\"hetxdqcmyctajqz\"},\"id\":\"vale\",\"name\":\"xb\",\"type\":\"biwksde\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,13 +30,12 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - WorkspaceAadAdminInfo response = manager.workspaceAadAdmins() - .getWithResponse("gfzdgjfcycrsvl", "yyhigqkzjuqw", com.azure.core.util.Context.NONE) - .getValue(); + WorkspaceAadAdminInfo response + = manager.workspaceAadAdmins().getWithResponse("mey", "ajamc", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals("quzxpixhyoipnf", response.tenantId()); - Assertions.assertEquals("gsoscienezfvb", response.login()); - Assertions.assertEquals("n", response.administratorType()); - Assertions.assertEquals("kbpjnrte", response.sid()); + Assertions.assertEquals("hftpzcrrykll", response.tenantId()); + Assertions.assertEquals("nqanhkigglclwal", response.login()); + Assertions.assertEquals("ubhg", response.administratorType()); + Assertions.assertEquals("hetxdqcmyctajqz", response.sid()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockTests.java index d34d5ff90a3d..2860b1fd64f5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockTests.java @@ -11,9 +11,9 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModel; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -24,7 +24,7 @@ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockT @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Enabled\",\"actualState\":\"Disabled\"}},\"id\":\"xlkdlgwgnamkuuy\",\"name\":\"uyuafixlxicw\",\"type\":\"pthdcfmf\"}"; + = "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Disabled\",\"actualState\":\"Disabled\"}},\"id\":\"qxowkdn\",\"name\":\"rxgkr\",\"type\":\"wiehycpn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,12 +34,15 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ManagedIdentitySqlControlSettingsModel response = manager.workspaceManagedIdentitySqlControlSettings() - .createOrUpdate("wlvi", "jmxmlitqdsj", + .createOrUpdate("xch", "kibmgjymn", new ManagedIdentitySqlControlSettingsModelInner().withGrantSqlControlToManagedIdentity( new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED)), + .withDesiredState( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.ENABLED)), com.azure.core.util.Context.NONE); - Assertions.assertEquals(DesiredState.ENABLED, response.grantSqlControlToManagedIdentity().desiredState()); + Assertions.assertEquals( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.DISABLED, + response.grantSqlControlToManagedIdentity().desiredState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMockTests.java index 680a800276ed..d4bd4169ce4e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMockTests.java @@ -10,8 +10,8 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModel; +import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -22,7 +22,7 @@ public final class WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMock @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Enabled\",\"actualState\":\"Enabled\"}},\"id\":\"n\",\"name\":\"fzhrchx\",\"type\":\"wuzdmh\"}"; + = "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Disabled\",\"actualState\":\"Disabled\"}},\"id\":\"bo\",\"name\":\"xvhhyqq\",\"type\":\"gatxgrznmginmtsd\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ManagedIdentitySqlControlSettingsModel response = manager.workspaceManagedIdentitySqlControlSettings() - .getWithResponse("mumm", "kvavucgj", com.azure.core.util.Context.NONE) + .getWithResponse("vzm", "ghnysvlpyeuu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(DesiredState.ENABLED, response.grantSqlControlToManagedIdentity().desiredState()); + Assertions.assertEquals( + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.DISABLED, + response.grantSqlControlToManagedIdentity().desiredState()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests.java deleted file mode 100644 index 9c224e189859..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"location\":\"uwudhuaor\",\"properties\":{\"minimalTlsVersion\":\"ehwvumosqirc\"},\"id\":\"mqprlobru\",\"name\":\"ejcvjkjyczcmta\",\"type\":\"elajdyol\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DedicatedSQLminimalTlsSettings response = manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .getWithResponse("e", "i", "ntojovfnybydhuih", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ehwvumosqirc", response.minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests.java deleted file mode 100644 index e45b05f7d41c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"location\":\"ymgqbgcx\",\"properties\":{\"minimalTlsVersion\":\"xgzxlermkmer\"},\"id\":\"hskirhnp\",\"name\":\"pkcbkfukdljq\",\"type\":\"vtsdydshkpafy\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .list("eqyxqfmzsiz", "hravrcj", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xgzxlermkmer", response.iterator().next().minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests.java deleted file mode 100644 index f9219e920bcf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; -import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests { - @Test - public void testUpdate() throws Exception { - String responseStr - = "{\"location\":\"apgrcqe\",\"properties\":{\"minimalTlsVersion\":\"rdjomlnwsb\"},\"id\":\"vdlsflxkqesdfeds\",\"name\":\"gzancoinmphy\",\"type\":\"cqidkltvdhqnufbx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - SynapseManager manager = SynapseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DedicatedSQLminimalTlsSettings response = manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .update("gsiqikvllr", "tpmglxkoikmtr", DedicatedSqlMinimalTlsSettingsName.DEFAULT, - new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("wb"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("rdjomlnwsb", response.minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorsRevalidateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorsRevalidateMockTests.java index 02bb433019a8..c0af93fff7b5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorsRevalidateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorsRevalidateMockTests.java @@ -29,7 +29,7 @@ public void testRevalidate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workspaceManagedSqlServerEncryptionProtectors() - .revalidate("xzqfcwr", "iomxeezw", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); + .revalidate("bnlblfxlupibaqzi", "xz", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMockTests.java index 4e4ee47790a9..76fcde54a85d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMo @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"edition\":\"cucrcm\",\"serviceLevelObjective\":\"ixpqj\",\"elasticPoolName\":\"ifhb\",\"lastAvailableBackupDate\":\"2021-02-19T00:43:52Z\"},\"id\":\"dttohq\",\"name\":\"lna\",\"type\":\"h\"}"; + = "{\"properties\":{\"edition\":\"xzuisamona\",\"serviceLevelObjective\":\"izexroqsqj\",\"elasticPoolName\":\"rmthsplwst\",\"lastAvailableBackupDate\":\"2020-12-20T01:40:49Z\"},\"id\":\"rgxfqpaniceo\",\"name\":\"xgzwhs\",\"type\":\"yrujm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); RecoverableSqlPool response = manager.workspaceManagedSqlServerRecoverableSqlPools() - .getWithResponse("osnqliwkmzojfe", "yalhtgm", "nazgbjbhrpgiq", com.azure.core.util.Context.NONE) + .getWithResponse("xkeedcnwmy", "xfqzkvemyzd", "czaqpqifdbmpt", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests.java index ad6ff5c38939..70310ff2b597 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests.java @@ -21,7 +21,7 @@ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"edition\":\"jjzgxqgqw\",\"serviceLevelObjective\":\"rhgtvhv\",\"elasticPoolName\":\"qykbkkt\",\"lastAvailableBackupDate\":\"2021-10-16T22:29:02Z\"},\"id\":\"ejogmkor\",\"name\":\"vmvm\",\"type\":\"ofnqhlbs\"}]}"; + = "{\"value\":[{\"properties\":{\"edition\":\"ulwwtrjmeqkvyhz\",\"serviceLevelObjective\":\"poyu\",\"elasticPoolName\":\"uensn\",\"lastAvailableBackupDate\":\"2021-01-12T07:26:14Z\"},\"id\":\"phmpoejnglpwsada\",\"name\":\"jsumxpezcoio\",\"type\":\"jrmfqzwqd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.workspaceManagedSqlServerRecoverableSqlPools() - .list("laat", "p", com.azure.core.util.Context.NONE); + .list("dyarikeejdp", "fhtwmmkfqb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListMockTests.java index 939182fa080d..6db202a550fe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListMockTests.java @@ -21,7 +21,7 @@ public final class WorkspaceManagedSqlServerUsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"cslhwuusi\",\"resourceName\":\"ktybh\",\"displayName\":\"xidhhxomil\",\"currentValue\":11.711486368286806,\"limit\":4.9343898549681136,\"unit\":\"xwjwilm\",\"nextResetTime\":\"2021-10-22T05:19:33Z\"}]}"; + = "{\"value\":[{\"name\":\"ptqmawzjdrpiz\",\"resourceName\":\"l\",\"displayName\":\"ctsdbtqgkujds\",\"currentValue\":25.132538389264848,\"limit\":1.5697357978460724,\"unit\":\"urbti\",\"nextResetTime\":\"2021-02-28T12:35:14Z\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,8 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.workspaceManagedSqlServerUsages() - .list("iwjbctvb", "zujqjtotdxp", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.workspaceManagedSqlServerUsages().list("otnn", "xolousdv", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteWithResponseMockTests.java index 668c0ebb96eb..e3fa0de4284d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteWithResponseMockTests.java @@ -29,7 +29,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workspaceManagedSqlServerVulnerabilityAssessments() - .deleteWithResponse("ctwjwdsdlzm", "xerxxxoteehk", VulnerabilityAssessmentName.DEFAULT, + .deleteWithResponse("pm", "rdlhvdvmiphbe", VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceRepositoryConfigurationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceRepositoryConfigurationTests.java index 667f3b249529..5fdf99ed9202 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceRepositoryConfigurationTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceRepositoryConfigurationTests.java @@ -13,39 +13,39 @@ public final class WorkspaceRepositoryConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceRepositoryConfiguration model = BinaryData.fromString( - "{\"type\":\"dboxdfgsftufqobr\",\"hostName\":\"nac\",\"accountName\":\"ckknhxkizvy\",\"projectName\":\"rzvul\",\"repositoryName\":\"aaeranokqgukk\",\"collaborationBranch\":\"nvbroylaxx\",\"rootFolder\":\"cdisd\",\"lastCommitId\":\"fj\",\"tenantId\":\"2d71e860-f5e0-4c72-a7fa-44bf52e35916\"}") + "{\"type\":\"uelyetndn\",\"hostName\":\"qyggagfl\",\"accountName\":\"gm\",\"projectName\":\"wahzjmucftbyr\",\"repositoryName\":\"rohkpigqfusu\",\"collaborationBranch\":\"zmkw\",\"rootFolder\":\"snoxaxmqeqa\",\"lastCommitId\":\"hjnhgwydyynfsvk\",\"tenantId\":\"d45f3a39-beb3-4b78-a8c8-016d4f0e8a7a\"}") .toObject(WorkspaceRepositoryConfiguration.class); - Assertions.assertEquals("dboxdfgsftufqobr", model.type()); - Assertions.assertEquals("nac", model.hostname()); - Assertions.assertEquals("ckknhxkizvy", model.accountName()); - Assertions.assertEquals("rzvul", model.projectName()); - Assertions.assertEquals("aaeranokqgukk", model.repositoryName()); - Assertions.assertEquals("nvbroylaxx", model.collaborationBranch()); - Assertions.assertEquals("cdisd", model.rootFolder()); - Assertions.assertEquals("fj", model.lastCommitId()); - Assertions.assertEquals(UUID.fromString("2d71e860-f5e0-4c72-a7fa-44bf52e35916"), model.tenantId()); + Assertions.assertEquals("uelyetndn", model.type()); + Assertions.assertEquals("qyggagfl", model.hostname()); + Assertions.assertEquals("gm", model.accountName()); + Assertions.assertEquals("wahzjmucftbyr", model.projectName()); + Assertions.assertEquals("rohkpigqfusu", model.repositoryName()); + Assertions.assertEquals("zmkw", model.collaborationBranch()); + Assertions.assertEquals("snoxaxmqeqa", model.rootFolder()); + Assertions.assertEquals("hjnhgwydyynfsvk", model.lastCommitId()); + Assertions.assertEquals(UUID.fromString("d45f3a39-beb3-4b78-a8c8-016d4f0e8a7a"), model.tenantId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkspaceRepositoryConfiguration model = new WorkspaceRepositoryConfiguration().withType("dboxdfgsftufqobr") - .withHostname("nac") - .withAccountName("ckknhxkizvy") - .withProjectName("rzvul") - .withRepositoryName("aaeranokqgukk") - .withCollaborationBranch("nvbroylaxx") - .withRootFolder("cdisd") - .withLastCommitId("fj") - .withTenantId(UUID.fromString("2d71e860-f5e0-4c72-a7fa-44bf52e35916")); + WorkspaceRepositoryConfiguration model = new WorkspaceRepositoryConfiguration().withType("uelyetndn") + .withHostname("qyggagfl") + .withAccountName("gm") + .withProjectName("wahzjmucftbyr") + .withRepositoryName("rohkpigqfusu") + .withCollaborationBranch("zmkw") + .withRootFolder("snoxaxmqeqa") + .withLastCommitId("hjnhgwydyynfsvk") + .withTenantId(UUID.fromString("d45f3a39-beb3-4b78-a8c8-016d4f0e8a7a")); model = BinaryData.fromObject(model).toObject(WorkspaceRepositoryConfiguration.class); - Assertions.assertEquals("dboxdfgsftufqobr", model.type()); - Assertions.assertEquals("nac", model.hostname()); - Assertions.assertEquals("ckknhxkizvy", model.accountName()); - Assertions.assertEquals("rzvul", model.projectName()); - Assertions.assertEquals("aaeranokqgukk", model.repositoryName()); - Assertions.assertEquals("nvbroylaxx", model.collaborationBranch()); - Assertions.assertEquals("cdisd", model.rootFolder()); - Assertions.assertEquals("fj", model.lastCommitId()); - Assertions.assertEquals(UUID.fromString("2d71e860-f5e0-4c72-a7fa-44bf52e35916"), model.tenantId()); + Assertions.assertEquals("uelyetndn", model.type()); + Assertions.assertEquals("qyggagfl", model.hostname()); + Assertions.assertEquals("gm", model.accountName()); + Assertions.assertEquals("wahzjmucftbyr", model.projectName()); + Assertions.assertEquals("rohkpigqfusu", model.repositoryName()); + Assertions.assertEquals("zmkw", model.collaborationBranch()); + Assertions.assertEquals("snoxaxmqeqa", model.rootFolder()); + Assertions.assertEquals("hjnhgwydyynfsvk", model.lastCommitId()); + Assertions.assertEquals(UUID.fromString("d45f3a39-beb3-4b78-a8c8-016d4f0e8a7a"), model.tenantId()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateMockTests.java index ea50919d3b8e..8f4d7ea9d99a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateMockTests.java @@ -22,7 +22,7 @@ public final class WorkspaceSqlAadAdminsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"tenantId\":\"qcs\",\"login\":\"qjmxpt\",\"administratorType\":\"ipuugkwdrqmr\",\"sid\":\"huuonjkkxukg\"},\"id\":\"e\",\"name\":\"vvpxjoeg\",\"type\":\"jojlle\"}"; + = "{\"properties\":{\"tenantId\":\"zzxezmnrkj\",\"login\":\"jeuxsphlo\",\"administratorType\":\"pmijp\",\"sid\":\"zvfbhwbdquf\"},\"id\":\"cgnrglaqrwy\",\"name\":\"mbhbafebzxf\",\"type\":\"jqut\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkspaceAadAdminInfo response = manager.workspaceSqlAadAdmins() - .createOrUpdate("mcarm", "yfxxkwykuqdnd", - new WorkspaceAadAdminInfoInner().withTenantId("kh") - .withLogin("gapvdgtfpeerscdx") - .withAdministratorType("rnjr") - .withSid("fmbgacn"), + .createOrUpdate("iikmoxrezsvavlrx", "kj", + new WorkspaceAadAdminInfoInner().withTenantId("wlunpipcwybs") + .withLogin("ncnpat") + .withAdministratorType("tsaebwfwhxorpwa") + .withSid("zwuge"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("qcs", response.tenantId()); - Assertions.assertEquals("qjmxpt", response.login()); - Assertions.assertEquals("ipuugkwdrqmr", response.administratorType()); - Assertions.assertEquals("huuonjkkxukg", response.sid()); + Assertions.assertEquals("zzxezmnrkj", response.tenantId()); + Assertions.assertEquals("jeuxsphlo", response.login()); + Assertions.assertEquals("pmijp", response.administratorType()); + Assertions.assertEquals("zvfbhwbdquf", response.sid()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteMockTests.java index e01a13a9d72e..8de6df5ddac8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.workspaceSqlAadAdmins().delete("idpmton", "hgnhtmeplhbpjba", com.azure.core.util.Context.NONE); + manager.workspaceSqlAadAdmins().delete("bhlenntrvrkpsab", "u", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetWithResponseMockTests.java index d066263f6ed3..54fb20ee99d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetWithResponseMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class WorkspaceSqlAadAdminsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"tenantId\":\"br\",\"login\":\"bjpppktlpdi\",\"administratorType\":\"mthieatnejrnmin\",\"sid\":\"plgtkihonikzsrzf\"},\"id\":\"f\",\"name\":\"ilzfbpnto\",\"type\":\"kensckh\"}"; + = "{\"properties\":{\"tenantId\":\"sfeqbbe\",\"login\":\"cuq\",\"administratorType\":\"yyxmzrmtmvwituw\",\"sid\":\"yjshcyb\"},\"id\":\"fuppoxprc\",\"name\":\"vo\",\"type\":\"ujx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkspaceAadAdminInfo response = manager.workspaceSqlAadAdmins() - .getWithResponse("vrkdpsqeq", "bdxmd", com.azure.core.util.Context.NONE) + .getWithResponse("hctsbbibti", "uhqvums", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("br", response.tenantId()); - Assertions.assertEquals("bjpppktlpdi", response.login()); - Assertions.assertEquals("mthieatnejrnmin", response.administratorType()); - Assertions.assertEquals("plgtkihonikzsrzf", response.sid()); + Assertions.assertEquals("sfeqbbe", response.tenantId()); + Assertions.assertEquals("cuq", response.login()); + Assertions.assertEquals("yyxmzrmtmvwituw", response.administratorType()); + Assertions.assertEquals("yjshcyb", response.sid()); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteMockTests.java similarity index 84% rename from sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteMockTests.java rename to sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteMockTests.java index f636a8825b18..ee92e863f183 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteMockTests.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteMockTests.java @@ -15,10 +15,10 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class KustoPoolsDeleteMockTests { +public final class WorkspacesDeleteMockTests { @Test public void testDelete() throws Exception { - String responseStr = "{}"; + String responseStr = "\"databwtdr\""; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.kustoPools().delete("dqtmggcpdrmeg", "jrzctwymz", "kwqkkgeseiph", com.azure.core.util.Context.NONE); + Object response = manager.workspaces().delete("azdfsqxhyqmrej", "arnpvgrsz", com.azure.core.util.Context.NONE); } } From 9abcfdc80f50465d6be6709d9d2168802023b461 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 23 Dec 2024 13:31:52 +0800 Subject: [PATCH 3/3] Update CHANGELOG.md for Azure Synapse release --- .../CHANGELOG.md | 519 +----------------- 1 file changed, 2 insertions(+), 517 deletions(-) diff --git a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md index 68d7963db6ce..6481b69d3c56 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md +++ b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md @@ -4,524 +4,9 @@ - Azure Resource Manager Synapse client library for Java. This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). -### Breaking Changes - -#### `models.DefaultPrincipalsModificationKind` was removed - -#### `models.DataConnectionCheckNameRequest` was removed - -#### `models.AttachedDatabaseConfiguration` was removed - -#### `models.UserAssignedManagedIdentity` was removed - -#### `models.KustoPoolDatabasePrincipalAssignments` was removed - -#### `models.ClusterPrincipalAssignmentCheckNameRequest` was removed - -#### `models.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings` was removed - -#### `models.KustoPool$UpdateStages` was removed - -#### `models.ResourceProvisioningState` was removed - -#### `models.SkuName` was removed - -#### `models.AzureCapacity` was removed - -#### `models.AzureADOnlyAuthenticationListResult` was removed - -#### `models.KustoPool$DefinitionStages` was removed - -#### `models.DatabasePrincipalAssignmentCheckNameRequest` was removed - -#### `models.AzureADOnlyAuthentications` was removed - -#### `models.DataConnectionValidationResult` was removed - -#### `models.KustoPool$Update` was removed - -#### `models.AzureScaleType` was removed - -#### `models.DatabaseStatistics` was removed - -#### `models.EventHubDataFormat` was removed - -#### `models.KustoPoolPrincipalAssignments` was removed - -#### `models.ConfigurationType` was removed - -#### `models.WorkspaceStatus` was removed - -#### `models.DataConnection` was removed - -#### `models.Compression` was removed - -#### `models.AttachedDatabaseConfiguration$Update` was removed - -#### `models.SkuDescription` was removed - -#### `models.DatabasePrincipalAssignment$Update` was removed - -#### `models.Gets` was removed - -#### `models.Database` was removed - -#### `models.IntegrationRuntimeStopOperationStatus` was removed - -#### `models.LanguageExtension` was removed - -#### `models.ClusterPrincipalAssignment$Update` was removed - -#### `models.IntegrationRuntimeOperationStatus` was removed - -#### `models.PrincipalType` was removed - -#### `models.Kind` was removed - -#### `models.KustoPoolListResult` was removed - -#### `models.DatabasePrincipalAssignment` was removed - -#### `models.Operation` was removed - -#### `models.SkuSize` was removed - -#### `models.KustoPoolPrivateLinkResources` was removed - -#### `models.KustoPoolUpdate` was removed - -#### `models.IotHubDataConnection` was removed - -#### `models.KustoPools` was removed - -#### `models.EventGridDataConnection` was removed - -#### `models.AzureSku` was removed - -#### `models.CspWorkspaceAdminProperties` was removed - -#### `models.DatabasePrincipalAssignment$UpdateStages` was removed - -#### `models.ClusterPrincipalAssignment$UpdateStages` was removed - -#### `models.AttachedDatabaseConfigurationListResult` was removed - -#### `models.OperationDisplay` was removed - -#### `models.ClusterPrincipalAssignmentListResult` was removed - -#### `models.DatabaseCheckNameRequest` was removed - -#### `models.AttachedDatabaseConfiguration$DefinitionStages` was removed - -#### `models.KustoPoolCheckNameRequest` was removed - -#### `models.KustoPool$Definition` was removed - -#### `models.LanguageExtensionsList` was removed - -#### `models.StateValue` was removed - -#### `models.DatabasePrincipalAssignment$DefinitionStages` was removed - -#### `models.DataConnectionKind` was removed - -#### `models.DatabasePrincipalAssignment$Definition` was removed - -#### `models.SparkConfigProperties` was removed - -#### `models.ClusterPrincipalAssignment$DefinitionStages` was removed - -#### `models.DedicatedSQLminimalTlsSettingsListResult` was removed - -#### `models.ActualState` was removed - -#### `models.AttachedDatabaseConfiguration$UpdateStages` was removed - -#### `models.DedicatedSqlMinimalTlsSettingsName` was removed - -#### `models.FollowerDatabaseListResult` was removed - -#### `models.SparkConfigurations` was removed - -#### `models.EventHubDataConnection` was removed - -#### `models.AzureADOnlyAuthenticationName` was removed - -#### `models.SkuLocationInfoItem` was removed - -#### `models.DataConnectionValidationListResult` was removed - -#### `models.OptimizedAutoscale` was removed - -#### `models.KustoPoolChildResources` was removed - -#### `models.FollowerDatabaseDefinition` was removed - -#### `models.Reason` was removed - -#### `models.ClusterPrincipalAssignment$Definition` was removed - -#### `models.State` was removed - -#### `models.DataConnectionListResult` was removed - -#### `models.DataConnectionValidation` was removed - -#### `models.CheckNameResult` was removed - -#### `models.SparkConfigurationsOperations` was removed - -#### `models.DatabasePrincipalAssignmentListResult` was removed - -#### `models.KustoPoolDataConnections` was removed - -#### `models.OperationListResult` was removed - -#### `models.EventGridDataFormat` was removed - -#### `models.IntegrationRuntimeEnableinteractivequery` was removed - -#### `models.IotHubDataFormat` was removed - -#### `models.DedicatedSQLminimalTlsSettings` was removed - -#### `models.AzureADOnlyAuthentication$DefinitionStages` was removed - -#### `models.AttachedDatabaseConfiguration$Definition` was removed - -#### `models.ClusterPrincipalAssignment` was removed - -#### `models.KustoPoolAttachedDatabaseConfigurations` was removed - -#### `models.SparkConfigurationResource` was removed - -#### `models.SkuDescriptionList` was removed - -#### `models.KustoPoolPrivateLinkResourcesOperations` was removed - -#### `models.TableLevelSharingProperties` was removed - -#### `models.LanguageExtensionName` was removed - -#### `models.ClusterPrincipalRole` was removed - -#### `models.SparkConfigurationListResponse` was removed - -#### `models.AzureADOnlyAuthentication$Definition` was removed - -#### `models.BlobStorageEventType` was removed - -#### `models.AzureADOnlyAuthentication` was removed - -#### `models.Type` was removed - -#### `models.PrincipalsModificationKind` was removed - -#### `models.ReadOnlyFollowingDatabase` was removed - -#### `models.KustoPoolDatabases` was removed - -#### `models.DatabaseListResult` was removed - -#### `models.KustoOperations` was removed - -#### `models.KekIdentityProperties` was removed - -#### `models.ReadWriteDatabase` was removed - -#### `models.AzureResourceSku` was removed - -#### `models.PrivateLinkResourcesOperations` was removed - -#### `models.DatabasePrincipalRole` was removed - -#### `models.DesiredState` was removed - -#### `models.KustoPool` was removed - -#### `models.ListResourceSkusResult` was removed - -#### `models.ServerBlobAuditingPolicy$Update` was modified - -* `withIsDevopsAuditEnabled(java.lang.Boolean)` was removed - -#### `models.ServerBlobAuditingPolicy` was modified - -* `isDevopsAuditEnabled()` was removed - -#### `models.SqlPoolPatchInfo` was modified - -* `sourceDatabaseDeletionDate()` was removed -* `withSourceDatabaseDeletionDate(java.time.OffsetDateTime)` was removed - -#### `models.SqlPoolOperationResults` was modified - -* `models.SqlPool getLocationHeaderResult(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object getLocationHeaderResult(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` -* `getLocationHeaderResult(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed - -#### `models.IntegrationRuntimeDataFlowProperties` was modified - -* `withCleanup(java.lang.Boolean)` was removed -* `cleanup()` was removed - -#### `models.SelfHostedIntegrationRuntimeStatus` was modified - -* `serviceRegion()` was removed -* `withNewerVersions(java.util.List)` was removed -* `osType()` was removed -* `newerVersions()` was removed -* `dataFactoryName()` was removed -* `state()` was removed -* `withServiceRegion(java.lang.String)` was removed -* `targetFramework()` was removed - -#### `models.IpFirewallRules` was modified - -* `models.IpFirewallRuleInfo delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -* `models.IpFirewallRuleInfo deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -* `models.IpFirewallRuleInfo deleteById(java.lang.String)` -> `java.lang.Object deleteById(java.lang.String)` -* `models.IpFirewallRuleInfo delete(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String)` - -#### `models.ManagedIntegrationRuntime` was modified - -* `withReferenceName(java.lang.String)` was removed -* `withTypeManagedVirtualNetworkType(java.lang.String)` was removed -* `typeManagedVirtualNetworkType()` was removed -* `id()` was removed -* `referenceName()` was removed -* `withId(java.lang.String)` was removed - -#### `models.ManagedIntegrationRuntimeStatus` was modified - -* `state()` was removed -* `dataFactoryName()` was removed - -#### `models.PrivateEndpointConnectionsPrivateLinkHubs` was modified - -* `getWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed -* `get(java.lang.String,java.lang.String,java.lang.String)` was removed - -#### `models.BigDataPools` was modified - -* `models.BigDataPoolResourceInfo deleteById(java.lang.String)` -> `java.lang.Object deleteById(java.lang.String)` -* `models.BigDataPoolResourceInfo deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -* `models.BigDataPoolResourceInfo delete(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String)` -* `models.BigDataPoolResourceInfo delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` - -#### `models.SqlPool$Definition` was modified - -* `withSourceDatabaseDeletionDate(java.time.OffsetDateTime)` was removed - -#### `models.ExtendedServerBlobAuditingPolicy$Update` was modified - -* `withIsDevopsAuditEnabled(java.lang.Boolean)` was removed - -#### `models.DataLakeStorageAccountDetails` was modified - -* `withResourceId(java.lang.String)` was removed -* `resourceId()` was removed -* `withCreateManagedPrivateEndpoint(java.lang.Boolean)` was removed -* `createManagedPrivateEndpoint()` was removed - -#### `models.Workspaces` was modified - -* `models.Workspace deleteById(java.lang.String)` -> `java.lang.Object deleteById(java.lang.String)` -* `models.Workspace deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -* `models.Workspace delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -* `models.Workspace deleteByResourceGroup(java.lang.String,java.lang.String)` -> `java.lang.Object deleteByResourceGroup(java.lang.String,java.lang.String)` - -#### `models.BigDataPoolResourceInfo` was modified - -* `models.SparkConfigProperties sparkConfigProperties()` -> `models.LibraryRequirements sparkConfigProperties()` -* `isAutotuneEnabled()` was removed - -#### `models.BigDataPoolResourceInfo$Definition` was modified - -* `withSparkConfigProperties(models.SparkConfigProperties)` was removed -* `withIsAutotuneEnabled(java.lang.Boolean)` was removed - -#### `models.Workspace` was modified - -* `java.lang.Object extraProperties()` -> `java.util.Map extraProperties()` -* `cspWorkspaceAdminProperties()` was removed -* `azureADOnlyAuthentication()` was removed -* `settings()` was removed -* `trustedServiceBypassEnabled()` was removed - -#### `models.SqlPool` was modified - -* `models.SqlPool pause()` -> `java.lang.Object pause()` -* `models.SqlPool pause(com.azure.core.util.Context)` -> `java.lang.Object pause(com.azure.core.util.Context)` -* `models.SqlPool resume()` -> `java.lang.Object resume()` -* `sourceDatabaseDeletionDate()` was removed -* `models.SqlPool resume(com.azure.core.util.Context)` -> `java.lang.Object resume(com.azure.core.util.Context)` - -#### `models.ManagedIdentity` was modified - -* `userAssignedIdentities()` was removed -* `withUserAssignedIdentities(java.util.Map)` was removed - -#### `models.CustomerManagedKeyDetails` was modified - -* `withKekIdentity(models.KekIdentityProperties)` was removed -* `kekIdentity()` was removed - -#### `models.ExtendedServerBlobAuditingPolicy` was modified - -* `isDevopsAuditEnabled()` was removed - -#### `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity` was modified - -* `withDesiredState(models.DesiredState)` was removed -* `models.DesiredState desiredState()` -> `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState desiredState()` -* `models.ActualState actualState()` -> `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState actualState()` - -#### `models.ServerBlobAuditingPolicy$Definition` was modified - -* `withIsDevopsAuditEnabled(java.lang.Boolean)` was removed - -#### `models.DynamicExecutorAllocation` was modified - -* `minExecutors()` was removed -* `withMinExecutors(java.lang.Integer)` was removed -* `maxExecutors()` was removed -* `withMaxExecutors(java.lang.Integer)` was removed - -#### `models.PrivateLinkResources` was modified - -* `fromJson(com.azure.json.JsonReader)` was removed -* `value()` was removed -* `withValue(java.util.List)` was removed -* `toJson(com.azure.json.JsonWriter)` was removed -* `validate()` was removed - -#### `SynapseManager` was modified - -* `kustoPoolPrincipalAssignments()` was removed -* `kustoOperations()` was removed -* `sparkConfigurationsOperations()` was removed -* `kustoPoolDataConnections()` was removed -* `kustoPoolPrivateLinkResourcesOperations()` was removed -* `privateLinkResourcesOperations()` was removed -* `kustoPoolAttachedDatabaseConfigurations()` was removed -* `gets()` was removed -* `kustoPoolDatabases()` was removed -* `kustoPools()` was removed -* `sparkConfigurations()` was removed -* `kustoPoolChildResources()` was removed -* `workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings()` was removed -* `azureADOnlyAuthentications()` was removed -* `kustoPoolDatabasePrincipalAssignments()` was removed - -#### `models.SqlPools` was modified - -* `models.SqlPool resume(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object resume(java.lang.String,java.lang.String,java.lang.String)` -* `models.SqlPool delete(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String)` -* `models.SqlPool deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -* `models.SqlPool delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -* `models.SqlPool deleteById(java.lang.String)` -> `java.lang.Object deleteById(java.lang.String)` -* `models.SqlPool pause(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object pause(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -* `models.SqlPool pause(java.lang.String,java.lang.String,java.lang.String)` -> `java.lang.Object pause(java.lang.String,java.lang.String,java.lang.String)` -* `models.SqlPool resume(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `java.lang.Object resume(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` - -#### `models.Workspace$Definition` was modified - -* `withTrustedServiceBypassEnabled(java.lang.Boolean)` was removed -* `withAzureADOnlyAuthentication(java.lang.Boolean)` was removed -* `withCspWorkspaceAdminProperties(models.CspWorkspaceAdminProperties)` was removed - -#### `models.ExtendedServerBlobAuditingPolicy$Definition` was modified - -* `withIsDevopsAuditEnabled(java.lang.Boolean)` was removed - -### Features Added - -* `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState` was added - -* `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState` was added - -#### `models.ServerBlobAuditingPolicy$Update` was modified - -* `withStorageAccountSubscriptionId(java.util.UUID)` was added -* `withAuditActionsAndGroups(java.util.List)` was added -* `withRetentionDays(java.lang.Integer)` was added - -#### `models.SqlPoolPatchInfo` was modified - -* `withCreationDate(java.time.OffsetDateTime)` was added -* `withStatus(java.lang.String)` was added - -#### `models.SqlPoolOperationResults` was modified - -* `getLocationHeaderResultWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added - -#### `models.SqlPoolSecurityAlertPolicy$Update` was modified - -* `withDisabledAlerts(java.util.List)` was added -* `withEmailAddresses(java.util.List)` was added - -#### `models.ServerVulnerabilityAssessment$Update` was modified - -* `withStorageContainerPath(java.lang.String)` was added - -#### `models.SqlPool$Definition` was modified - -* `withStatus(java.lang.String)` was added -* `withCreationDate(java.time.OffsetDateTime)` was added - -#### `models.ExtendedServerBlobAuditingPolicy$Update` was modified - -* `withStorageAccountSubscriptionId(java.util.UUID)` was added -* `withRetentionDays(java.lang.Integer)` was added - -#### `models.ServerSecurityAlertPolicy$Update` was modified - -* `withEmailAddresses(java.util.List)` was added -* `withDisabledAlerts(java.util.List)` was added -* `withRetentionDays(java.lang.Integer)` was added -* `withEmailAccountAdmins(java.lang.Boolean)` was added -* `withStorageEndpoint(java.lang.String)` was added - -#### `models.SqlPoolBlobAuditingPolicy$Update` was modified - -* `withStorageAccountSubscriptionId(java.util.UUID)` was added -* `withRetentionDays(java.lang.Integer)` was added - -#### `models.BigDataPoolResourceInfo$Definition` was modified - -* `withSparkConfigProperties(models.LibraryRequirements)` was added -* `withCreationDate(java.time.OffsetDateTime)` was added - -#### `models.Key$Update` was modified - -* `withKeyVaultUrl(java.lang.String)` was added - -#### `models.SqlPool$Update` was modified - -* `withCollation(java.lang.String)` was added -* `withStatus(java.lang.String)` was added -* `withRestorePointInTime(java.time.OffsetDateTime)` was added -* `withCreationDate(java.time.OffsetDateTime)` was added - -#### `models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity` was modified - -* `withDesiredState(models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState)` was added - -#### `models.PrivateLinkResources` was modified - -* `list(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added -* `get(java.lang.String,java.lang.String,java.lang.String)` was added -* `getWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added -* `list(java.lang.String,java.lang.String)` was added - -#### `SynapseManager` was modified - -* `privateLinkResources()` was added - -#### `models.Workspace$Definition` was modified +### Other Changes -* `withConnectivityEndpoints(java.util.Map)` was added +- Release for Azure Resource Manager Synapse client library for Java. ## 1.0.0-beta.8 (2024-10-31)